Lines Matching refs:aes_gcm
54 memcpy(csbcpb->cpb.aes_gcm.key, in_key, key_len); in gcm_aes_nx_set_key()
193 memcpy(csbcpb->cpb.aes_gcm.iv_or_cnt, desc->info, AES_BLOCK_SIZE); in gmac()
216 csbcpb->cpb.aes_gcm.bit_length_data = 0; in gmac()
217 csbcpb->cpb.aes_gcm.bit_length_aad = 8 * nbytes; in gmac()
224 memcpy(csbcpb->cpb.aes_gcm.in_pat_or_aad, in gmac()
225 csbcpb->cpb.aes_gcm.out_pat_or_mac, AES_BLOCK_SIZE); in gmac()
226 memcpy(csbcpb->cpb.aes_gcm.in_s0, in gmac()
227 csbcpb->cpb.aes_gcm.out_s0, AES_BLOCK_SIZE); in gmac()
261 memcpy(csbcpb->cpb.aes_ecb.key, csbcpb->cpb.aes_gcm.key, in gcm_empty()
294 memcpy(csbcpb->cpb.aes_gcm.out_pat_or_mac, out, in gcm_empty()
340 csbcpb->cpb.aes_gcm.bit_length_aad = assoclen * 8; in gcm_aes_nx_crypt()
342 rc = nx_gca(nx_ctx, req, csbcpb->cpb.aes_gcm.in_pat_or_aad, in gcm_aes_nx_crypt()
360 csbcpb->cpb.aes_gcm.bit_length_data = nbytes * 8; in gcm_aes_nx_crypt()
364 csbcpb->cpb.aes_gcm.iv_or_cnt); in gcm_aes_nx_crypt()
380 memcpy(desc.info, csbcpb->cpb.aes_gcm.out_cnt, AES_BLOCK_SIZE); in gcm_aes_nx_crypt()
381 memcpy(csbcpb->cpb.aes_gcm.in_pat_or_aad, in gcm_aes_nx_crypt()
382 csbcpb->cpb.aes_gcm.out_pat_or_mac, AES_BLOCK_SIZE); in gcm_aes_nx_crypt()
383 memcpy(csbcpb->cpb.aes_gcm.in_s0, in gcm_aes_nx_crypt()
384 csbcpb->cpb.aes_gcm.out_s0, AES_BLOCK_SIZE); in gcm_aes_nx_crypt()
399 csbcpb->cpb.aes_gcm.out_pat_or_mac, in gcm_aes_nx_crypt()
405 u8 *otag = csbcpb->cpb.aes_gcm.out_pat_or_mac; in gcm_aes_nx_crypt()