Lines Matching refs:csbcpb
26 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb; in cbc_aes_nx_set_key() local
32 NX_CPB_SET_KEY_SIZE(csbcpb, NX_KS_AES_128); in cbc_aes_nx_set_key()
36 NX_CPB_SET_KEY_SIZE(csbcpb, NX_KS_AES_192); in cbc_aes_nx_set_key()
40 NX_CPB_SET_KEY_SIZE(csbcpb, NX_KS_AES_256); in cbc_aes_nx_set_key()
47 csbcpb->cpb.hdr.mode = NX_MODE_AES_CBC; in cbc_aes_nx_set_key()
48 memcpy(csbcpb->cpb.aes_cbc.key, in_key, key_len); in cbc_aes_nx_set_key()
58 struct nx_csbcpb *csbcpb = nx_ctx->csbcpb; in cbc_aes_nx_crypt() local
66 NX_CPB_FDM(csbcpb) |= NX_FDM_ENDE_ENCRYPT; in cbc_aes_nx_crypt()
68 NX_CPB_FDM(csbcpb) &= ~NX_FDM_ENDE_ENCRYPT; in cbc_aes_nx_crypt()
75 csbcpb->cpb.aes_cbc.iv); in cbc_aes_nx_crypt()
89 memcpy(req->iv, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE); in cbc_aes_nx_crypt()
91 atomic64_add(be32_to_cpu(csbcpb->csb.processed_byte_count), in cbc_aes_nx_crypt()