Cipher
AesCbcCipher
⚓︎
- AesCbcCipher
-
Performs AES CBC encryption and decryption with a given key.
__init__(aes_key)
⚓︎
- AesCbcCipher.__init__
-
Creates a cipher around an aes shared key.
decrypt(cipher_text, iv)
⚓︎
- AesCbcCipher.decrypt
-
Decrypts cipher text.
encrypt(clear_text, iv)
⚓︎
- AesCbcCipher.encrypt
-
Encrypts clear text.
AesGcmCipher
⚓︎
- AesGcmCipher
-
Performs AES GCM encryption and decryption with a given key.
__init__(aes_key)
⚓︎
- AesGcmCipher.__init__
-
Creates a cipher around an aes shared key.
decrypt(cipher_text, iv)
⚓︎
- AesGcmCipher.decrypt
-
Decrypts cipher text with appended tag.
encrypt(clear_text, iv)
⚓︎
- AesGcmCipher.encrypt
-
Encrypts clear text and appends tag to encrypted payload.