Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pyca/cryptography
/ padder
Method
padder
src/cryptography/hazmat/primitives/padding.py:45–46 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
43
self.block_size = block_size
44
45
def
padder(self) -> PaddingContext:
46
return
PKCS7PaddingContext(self.block_size)
47
48
def
unpadder(self) -> PaddingContext:
49
return
PKCS7UnpaddingContext(self.block_size)
Callers
15
_encrypt_from_parts
Method · 0.45
test_aes_cbc_pkcs5
Function · 0.45
test_non_bytes
Method · 0.45
test_zany_py2_bytes_subclass
Method · 0.45
test_pad
Method · 0.45
test_use_after_finalize
Method · 0.45
test_large_padding
Method · 0.45
test_bytearray
Method · 0.45
test_block_size_padding
Method · 0.45
test_non_bytes
Method · 0.45
test_zany_py2_bytes_subclass
Method · 0.45
test_pad
Method · 0.45
Calls
no outgoing calls
Tested by
14
test_aes_cbc_pkcs5
Function · 0.36
test_non_bytes
Method · 0.36
test_zany_py2_bytes_subclass
Method · 0.36
test_pad
Method · 0.36
test_use_after_finalize
Method · 0.36
test_large_padding
Method · 0.36
test_bytearray
Method · 0.36
test_block_size_padding
Method · 0.36
test_non_bytes
Method · 0.36
test_zany_py2_bytes_subclass
Method · 0.36
test_pad
Method · 0.36
test_use_after_finalize
Method · 0.36