aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/padding.rst
diff options
context:
space:
mode:
authorCédric Krier <ced@b2ck.com>2016-02-26 23:34:15 +0100
committerCédric Krier <ced@b2ck.com>2016-02-27 19:24:41 +0100
commit93a3d53151a26ec6b14c60c0173e20b2211ec4a8 (patch)
tree6327fb0bbb232fc80b68acc810a98a0756872224 /docs/hazmat/primitives/padding.rst
parentbf0f464ab62d2e69ebfacd80fad2de46e862fcbc (diff)
downloadcryptography-93a3d53151a26ec6b14c60c0173e20b2211ec4a8.tar.gz
cryptography-93a3d53151a26ec6b14c60c0173e20b2211ec4a8.tar.bz2
cryptography-93a3d53151a26ec6b14c60c0173e20b2211ec4a8.zip
Add wikipedia link to ANSI X.923
Diffstat (limited to 'docs/hazmat/primitives/padding.rst')
-rw-r--r--docs/hazmat/primitives/padding.rst10
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