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
Tested by
no test coverage detected