aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/padding.rst
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2016-11-15 09:56:02 +0800
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-11-15 09:56:02 +0800
commite9b87d5de47008ddf6fcc6e07deb662cbe376c64 (patch)
tree162719213c18edc62d9d95b36a8073cbcf986d97 /docs/hazmat/primitives/padding.rst
parent9977786b56294292fb7da9eabc0f3b94d638e8a7 (diff)
downloadcryptography-e9b87d5de47008ddf6fcc6e07deb662cbe376c64.tar.gz
cryptography-e9b87d5de47008ddf6fcc6e07deb662cbe376c64.tar.bz2
cryptography-e9b87d5de47008ddf6fcc6e07deb662cbe376c64.zip
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.
Diffstat (limited to 'docs/hazmat/primitives/padding.rst')
-rw-r--r--docs/hazmat/primitives/padding.rst4
1 files changed, 2 insertions, 2 deletions
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()