From 0c4caa295e28aec37b4d76702f9779451ec7927d Mon Sep 17 00:00:00 2001 From: Yang Yang Date: Tue, 20 Apr 2021 19:31:31 +0800 Subject: [PATCH] Fix typo: ANSI X.923 to ANSI X9.23 (#5989) --- docs/hazmat/primitives/padding.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hazmat/primitives/padding.rst b/docs/hazmat/primitives/padding.rst index 99d500a05..ecd70e6d5 100644 --- a/docs/hazmat/primitives/padding.rst +++ b/docs/hazmat/primitives/padding.rst @@ -58,7 +58,7 @@ multiple of the block size. .. versionadded:: 1.3 - `ANSI X.923`_ padding works by appending ``N-1`` bytes with the value of + `ANSI X9.23`_ 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: @@ -127,4 +127,4 @@ multiple of the block size. :raises ValueError: When trying to remove padding from incorrectly padded data. -.. _`ANSI X.923`: https://en.wikipedia.org/wiki/Padding_%28cryptography%29#ANSI_X9.23 +.. _`ANSI X9.23`: https://en.wikipedia.org/wiki/Padding_%28cryptography%29#ANSI_X9.23