Lines Matching refs:algo
44 enum HASH_ALGO algo; member
114 static int aspeed_hace_init(struct udevice *dev, enum HASH_ALGO algo, void **ctxp) in aspeed_hace_init() argument
124 hace_ctx->algo = algo; in aspeed_hace_init()
127 switch (algo) { in aspeed_hace_init()
153 debug("Unsupported hash algorithm '%s'\n", hash_algo_name(algo)); in aspeed_hace_init()
229 switch (hace_ctx->algo) { in aspeed_hace_finish()
270 memcpy(obuf, hace_ctx->digest, hash_algo_digest_size(hace_ctx->algo)); in aspeed_hace_finish()
278 static int aspeed_hace_digest_wd(struct udevice *dev, enum HASH_ALGO algo, in aspeed_hace_digest_wd() argument
287 rc = aspeed_hace_init(dev, algo, &ctx); in aspeed_hace_digest_wd()
320 static int aspeed_hace_digest(struct udevice *dev, enum HASH_ALGO algo, in aspeed_hace_digest() argument
325 return aspeed_hace_digest_wd(dev, algo, ibuf, ilen, obuf, ilen); in aspeed_hace_digest()