Lines Matching refs:aes_ccm
44 memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in ccm_aes_nx_set_key()
189 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
194 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
260 result = nx_ctx->csbcpb->cpb.aes_ccm.out_pat_or_mac; in generate_pat()
352 csbcpb->cpb.aes_ccm.in_pat_or_b0); in ccm_nx_decrypt()
372 csbcpb->cpb.aes_ccm.iv_or_ctr); in ccm_nx_decrypt()
384 memcpy(iv, csbcpb->cpb.aes_ccm.out_ctr, AES_BLOCK_SIZE); in ccm_nx_decrypt()
385 memcpy(csbcpb->cpb.aes_ccm.in_pat_or_b0, in ccm_nx_decrypt()
386 csbcpb->cpb.aes_ccm.out_pat_or_mac, AES_BLOCK_SIZE); in ccm_nx_decrypt()
387 memcpy(csbcpb->cpb.aes_ccm.in_s0, in ccm_nx_decrypt()
388 csbcpb->cpb.aes_ccm.out_s0, AES_BLOCK_SIZE); in ccm_nx_decrypt()
400 rc = crypto_memneq(csbcpb->cpb.aes_ccm.out_pat_or_mac, priv->oauth_tag, in ccm_nx_decrypt()
422 csbcpb->cpb.aes_ccm.in_pat_or_b0); in ccm_nx_encrypt()
441 csbcpb->cpb.aes_ccm.iv_or_ctr); in ccm_nx_encrypt()
453 memcpy(iv, csbcpb->cpb.aes_ccm.out_ctr, AES_BLOCK_SIZE); in ccm_nx_encrypt()
454 memcpy(csbcpb->cpb.aes_ccm.in_pat_or_b0, in ccm_nx_encrypt()
455 csbcpb->cpb.aes_ccm.out_pat_or_mac, AES_BLOCK_SIZE); in ccm_nx_encrypt()
456 memcpy(csbcpb->cpb.aes_ccm.in_s0, in ccm_nx_encrypt()
457 csbcpb->cpb.aes_ccm.out_s0, AES_BLOCK_SIZE); in ccm_nx_encrypt()
471 scatterwalk_map_and_copy(csbcpb->cpb.aes_ccm.out_pat_or_mac, in ccm_nx_encrypt()