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

Method test_pad

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

Source from the content-addressed store, hash-verified

66 ],
67 )
68 def test_pad(self, size, unpadded, padded):
69 padder = padding.PKCS7(size).padder()
70 result = padder.update(unpadded)
71 result += padder.finalize()
72 assert result == padded
73
74 @pytest.mark.parametrize(
75 ("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