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

Method test_pad

tests/hazmat/primitives/test_padding.py:198–202  ·  view source on GitHub ↗
(self, size, unpadded, padded)

Source from the content-addressed store, hash-verified

196 ],
197 )
198 def test_pad(self, size, unpadded, padded):
199 padder = padding.ANSIX923(size).padder()
200 result = padder.update(unpadded)
201 result += padder.finalize()
202 assert result == padded
203
204 @pytest.mark.parametrize(
205 ("size", "unpadded", "padded"),

Callers

nothing calls this directly

Calls 3

padderMethod · 0.45
updateMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected