Home
last modified time | relevance | path

Searched refs:hash_ctx (Results 1 – 10 of 10) sorted by relevance

/openbmc/google-misc/subprojects/libcr51sign/src/
H A Dlibcr51sign_support.c44 struct hash_ctx* hash_context = (struct hash_ctx*)context->priv; in hash_init()
69 struct hash_ctx* hash_context = (struct hash_ctx*)context->priv; in hash_update()
92 struct hash_ctx* hash_context = (struct hash_ctx*)context->priv; in hash_final()
/openbmc/u-boot/lib/
H A Dtpm-v1.c527 sha1_context hash_ctx; in create_request_auth() local
536 sha1_starts(&hash_ctx); in create_request_auth()
537 sha1_update(&hash_ctx, request + command_code_offset, 4); in create_request_auth()
539 sha1_update(&hash_ctx, in create_request_auth()
543 sha1_finish(&hash_ctx, hmac_data); in create_request_auth()
545 sha1_starts(&hash_ctx); in create_request_auth()
546 sha1_update(&hash_ctx, auth_session->nonce_odd, DIGEST_LENGTH); in create_request_auth()
547 sha1_update(&hash_ctx, hmac_data, sizeof(hmac_data)); in create_request_auth()
548 sha1_finish(&hash_ctx, auth_session->nonce_odd); in create_request_auth()
591 sha1_context hash_ctx; in verify_response_auth() local
[all …]
/openbmc/qemu/hw/misc/
H A Daspeed_hace.c168 if (acc_mode && s->hash_ctx == NULL) { in do_hash_operation()
169 s->hash_ctx = qcrypto_hash_new(algo, &local_err); in do_hash_operation()
170 if (s->hash_ctx == NULL) { in do_hash_operation()
251 if (qcrypto_hash_updatev(s->hash_ctx, iov, i, &local_err) < 0) { in do_hash_operation()
259 if (qcrypto_hash_finalize_bytes(s->hash_ctx, &digest_buf, in do_hash_operation()
268 qcrypto_hash_free(s->hash_ctx); in do_hash_operation()
270 s->hash_ctx = NULL; in do_hash_operation()
409 if (s->hash_ctx != NULL) { in aspeed_hace_reset()
410 qcrypto_hash_free(s->hash_ctx); in aspeed_hace_reset()
411 s->hash_ctx = NULL; in aspeed_hace_reset()
/openbmc/linux/crypto/
H A Dalgif_hash.c19 struct hash_ctx { struct
32 static int hash_alloc_result(struct sock *sk, struct hash_ctx *ctx) in hash_alloc_result() argument
50 static void hash_free_result(struct sock *sk, struct hash_ctx *ctx) in hash_free_result()
68 struct hash_ctx *ctx = ask->private; in hash_sendmsg()
184 struct hash_ctx *ctx = ask->private; in hash_recvmsg()
231 struct hash_ctx *ctx = ask->private; in hash_accept()
236 struct hash_ctx *ctx2; in hash_accept()
405 struct hash_ctx *ctx = ask->private; in hash_sock_destruct()
416 struct hash_ctx *ctx; in hash_accept_parent_nokey()
/openbmc/u-boot/drivers/crypto/fsl/
H A Dfsl_hash.c82 static int caam_hash_update(void *hash_ctx, const void *buf, in caam_hash_update() argument
88 struct sha_ctx *ctx = hash_ctx; in caam_hash_update()
128 static int caam_hash_finish(void *hash_ctx, void *dest_buf, in caam_hash_finish() argument
132 struct sha_ctx *ctx = hash_ctx; in caam_hash_finish()
/openbmc/u-boot/drivers/crypto/
H A Daspeed_hace_v1.c196 int hw_sha_update(struct hash_algo *algo, void *hash_ctx, const void *buf, in hw_sha_update() argument
199 struct aspeed_hash_ctx *ctx = hash_ctx; in hw_sha_update()
219 int hw_sha_finish(struct hash_algo *algo, void *hash_ctx, void *dest_buf, int size) in hw_sha_finish() argument
221 struct aspeed_hash_ctx *ctx = hash_ctx; in hw_sha_finish()
H A Daspeed_hace.c202 int hw_sha_update(struct hash_algo *algo, void *hash_ctx, const void *buf, in hw_sha_update() argument
205 struct aspeed_hash_ctx *ctx = hash_ctx; in hw_sha_update()
248 int hw_sha_finish(struct hash_algo *algo, void *hash_ctx, void *dest_buf, int size) in hw_sha_finish() argument
250 struct aspeed_hash_ctx *ctx = hash_ctx; in hw_sha_finish()
/openbmc/google-misc/subprojects/libcr51sign/include/libcr51sign/
H A Dlibcr51sign_support.h28 struct hash_ctx struct
/openbmc/qemu/include/hw/misc/
H A Daspeed_hace.h41 QCryptoHash *hash_ctx; member
/openbmc/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-hcu-core.c79 struct ocs_hcu_hash_ctx hash_ctx; member
463 rc = ocs_hcu_hash_update(hcu_dev, &rctx->hash_ctx, in kmb_ocs_hcu_do_one_request()
502 rc = ocs_hcu_hash_finup(hcu_dev, &rctx->hash_ctx, in kmb_ocs_hcu_do_one_request()
513 rc = ocs_hcu_hash_final(hcu_dev, &rctx->hash_ctx, req->result, in kmb_ocs_hcu_do_one_request()
606 ocs_hcu_hash_init(&rctx->hash_ctx, rctx->algo); in kmb_ocs_hcu_init()