Home
last modified time | relevance | path

Searched refs:caam_hash (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/crypto/caam/
H A Dcaamhash.c1770 struct caam_hash_alg *caam_hash = in caam_hash_cra_init() local
1797 if (is_xcbc_aes(caam_hash->alg_type)) { in caam_hash_cra_init()
1800 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1802 } else if (is_cmac_aes(caam_hash->alg_type)) { in caam_hash_cra_init()
1805 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1810 ctx->key_dir = caam_hash->is_hmac ? DMA_TO_DEVICE : DMA_NONE; in caam_hash_cra_init()
1815 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1868 return caam_hash->is_hmac ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()
H A Dcaamalg_qi2.c4562 struct caam_hash_alg *caam_hash = in caam_hash_cra_init() local
4575 ctx->dev = caam_hash->dev; in caam_hash_cra_init()
4577 if (caam_hash->is_hmac) { in caam_hash_cra_init()
4605 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4617 return caam_hash->is_hmac ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()