Home
last modified time | relevance | path

Searched refs:tfmctx (Results 1 – 4 of 4) sorted by relevance

/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-hash.c61 tfmctx->keylen = digestsize; in sun8i_ss_hmac_setkey()
63 tfmctx->keylen = keylen; in sun8i_ss_hmac_setkey()
68 if (!tfmctx->ipad) in sun8i_ss_hmac_setkey()
71 if (!tfmctx->opad) { in sun8i_ss_hmac_setkey()
76 memset(tfmctx->key + tfmctx->keylen, 0, bs - tfmctx->keylen); in sun8i_ss_hmac_setkey()
77 memcpy(tfmctx->ipad, tfmctx->key, tfmctx->keylen); in sun8i_ss_hmac_setkey()
78 memcpy(tfmctx->opad, tfmctx->key, tfmctx->keylen); in sun8i_ss_hmac_setkey()
89 kfree_sensitive(tfmctx->opad); in sun8i_ss_hmac_setkey()
91 kfree_sensitive(tfmctx->ipad); in sun8i_ss_hmac_setkey()
137 kfree_sensitive(tfmctx->ipad); in sun8i_ss_hash_exit_tfm()
[all …]
/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-hash.c79 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_exit_tfm() local
81 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_exit_tfm()
82 pm_runtime_put_sync_suspend(tfmctx->ce->dev); in sun8i_ce_hash_exit_tfm()
89 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_init() local
93 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()
105 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_export() local
119 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_import() local
133 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_final() local
150 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_update() local
165 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_finup() local
[all …]
/drivers/crypto/rockchip/
A Drk3288_crypto_ahash.c48 struct rk_ahash_ctx *tfmctx = crypto_ahash_ctx(tfm); in rk_ahash_digest_fb() local
54 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
/drivers/crypto/allwinner/sun4i-ss/
A Dsun4i-ss-hash.c195 struct sun4i_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun4i_hash() local
196 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash()

Completed in 12 milliseconds