Searched refs:tfmctx (Results 1 – 4 of 4) sorted by relevance
/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 24 static int sun8i_ss_hashkey(struct sun8i_ss_hash_tfm_ctx *tfmctx, const u8 *key, in sun8i_ss_hashkey() argument 46 dev_err(tfmctx->ss->dev, "shash init error ret=%d\n", ret); in sun8i_ss_hashkey() 49 ret = crypto_shash_finup(sdesc, key, keylen, tfmctx->key); in sun8i_ss_hashkey() 51 dev_err(tfmctx->ss->dev, "shash finup error\n"); in sun8i_ss_hashkey() 62 struct sun8i_ss_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(ahash); in sun8i_ss_hmac_setkey() local 73 ret = sun8i_ss_hashkey(tfmctx, key, keylen); in sun8i_ss_hmac_setkey() 76 tfmctx->keylen = digestsize; in sun8i_ss_hmac_setkey() 78 tfmctx->keylen = keylen; in sun8i_ss_hmac_setkey() 79 memcpy(tfmctx->key, key, keylen); in sun8i_ss_hmac_setkey() 82 tfmctx->ipad = kzalloc(bs, GFP_KERNEL | GFP_DMA); in sun8i_ss_hmac_setkey() [all …]
|
/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-hash.c | 68 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_tfm_ctx(tfm); in sun8i_ce_hash_craexit() local 70 crypto_free_ahash(tfmctx->fallback_tfm); in sun8i_ce_hash_craexit() 71 pm_runtime_put_sync_suspend(tfmctx->ce->dev); in sun8i_ce_hash_craexit() 78 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_init() local 82 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_init() 92 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_export() local 94 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_export() 104 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_import() local 106 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ce_hash_import() 116 struct sun8i_ce_hash_tfm_ctx *tfmctx = crypto_ahash_ctx(tfm); in sun8i_ce_hash_final() local [all …]
|
/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 41 struct rk_ahash_ctx *tfmctx = crypto_ahash_ctx(tfm); in rk_ahash_digest_fb() local 43 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in rk_ahash_digest_fb()
|
/drivers/crypto/allwinner/sun4i-ss/ |
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()
|