aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives
diff options
context:
space:
mode:
Diffstat (limited to 'docs/hazmat/primitives')
-rw-r--r--docs/hazmat/primitives/padding.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/hazmat/primitives/padding.rst b/docs/hazmat/primitives/padding.rst
index 7cbadeb9..1ad2bb83 100644
--- a/docs/hazmat/primitives/padding.rst
+++ b/docs/hazmat/primitives/padding.rst
@@ -28,7 +28,10 @@ multiple of the block size.
>>> from cryptography.hazmat.primitives import padding
>>> padder = padding.PKCS7(128)
- >>> padder.pad(b"1111111111")
+ >>> padder = padder.padder()
+ >>> padder.update(b"1111111111")
+ ''
+ >>> padder.finalize()
'1111111111\x06\x06\x06\x06\x06\x06'
:param block_size: The size of the block in bits that the data is being