Home | History | Annotate | Download | only in crypto

Lines Matching defs:cbc

2  * AES-128 CBC
23 * aes_128_cbc_encrypt - AES-128 CBC encryption
25 * @iv: Encryption IV for CBC mode (16 bytes)
33 u8 cbc[AES_BLOCK_SIZE];
40 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
45 cbc[j] ^= pos[j];
46 aes_encrypt(ctx, cbc, cbc);
47 os_memcpy(pos, cbc, AES_BLOCK_SIZE);
56 * aes_128_cbc_decrypt - AES-128 CBC decryption
58 * @iv: Decryption IV for CBC mode (16 bytes)
66 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);