From 93a3d53151a26ec6b14c60c0173e20b2211ec4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 26 Feb 2016 23:34:15 +0100 Subject: Add wikipedia link to ANSI X.923 --- docs/hazmat/primitives/padding.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs/hazmat') 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 -- cgit v1.2.3