Lines Matching refs:csbcpb_aead
29 struct nx_csbcpb *csbcpb_aead = nx_ctx->csbcpb_aead; in gcm_aes_nx_set_key() local
36 NX_CPB_SET_KEY_SIZE(csbcpb_aead, NX_KS_AES_128); in gcm_aes_nx_set_key()
41 NX_CPB_SET_KEY_SIZE(csbcpb_aead, NX_KS_AES_192); in gcm_aes_nx_set_key()
46 NX_CPB_SET_KEY_SIZE(csbcpb_aead, NX_KS_AES_256); in gcm_aes_nx_set_key()
56 csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_GCA; in gcm_aes_nx_set_key()
57 memcpy(csbcpb_aead->cpb.aes_gca.key, in_key, key_len); in gcm_aes_nx_set_key()
105 struct nx_csbcpb *csbcpb_aead = nx_ctx->csbcpb_aead; in nx_gca() local
119 NX_CPB_FDM(csbcpb_aead) &= ~NX_FDM_CONTINUATION; in nx_gca()
141 NX_CPB_FDM(csbcpb_aead) |= NX_FDM_INTERMEDIATE; in nx_gca()
143 NX_CPB_FDM(csbcpb_aead) &= ~NX_FDM_INTERMEDIATE; in nx_gca()
153 memcpy(csbcpb_aead->cpb.aes_gca.in_pat, in nx_gca()
154 csbcpb_aead->cpb.aes_gca.out_pat, in nx_gca()
156 NX_CPB_FDM(csbcpb_aead) |= NX_FDM_CONTINUATION; in nx_gca()
164 memcpy(out, csbcpb_aead->cpb.aes_gca.out_pat, AES_BLOCK_SIZE); in nx_gca()