Searched refs:tfmctx (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 29 static int sun8i_ss_hashkey(struct sun8i_ss_hash_tfm_ctx *tfmctx, const u8 *key, in sun8i_ss_hashkey() argument 39 ret = crypto_shash_tfm_digest(xtfm, key, keylen, tfmctx->key); in sun8i_ss_hashkey() 41 dev_err(tfmctx->ss->dev, "shash digest error ret=%d\n", ret); in sun8i_ss_hashkey() 50 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(ahash); in sun8i_ss_hmac_setkey() local 58 ret = sun8i_ss_hashkey(tfmctx, key, keylen); in sun8i_ss_hmac_setkey() 61 tfmctx->keylen = digestsize; in sun8i_ss_hmac_setkey() 63 tfmctx->keylen = keylen; in sun8i_ss_hmac_setkey() 64 memcpy(tfmctx->key, key, keylen); in sun8i_ss_hmac_setkey() 67 tfmctx->ipad = kzalloc(bs, GFP_KERNEL); in sun8i_ss_hmac_setkey() 68 if (!tfmctx->ipad) in sun8i_ss_hmac_setkey() [all …]
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 66 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_exit_tfm() local 68 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() local 80 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() local 92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export() 102 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_import() local 104 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import() 114 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_final() local [all …]
|
/linux/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_ahash.c | 48 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()
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-hash.c | 195 struct sun4i_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun4i_hash() local 196 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash()
|