Home | History | Annotate | Download | only in crypto

Lines Matching defs:cbc

2  * AES-128 CBC
17 * aes_128_cbc_encrypt - AES-128 CBC encryption
19 * @iv: Encryption IV for CBC mode (16 bytes)
27 u8 cbc[AES_BLOCK_SIZE];
37 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
42 cbc[j] ^= pos[j];
43 aes_encrypt(ctx, cbc, cbc);
44 os_memcpy(pos, cbc, AES_BLOCK_SIZE);
53 * aes_128_cbc_decrypt - AES-128 CBC decryption
55 * @iv: Decryption IV for CBC mode (16 bytes)
63 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE];
73 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
80 pos[j] ^= cbc[j];
81 os_memcpy(cbc, tmp, AES_BLOCK_SIZE);