MCPcopy
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_partsMethod · 0.45
test_aes_cbc_pkcs5Function · 0.45
test_non_bytesMethod · 0.45
test_padMethod · 0.45
test_large_paddingMethod · 0.45
test_bytearrayMethod · 0.45
test_non_bytesMethod · 0.45
test_padMethod · 0.45

Calls

no outgoing calls

Tested by 14

test_aes_cbc_pkcs5Function · 0.36
test_non_bytesMethod · 0.36
test_padMethod · 0.36
test_large_paddingMethod · 0.36
test_bytearrayMethod · 0.36
test_non_bytesMethod · 0.36
test_padMethod · 0.36