AES128_CBC

Gcrypt with AES with mode CBC.

See usage example in unittest below.

alias AES128_CBC = GcryptWithIV!(Algorithm.GCRY_CIPHER_AES, Mode.GCRY_CIPHER_MODE_CBC)

Examples

Usage example of AES-CBC with 128-bit keys

// AES128-CBC requires a key of length 16 bytes.
static immutable KEY = "asdfghjklqwertyu";

// AES128-CBC requires an IV of length 16 bytes.
static immutable IV = "0123456789ABCDEF";

testAES_IV!(AES128_CBC, KEY, IV);

Meta