Lines Matching refs:AES_BLOCK_SIZE
28 u8 d[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE] = {}; in aes_s2v()
35 crypto_shash_digest(desc, tmp, AES_BLOCK_SIZE, d); in aes_s2v()
41 crypto_xor(d, tmp, AES_BLOCK_SIZE); in aes_s2v()
46 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v()
49 crypto_shash_update(desc, addr[i], len[i] - AES_BLOCK_SIZE); in aes_s2v()
50 crypto_xor(d, addr[i] + len[i] - AES_BLOCK_SIZE, in aes_s2v()
51 AES_BLOCK_SIZE); in aes_s2v()
60 crypto_shash_finup(desc, d, AES_BLOCK_SIZE, v); in aes_s2v()
71 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt()
106 memcpy(out, v, AES_BLOCK_SIZE); in aes_siv_encrypt()
133 sg_init_one(dst, out + AES_BLOCK_SIZE, plain_len); in aes_siv_encrypt()
155 u8 frame_iv[AES_BLOCK_SIZE], iv[AES_BLOCK_SIZE]; in aes_siv_decrypt()
156 u8 check[AES_BLOCK_SIZE]; in aes_siv_decrypt()
158 crypt_len = iv_c_len - AES_BLOCK_SIZE; in aes_siv_decrypt()
164 memcpy(iv, iv_crypt, AES_BLOCK_SIZE); in aes_siv_decrypt()
165 memcpy(frame_iv, iv_crypt, AES_BLOCK_SIZE); in aes_siv_decrypt()
191 sg_init_one(src, iv_crypt + AES_BLOCK_SIZE, crypt_len); in aes_siv_decrypt()
212 if (memcmp(check, frame_iv, AES_BLOCK_SIZE) != 0) in aes_siv_decrypt()
263 skb_put(skb, AES_BLOCK_SIZE); in fils_encrypt_assoc_req()
317 if (crypt_len < AES_BLOCK_SIZE) { in fils_decrypt_assoc_resp()
331 *frame_len -= AES_BLOCK_SIZE; in fils_decrypt_assoc_resp()