MCPcopy
hub / github.com/pyca/cryptography / test_invalid_padding

Method test_invalid_padding

tests/hazmat/primitives/test_padding.py:29–33  ·  tests/hazmat/primitives/test_padding.py::TestPKCS7.test_invalid_padding
(self, size, padded)

Source from the content-addressed store, hash-verified

27 ],
28 )
29 def test_invalid_padding(self, size, padded):
30 unpadder = padding.PKCS7(size).unpadder()
31 with pytest.raises(ValueError):
32 unpadder.update(padded)
33 unpadder.finalize()
34
35 def test_non_bytes(self):
36 padder = padding.PKCS7(128).padder()

Callers

nothing calls this directly

Calls 3

unpadderMethod · 0.45
updateMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected