diff options
author | slontis <shane.lontis@oracle.com> | 2024-08-26 03:14:55 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-08-29 10:29:53 +0200 |
commit | 976dd3581a00c5006bd696ac9ba7289de4d137d5 (patch) | |
tree | b6c6cdee4c4b9d358a9f988a564ced4e167a5926 /apps | |
parent | XOF / EVP_MD_size() changes. (diff) | |
download | openssl-976dd3581a00c5006bd696ac9ba7289de4d137d5.tar.xz openssl-976dd3581a00c5006bd696ac9ba7289de4d137d5.zip |
Update code to use EVP_MD_xof()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25285)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 2 | ||||
-rw-r--r-- | apps/speed.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 118754c4db..818139f4e1 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -419,7 +419,7 @@ int dgst_main(int argc, char **argv) md_name = EVP_MD_get0_name(md); if (xoflen > 0) { - if (!(EVP_MD_get_flags(md) & EVP_MD_FLAG_XOF)) { + if (!EVP_MD_xof(md)) { BIO_printf(bio_err, "Length can only be specified for XOF\n"); goto end; } diff --git a/apps/speed.c b/apps/speed.c index 48f91b2213..0079fd7c30 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -631,7 +631,7 @@ static int EVP_Digest_loop(const char *mdname, ossl_unused int algindex, void *a if (!opt_md_silent(mdname, &md)) return -1; - if (EVP_MD_get_flags(md) & EVP_MD_FLAG_XOF) { + if (EVP_MD_xof(md)) { ctx = EVP_MD_CTX_new(); if (ctx == NULL) { count = -1; |