From e9b87d5de47008ddf6fcc6e07deb662cbe376c64 Mon Sep 17 00:00:00 2001 From: Terry Chia Date: Tue, 15 Nov 2016 09:56:02 +0800 Subject: Raise padding block_size limit to what is allowed by the specs. (#3108) * Raize padding block_size limit to what is allowed by the specs. * Add tests for raising padding limits. * Amend C code for padding check to use uint16_t instead of uint8_t. * Fix test to work in Python 3. * Fix typo. * Fix another typo. * Fix return type of the padding checks. * Change hypothesis test on padding. * Update comment. --- docs/hazmat/primitives/padding.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/hazmat') diff --git a/docs/hazmat/primitives/padding.rst b/docs/hazmat/primitives/padding.rst index d45a5b8c..916b9bcd 100644 --- a/docs/hazmat/primitives/padding.rst +++ b/docs/hazmat/primitives/padding.rst @@ -39,7 +39,7 @@ multiple of the block size. :param block_size: The size of the block in bits that the data is being padded to. :raises ValueError: Raised if block size is not a multiple of 8 or is not - between 0 and 255 inclusive. + between 0 and 2040 inclusive. .. method:: padder() @@ -82,7 +82,7 @@ multiple of the block size. :param block_size: The size of the block in bits that the data is being padded to. :raises ValueError: Raised if block size is not a multiple of 8 or is not - between 0 and 255 inclusive. + between 0 and 2040 inclusive. .. method:: padder() -- cgit v1.2.3