MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / pad_data

Function pad_data

keepercommander/crypto.py:33–35  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

31
32
33def pad_data(data): # type: (bytes) -> bytes
34 padder = PKCS7(16*8).padder()
35 return padder.update(data) + padder.finalize()
36
37
38def unpad_data(data): # type: (bytes) -> bytes

Callers 2

encrypt_aes_v1Function · 0.85
readintoMethod · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected