Skip to main content

Module aes_cbc

Module aes_cbc 

Source
Expand description

AES-256-CBC.

Unauthenticated: always pair with a MAC (encrypt-then-MAC).

Structs§

Decryptor
Unpadded, block-at-a-time CBC decryption for streaming. The caller must remove padding.
Encryptor
Unpadded, block-at-a-time CBC encryption for streaming. The caller must perform padding.

Constants§

BLOCK_LEN
Block length in bytes.
IV_LEN
IV length in bytes.
KEY_LEN
Key length in bytes.

Functions§

decrypt_pkcs7
Decrypts ciphertext and strips PKCS#7 padding.
encrypt_pkcs7
Encrypts plaintext with PKCS#7 padding.