Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching defs:cbc

5  * - One-Key CBC MAC (OMAC1) hash with AES-128
8 * - AES-128 CBC
172 * omac1_aes_128_vector - One-Key CBC MAC (OMAC1) hash with AES-128
184 u8 cbc[BLOCK_SIZE], pad[BLOCK_SIZE];
191 os_memset(cbc, 0, BLOCK_SIZE);
204 cbc[i] ^= *pos++;
212 aes_encrypt(ctx, cbc, cbc);
222 cbc[i] ^= *pos++;
229 cbc[left] ^= 0x80;
234 pad[i] ^= cbc[i];
242 * omac1_aes_128 - One-Key CBC MAC (OMAC1) hash with AES-128 (aka AES-CMAC)
450 * aes_128_cbc_encrypt - AES-128 CBC encryption
452 * @iv: Encryption IV for CBC mode (16 bytes)
460 u8 cbc[BLOCK_SIZE];
467 os_memcpy(cbc, iv, BLOCK_SIZE);
472 cbc[j] ^= pos[j];
473 aes_encrypt(ctx, cbc, cbc);
474 os_memcpy(pos, cbc, BLOCK_SIZE);
483 * aes_128_cbc_decrypt - AES-128 CBC decryption
485 * @iv: Decryption IV for CBC mode (16 bytes)
493 u8 cbc[BLOCK_SIZE], tmp[BLOCK_SIZE];
500 os_memcpy(cbc, iv, BLOCK_SIZE);
507 pos[j] ^= cbc[j];
508 os_memcpy(cbc, tmp, BLOCK_SIZE);