Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/crypto/fsl/
H A Dfsl_hash.c161 int caam_hash(const unsigned char *pbuf, unsigned int buf_len, in caam_hash() function
187 if (caam_hash(pbuf, buf_len, pout, SHA256)) in hw_sha256()
194 if (caam_hash(pbuf, buf_len, pout, SHA1)) in hw_sha1()
/OK3568_Linux_fs/kernel/drivers/crypto/caam/
H A Dcaamhash.c1760 struct caam_hash_alg *caam_hash = in caam_hash_cra_init() local
1787 if (is_xcbc_aes(caam_hash->alg_type)) { in caam_hash_cra_init()
1790 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1792 } else if (is_cmac_aes(caam_hash->alg_type)) { in caam_hash_cra_init()
1795 ctx->adata.algtype = OP_TYPE_CLASS1_ALG | caam_hash->alg_type; in caam_hash_cra_init()
1805 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
H A Dcaamalg_qi2.c4545 struct caam_hash_alg *caam_hash = in caam_hash_cra_init() local
4558 ctx->dev = caam_hash->dev; in caam_hash_cra_init()
4588 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()