• Home
  • Raw
  • Download

Lines Matching refs:cpb

43 	csbcpb->cpb.hdr.mode = NX_MODE_AES_CCM;  in ccm_aes_nx_set_key()
44 memcpy(csbcpb->cpb.aes_ccm.key, in_key, key_len); in ccm_aes_nx_set_key()
46 csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_CCA; in ccm_aes_nx_set_key()
47 memcpy(csbcpb_aead->cpb.aes_cca.key, in_key, key_len); in ccm_aes_nx_set_key()
186 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
191 b0 = nx_ctx->csbcpb->cpb.aes_ccm.in_pat_or_b0; in generate_pat()
198 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat()
199 b1 = nx_ctx->csbcpb_aead->cpb.aes_cca.b1; in generate_pat()
202 b0 = nx_ctx->csbcpb_aead->cpb.aes_cca.b0; in generate_pat()
203 b1 = nx_ctx->csbcpb_aead->cpb.aes_cca.b1; in generate_pat()
257 result = nx_ctx->csbcpb->cpb.aes_ccm.out_pat_or_mac; in generate_pat()
299 result = nx_ctx->csbcpb_aead->cpb.aes_cca.out_pat_or_b0; in generate_pat()
306 memcpy(nx_ctx->csbcpb_aead->cpb.aes_cca.b0, in generate_pat()
307 nx_ctx->csbcpb_aead->cpb.aes_cca.out_pat_or_b0, in generate_pat()
318 result = nx_ctx->csbcpb_aead->cpb.aes_cca.out_pat_or_b0; in generate_pat()
349 csbcpb->cpb.aes_ccm.in_pat_or_b0); in ccm_nx_decrypt()
369 csbcpb->cpb.aes_ccm.iv_or_ctr); in ccm_nx_decrypt()
381 memcpy(iv, csbcpb->cpb.aes_ccm.out_ctr, AES_BLOCK_SIZE); in ccm_nx_decrypt()
382 memcpy(csbcpb->cpb.aes_ccm.in_pat_or_b0, in ccm_nx_decrypt()
383 csbcpb->cpb.aes_ccm.out_pat_or_mac, AES_BLOCK_SIZE); in ccm_nx_decrypt()
384 memcpy(csbcpb->cpb.aes_ccm.in_s0, in ccm_nx_decrypt()
385 csbcpb->cpb.aes_ccm.out_s0, AES_BLOCK_SIZE); in ccm_nx_decrypt()
397 rc = crypto_memneq(csbcpb->cpb.aes_ccm.out_pat_or_mac, priv->oauth_tag, in ccm_nx_decrypt()
419 csbcpb->cpb.aes_ccm.in_pat_or_b0); in ccm_nx_encrypt()
438 csbcpb->cpb.aes_ccm.iv_or_ctr); in ccm_nx_encrypt()
450 memcpy(iv, csbcpb->cpb.aes_ccm.out_ctr, AES_BLOCK_SIZE); in ccm_nx_encrypt()
451 memcpy(csbcpb->cpb.aes_ccm.in_pat_or_b0, in ccm_nx_encrypt()
452 csbcpb->cpb.aes_ccm.out_pat_or_mac, AES_BLOCK_SIZE); in ccm_nx_encrypt()
453 memcpy(csbcpb->cpb.aes_ccm.in_s0, in ccm_nx_encrypt()
454 csbcpb->cpb.aes_ccm.out_s0, AES_BLOCK_SIZE); in ccm_nx_encrypt()
468 scatterwalk_map_and_copy(csbcpb->cpb.aes_ccm.out_pat_or_mac, in ccm_nx_encrypt()