Lines Matching refs:alg
68 openssl_digest_ctx_create(const struct fsverity_hash_alg *alg, const EVP_MD *md)
76 ctx->base.alg = alg;
93 if (WARN_ON(EVP_MD_size(md) != alg->digest_size))
105 static struct hash_ctx *create_sha256_ctx(const struct fsverity_hash_alg *alg)
107 return openssl_digest_ctx_create(alg, EVP_sha256());
110 static struct hash_ctx *create_sha512_ctx(const struct fsverity_hash_alg *alg)
112 return openssl_digest_ctx_create(alg, EVP_sha512());
193 const struct fsverity_hash_alg *alg =
196 return alg ? alg->digest_size : -1;
202 const struct fsverity_hash_alg *alg =
205 return alg ? alg->name : NULL;