From 9db255d031431b2259cc86a6ba91b3ff3e89ef94 Mon Sep 17 00:00:00 2001 From: Terry Chia Date: Wed, 24 Aug 2016 21:02:11 +0800 Subject: Fix docs to clarify the less than 256 limit for Padding(). (#3099) * Fix docs to clarify the less than 256 limit. * Add "inclusive". --- docs/hazmat/primitives/padding.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/hazmat/primitives/padding.rst') 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() -- cgit v1.2.3