Lines Matching refs:csbcpb
37 NX_CPB_SET_DIGEST_SIZE(nx_ctx->csbcpb, NX_DS_SHA512); in nx_crypto_ctx_sha512_init()
66 struct nx_csbcpb *csbcpb = (struct nx_csbcpb *)nx_ctx->csbcpb; in nx_sha512_update() local
88 memcpy(csbcpb->cpb.sha512.message_digest, sctx->state, SHA512_DIGEST_SIZE); in nx_sha512_update()
89 NX_CPB_FDM(csbcpb) |= NX_FDM_INTERMEDIATE; in nx_sha512_update()
90 NX_CPB_FDM(csbcpb) |= NX_FDM_CONTINUATION; in nx_sha512_update()
153 memcpy(csbcpb->cpb.sha512.input_partial_digest, in nx_sha512_update()
154 csbcpb->cpb.sha512.message_digest, in nx_sha512_update()
178 memcpy(sctx->state, csbcpb->cpb.sha512.message_digest, SHA512_DIGEST_SIZE); in nx_sha512_update()
188 struct nx_csbcpb *csbcpb = (struct nx_csbcpb *)nx_ctx->csbcpb; in nx_sha512_final() local
208 memcpy(csbcpb->cpb.sha512.input_partial_digest, sctx->state, in nx_sha512_final()
210 NX_CPB_FDM(csbcpb) &= ~NX_FDM_INTERMEDIATE; in nx_sha512_final()
211 NX_CPB_FDM(csbcpb) |= NX_FDM_CONTINUATION; in nx_sha512_final()
213 NX_CPB_FDM(csbcpb) &= ~NX_FDM_INTERMEDIATE; in nx_sha512_final()
214 NX_CPB_FDM(csbcpb) &= ~NX_FDM_CONTINUATION; in nx_sha512_final()
217 NX_CPB_FDM(csbcpb) &= ~NX_FDM_INTERMEDIATE; in nx_sha512_final()
221 csbcpb->cpb.sha512.message_bit_length_lo = count0; in nx_sha512_final()
251 memcpy(out, csbcpb->cpb.sha512.message_digest, SHA512_DIGEST_SIZE); in nx_sha512_final()