Lines Matching refs:AES_BLOCK_SIZE
31 u8 d[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE] = {}; in aes_s2v()
38 crypto_shash_digest(desc, tmp, AES_BLOCK_SIZE, d); in aes_s2v()
44 crypto_xor(d, tmp, AES_BLOCK_SIZE); in aes_s2v()
49 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v()
52 crypto_shash_update(desc, addr[i], len[i] - AES_BLOCK_SIZE); in aes_s2v()
53 crypto_xor(d, addr[i] + len[i] - AES_BLOCK_SIZE, in aes_s2v()
54 AES_BLOCK_SIZE); in aes_s2v()
63 crypto_shash_finup(desc, d, AES_BLOCK_SIZE, v); in aes_s2v()
74 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt()
109 memcpy(out, v, AES_BLOCK_SIZE); in aes_siv_encrypt()
136 sg_init_one(dst, out + AES_BLOCK_SIZE, plain_len); in aes_siv_encrypt()
158 u8 frame_iv[AES_BLOCK_SIZE], iv[AES_BLOCK_SIZE]; in aes_siv_decrypt()
159 u8 check[AES_BLOCK_SIZE]; in aes_siv_decrypt()
161 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt()
167 memcpy(iv, iv_crypt, AES_BLOCK_SIZE); in aes_siv_decrypt()
168 memcpy(frame_iv, iv_crypt, AES_BLOCK_SIZE); in aes_siv_decrypt()
194 sg_init_one(src, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt()
215 if (memcmp(check, frame_iv, AES_BLOCK_SIZE) != 0) in aes_siv_decrypt()
265 skb_put(skb, AES_BLOCK_SIZE); in fils_encrypt_assoc_req()
318 if (crypt_len < AES_BLOCK_SIZE) { in fils_decrypt_assoc_resp()
332 *frame_len -= AES_BLOCK_SIZE; in fils_decrypt_assoc_resp()