diff options
author | Cédric Krier <ced@b2ck.com> | 2016-02-26 23:34:15 +0100 |
---|---|---|
committer | Cédric Krier <ced@b2ck.com> | 2016-02-27 19:24:41 +0100 |
commit | 93a3d53151a26ec6b14c60c0173e20b2211ec4a8 (patch) | |
tree | 6327fb0bbb232fc80b68acc810a98a0756872224 /docs | |
parent | bf0f464ab62d2e69ebfacd80fad2de46e862fcbc (diff) | |
download | cryptography-93a3d53151a26ec6b14c60c0173e20b2211ec4a8.tar.gz cryptography-93a3d53151a26ec6b14c60c0173e20b2211ec4a8.tar.bz2 cryptography-93a3d53151a26ec6b14c60c0173e20b2211ec4a8.zip |
Add wikipedia link to ANSI X.923
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/primitives/padding.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/hazmat/primitives/padding.rst b/docs/hazmat/primitives/padding.rst index 37e4252d..475976af 100644 --- a/docs/hazmat/primitives/padding.rst +++ b/docs/hazmat/primitives/padding.rst @@ -56,10 +56,10 @@ multiple of the block size. .. class:: ANSIX923(block_size) - ANSI X.923 padding works by appending ``N-1`` bytes with the value of ``0`` - and a last byte with the value of ``chr(N)``, where ``N`` is the number of - bytes required to make the final block of data the same size as the block - size. A simple example of padding is: + `ANSI X.923`_ padding works by appending ``N-1`` bytes with the value of + ``0`` and a last byte with the value of ``chr(N)``, where ``N`` is the + number of bytes required to make the final block of data the same size as + the block size. A simple example of padding is: .. doctest:: @@ -123,3 +123,5 @@ multiple of the block size. :raises TypeError: Raised if data is not bytes. :raises ValueError: When trying to remove padding from incorrectly padded data. + +.. _`ANSI X.923`: https://en.wikipedia.org/wiki/Padding_%28cryptography%29#ANSI_X.923 |