Searched refs:hash_ctx (Results 1 – 7 of 7) sorted by relevance
| /OK3568_Linux_fs/kernel/drivers/crypto/ux500/hash/ |
| H A D | hash_core.c | 134 struct hash_ctx *ctx = data; in hash_dma_callback() 139 static int hash_set_dma_transfer(struct hash_ctx *ctx, struct scatterlist *sg, in hash_set_dma_transfer() 185 static void hash_dma_done(struct hash_ctx *ctx) in hash_dma_done() 195 static int hash_dma_write(struct hash_ctx *ctx, in hash_dma_write() 221 struct hash_ctx *ctx = device_data->current_ctx; in get_empty_message_digest() 365 static int hash_get_device_data(struct hash_ctx *ctx, in hash_get_device_data() 471 struct hash_ctx *ctx) in init_hash_hw() 552 struct hash_ctx *ctx = crypto_ahash_ctx(tfm); in ux500_hash_init() 742 void hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx) in hash_begin() 764 struct hash_ctx *ctx, struct hash_req_ctx *req_ctx, in hash_process_data() [all …]
|
| H A D | hash_alg.h | 328 struct hash_ctx { struct 370 struct hash_ctx *current_ctx; 385 void hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx);
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | algif_hash.c | 19 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() 69 struct hash_ctx *ctx = ask->private; in hash_sendmsg() 136 struct hash_ctx *ctx = ask->private; in hash_sendpage() 188 struct hash_ctx *ctx = ask->private; in hash_recvmsg() 235 struct hash_ctx *ctx = ask->private; in hash_accept() 240 struct hash_ctx *ctx2; in hash_accept() 412 struct hash_ctx *ctx = ask->private; in hash_sock_destruct() 423 struct hash_ctx *ctx; in hash_accept_parent_nokey()
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | tpm.c | 709 sha1_context hash_ctx; in create_request_auth() local 718 sha1_starts(&hash_ctx); in create_request_auth() 719 sha1_update(&hash_ctx, request + command_code_offset, 4); in create_request_auth() 721 sha1_update(&hash_ctx, in create_request_auth() 725 sha1_finish(&hash_ctx, hmac_data); in create_request_auth() 727 sha1_starts(&hash_ctx); in create_request_auth() 728 sha1_update(&hash_ctx, auth_session->nonce_odd, DIGEST_LENGTH); in create_request_auth() 729 sha1_update(&hash_ctx, hmac_data, sizeof(hmac_data)); in create_request_auth() 730 sha1_finish(&hash_ctx, auth_session->nonce_odd); in create_request_auth() 774 sha1_context hash_ctx; in verify_response_auth() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/crypto/fsl/ |
| H A D | fsl_hash.c | 82 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()
|
| /OK3568_Linux_fs/u-boot/drivers/crypto/rockchip/ |
| H A D | crypto_v2.c | 413 struct rk_hash_ctx *hash_ctx = priv->hw_ctx; in rk_hash_direct_calc() local 414 struct crypto_lli_desc *lli = &hash_ctx->data_lli; in rk_hash_direct_calc() 561 struct rk_hash_ctx *hash_ctx = priv->hw_ctx; in rockchip_crypto_sha_init() local 567 memset(hash_ctx, 0x00, sizeof(*hash_ctx)); in rockchip_crypto_sha_init() 571 hash_ctx->hash_cache = crypto_hash_cache_alloc(rk_hash_direct_calc, in rockchip_crypto_sha_init() 575 if (!hash_ctx->hash_cache) in rockchip_crypto_sha_init() 579 ret = rk_hash_init(hash_ctx, ctx->algo); in rockchip_crypto_sha_init() 668 struct rk_hash_ctx *hash_ctx = priv->hw_ctx; in rockchip_crypto_hmac_init() local 674 memset(hash_ctx, 0x00, sizeof(*hash_ctx)); in rockchip_crypto_hmac_init() 678 hash_ctx->hash_cache = crypto_hash_cache_alloc(rk_hash_direct_calc, in rockchip_crypto_hmac_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | picoxcell_crypto.c | 169 u8 hash_ctx[SPACC_CRYPTO_IPSEC_HASH_PG_SZ]; member 478 if (keys.authkeylen > sizeof(ctx->hash_ctx)) in spacc_aead_setkey() 484 memcpy(ctx->hash_ctx, keys.authkey, keys.authkeylen); in spacc_aead_setkey() 567 ctx->hash_ctx, ctx->hash_key_len); in spacc_aead_submit()
|