Searched refs:caam_hash (Results 1 – 2 of 2) sorted by relevance
1769 struct caam_hash_alg *caam_hash = in caam_hash_cra_init() local1796 if (is_xcbc_aes(caam_hash->alg_type)) { in caam_hash_cra_init()1799 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()1801 } else if (is_cmac_aes(caam_hash->alg_type)) { in caam_hash_cra_init()1804 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()1809 ctx->key_dir = caam_hash->is_hmac ? DMA_TO_DEVICE : DMA_NONE; in caam_hash_cra_init()1814 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()1867 return caam_hash->is_hmac ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()
4560 struct caam_hash_alg *caam_hash = in caam_hash_cra_init() local4573 ctx->dev = caam_hash->dev; in caam_hash_cra_init()4575 if (caam_hash->is_hmac) { in caam_hash_cra_init()4603 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()4615 return caam_hash->is_hmac ? 0 : ahash_set_sh_desc(ahash); in caam_hash_cra_init()