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];
34 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
39 cbc[j] ^= pos[j];
40 aes_encrypt(ctx, cbc, cbc);
41 os_memcpy(pos, cbc, AES_BLOCK_SIZE);
50 * aes_128_cbc_decrypt - AES-128 CBC decryption
52 * @iv: Decryption IV for CBC mode (16 bytes)
60 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE];
67 os_memcpy(cbc, iv, AES_BLOCK_SIZE);
74 pos[j] ^= cbc[j];
75 os_memcpy(cbc, tmp, AES_BLOCK_SIZE);