Lines Matching refs:algo
132 enum HASH_ALGO algo; member
194 static int sw_hash_init(struct udevice *dev, enum HASH_ALGO algo, void **ctxp) in sw_hash_init() argument
197 struct sw_hash_impl *hash_impl = &sw_hash_impl[algo]; in sw_hash_init()
199 hash_ctx = malloc(sizeof(hash_ctx->algo) + hash_impl->ctx_alloc_sz); in sw_hash_init()
203 hash_ctx->algo = algo; in sw_hash_init()
215 struct sw_hash_impl *hash_impl = &sw_hash_impl[hash_ctx->algo]; in sw_hash_update()
225 struct sw_hash_impl *hash_impl = &sw_hash_impl[hash_ctx->algo]; in sw_hash_finish()
234 static int sw_hash_digest_wd(struct udevice *dev, enum HASH_ALGO algo, in sw_hash_digest_wd() argument
243 rc = sw_hash_init(dev, algo, &ctx); in sw_hash_digest_wd()
276 static int sw_hash_digest(struct udevice *dev, enum HASH_ALGO algo, in sw_hash_digest() argument
281 return sw_hash_digest_wd(dev, algo, ibuf, ilen, obuf, ilen); in sw_hash_digest()