Lines Matching refs:pad
16 static void gf_mulx(u8 *pad) in gf_mulx() argument
20 carry = pad[0] & 0x80; in gf_mulx()
22 pad[i] = (pad[i] << 1) | (pad[i + 1] >> 7); in gf_mulx()
23 pad[AES_BLOCK_SIZE - 1] <<= 1; in gf_mulx()
25 pad[AES_BLOCK_SIZE - 1] ^= 0x87; in gf_mulx()
47 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE]; in omac1_aes_vector() local
89 os_memset(pad, 0, AES_BLOCK_SIZE); in omac1_aes_vector()
90 aes_encrypt(ctx, pad, pad); in omac1_aes_vector()
91 gf_mulx(pad); in omac1_aes_vector()
109 gf_mulx(pad); in omac1_aes_vector()
113 pad[i] ^= cbc[i]; in omac1_aes_vector()
114 aes_encrypt(ctx, pad, mac); in omac1_aes_vector()