Constantsยง
- AES_
128_ KEY_ LEN - Length of an AES-128 key in bytes.
- AES_
192_ KEY_ LEN - Length of an AES-192 key in bytes.
- AES_
256_ KEY_ LEN - Length of an AES-256 key in bytes.
- AES_
BLOCK_ LEN - AES_
CBC_ IV_ LEN - The number of bytes for an AES-CBC initialization vector (IV)
- AES_
CFB_ IV_ LEN - The number of bytes for an AES-CFB initialization vector (IV)
- AES_
CTR_ IV_ LEN - The number of bytes for an AES-CTR initialization vector (IV)
- AES_
OFB_ IV_ LEN - The number of bytes for an AES-OFB initialization vector (IV)
- MAX_
CFB1_ ๐CHUNK_ LEN - Bounds one
AES_cfb1_encryptcall so the byte-to-bit conversion cannot overflow, which it would aboveusize::MAX / 8= 512 MiB (on a 32-bit target). MirrorsMAXBITCHUNKin AWS-LCโscrypto/decrepit/cfb/cfb.c.
Functionsยง
- aes_
cbc_ ๐decrypt - aes_
cbc_ ๐encrypt - aes_
cfb1_ ๐decrypt - aes_
cfb1_ ๐encrypt - aes_
cfb8_ ๐decrypt - aes_
cfb8_ ๐encrypt - aes_
cfb128_ ๐decrypt - aes_
cfb128_ ๐encrypt - aes_
ctr128_ ๐encrypt - aes_
ecb_ ๐decrypt - aes_
ecb_ ๐encrypt - aes_
ofb128_ ๐encrypt AES_ofb128_encrypttakes no direction argument: the keystream does not depend on the data, so OFB encryption and decryption are the same operation.- cfb1_
cipher ๐ ivis the feedback register and carries the state across chunks, so splitting the input does not change the result.AES_cfb1_encryptserves both directions.- cfb1_
cipher_ ๐in_ chunks - Chunk length is a parameter so tests can reach the multi-chunk path.
- decrypt_
cbc_ ๐mode - decrypt_
cfb_ ๐mode - decrypt_
ctr_ ๐mode - decrypt_
ecb_ ๐mode - decrypt_
ofb_ ๐mode - encrypt_
block ๐ - encrypt_
cbc_ ๐mode - encrypt_
cfb_ ๐mode - encrypt_
ctr_ ๐mode - encrypt_
ecb_ ๐mode - encrypt_
ofb_ ๐mode