Lines Matching refs:AES_BLOCK_SIZE
17 static const u8 zero[AES_BLOCK_SIZE];
25 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in dbl()
27 pad[AES_BLOCK_SIZE - 1] <<= 1; in dbl()
29 pad[AES_BLOCK_SIZE - 1] ^= 0x87; in dbl()
37 for (i = 0; i < AES_BLOCK_SIZE; i++) in xor()
56 os_memset(pad, 0, AES_BLOCK_SIZE); in pad_block()
59 if (len < AES_BLOCK_SIZE) in pad_block()
67 u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE]; in aes_s2v()
76 tmp[AES_BLOCK_SIZE - 1] = 1; in aes_s2v()
97 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v()
102 xorend(buf, len[i], tmp, AES_BLOCK_SIZE); in aes_s2v()
127 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt()
150 crypt_pw = out + AES_BLOCK_SIZE; in aes_siv_encrypt()
152 os_memcpy(iv, v, AES_BLOCK_SIZE); in aes_siv_encrypt()
173 u8 iv[AES_BLOCK_SIZE]; in aes_siv_decrypt()
174 u8 check[AES_BLOCK_SIZE]; in aes_siv_decrypt()
176 if (iv_c_len < AES_BLOCK_SIZE || num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_decrypt()
179 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt()
191 os_memcpy(iv, iv_crypt, AES_BLOCK_SIZE); in aes_siv_decrypt()
192 os_memcpy(out, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt()
204 if (os_memcmp(check, iv_crypt, AES_BLOCK_SIZE) == 0) in aes_siv_decrypt()