Lines Matching refs:algo
45 static enum caam_hash_algos get_hash_type(struct hash_algo *algo) in get_hash_type() argument
47 if (!strcmp(algo->name, driver_hash[SHA1].name)) in get_hash_type()
162 unsigned char *pout, enum caam_hash_algos algo) in caam_hash() argument
184 driver_hash[algo].alg_type, in caam_hash()
185 driver_hash[algo].digestsize, in caam_hash()
193 size = ALIGN(driver_hash[algo].digestsize, ARCH_DMA_MINALIGN); in caam_hash()
215 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() argument
217 return caam_hash_init(ctxp, get_hash_type(algo)); in hw_sha_init()
220 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() argument
223 return caam_hash_update(ctx, buf, size, is_last, get_hash_type(algo)); in hw_sha_update()
226 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish() argument
229 return caam_hash_finish(ctx, dest_buf, size, get_hash_type(algo)); in hw_sha_finish()