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

Function unpad_data

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

Source from the content-addressed store, hash-verified

36
37
38def unpad_data(data): # type: (bytes) -> bytes
39 unpadder = PKCS7(16*8).unpadder()
40 return unpadder.update(data) + unpadder.finalize()
41
42
43def get_random_bytes(length):

Callers 2

decrypt_aes_v1Function · 0.85
readintoMethod · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected