keycard.crypto package

Submodules

keycard.crypto.aes module

keycard.crypto.aes.aes_cbc_decrypt(key, iv, ciphertext)
Return type:

bytes

keycard.crypto.aes.aes_cbc_encrypt(key, iv, data, padding=True)
Return type:

bytes

keycard.crypto.padding module

keycard.crypto.padding.iso7816_pad(data, block_size)
Return type:

bytes

keycard.crypto.padding.iso7816_unpad(padded)
Return type:

bytes

Module contents