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
174 driver_hash[algo].alg_type, in caam_hash()
175 driver_hash[algo].digestsize, in caam_hash()
198 int hw_sha_init(struct hash_algo *algo, void **ctxp) in hw_sha_init() argument
200 return caam_hash_init(ctxp, get_hash_type(algo)); in hw_sha_init()
203 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update() argument
206 return caam_hash_update(ctx, buf, size, is_last, get_hash_type(algo)); in hw_sha_update()
209 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish() argument
212 return caam_hash_finish(ctx, dest_buf, size, get_hash_type(algo)); in hw_sha_finish()