Searched refs:tfmctx (Results 1 – 4 of 4) sorted by relevance
78 tfmctx->keylen = digestsize; in sun8i_ss_hmac_setkey()80 tfmctx->keylen = keylen; in sun8i_ss_hmac_setkey()85 if (!tfmctx->ipad) in sun8i_ss_hmac_setkey()88 if (!tfmctx->opad) { in sun8i_ss_hmac_setkey()93 memset(tfmctx->key + tfmctx->keylen, 0, bs - tfmctx->keylen); in sun8i_ss_hmac_setkey()94 memcpy(tfmctx->ipad, tfmctx->key, tfmctx->keylen); in sun8i_ss_hmac_setkey()95 memcpy(tfmctx->opad, tfmctx->key, tfmctx->keylen); in sun8i_ss_hmac_setkey()106 kfree_sensitive(tfmctx->opad); in sun8i_ss_hmac_setkey()108 kfree_sensitive(tfmctx->ipad); in sun8i_ss_hmac_setkey()154 kfree_sensitive(tfmctx->ipad); in sun8i_ss_hash_exit_tfm()[all …]
66 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_exit_tfm() local68 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_exit_tfm()69 pm_runtime_put_sync_suspend(tfmctx->ce->dev); in sun8i_ce_hash_exit_tfm()76 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_init() local80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init()90 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_export() local102 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_import() local114 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_final() local139 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_update() local154 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_finup() local[all …]
48 struct rk_ahash_ctx *tfmctx = crypto_ahash_ctx(tfm); in rk_ahash_digest_fb() local54 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
195 struct sun4i_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun4i_hash() local196 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash()