aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/padding.rst
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2016-08-24 21:02:11 +0800
committerPaul Kehrer <paul.l.kehrer@gmail.com>2016-08-24 21:02:11 +0800
commit9db255d031431b2259cc86a6ba91b3ff3e89ef94 (patch)
treeac86788033f0ab09a72e0acfa2148390373d0cc7 /docs/hazmat/primitives/padding.rst
parent8e66ca6813016d9fc6f57d5f1e50530fc39f78ae (diff)
downloadcryptography-9db255d031431b2259cc86a6ba91b3ff3e89ef94.tar.gz
cryptography-9db255d031431b2259cc86a6ba91b3ff3e89ef94.tar.bz2
cryptography-9db255d031431b2259cc86a6ba91b3ff3e89ef94.zip
Fix docs to clarify the less than 256 limit for Padding(). (#3099)
* Fix docs to clarify the less than 256 limit. * Add "inclusive".
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 b346b59e..d45a5b8c 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 256.
+ between 0 and 255 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 256.
+ between 0 and 255 inclusive.
.. method:: padder()