From 603916feaf7ef49c6d89854697779016fd555e7f Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 18 Nov 2021 21:37:57 +0000 Subject: [PATCH] sha512test: replace EVP_MD_CTX_{cleanup,init} pair with EVP_MD_CTX_reset --- regress/lib/libcrypto/sha512/sha512test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/regress/lib/libcrypto/sha512/sha512test.c b/regress/lib/libcrypto/sha512/sha512test.c index 9f0e7419d7a..f8e37a20fa0 100644 --- a/regress/lib/libcrypto/sha512/sha512test.c +++ b/regress/lib/libcrypto/sha512/sha512test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha512test.c,v 1.5 2021/11/18 15:23:24 tb Exp $ */ +/* $OpenBSD: sha512test.c,v 1.6 2021/11/18 21:37:57 tb Exp $ */ /* ==================================================================== * Copyright (c) 2004 The OpenSSL Project. All rights reserved. * ==================================================================== @@ -141,7 +141,7 @@ main(int argc, char **argv) { "aaaaaaaa""aaaaaaaa""aaaaaaaa""aaaaaaaa", (1000000 - i) < 288 ? 1000000 - i : 288); EVP_DigestFinal_ex(evp, md, NULL); - EVP_MD_CTX_cleanup(evp); + EVP_MD_CTX_reset(evp); if (memcmp(md, app_c3, sizeof(app_c3))) { fflush(stdout); @@ -179,7 +179,6 @@ main(int argc, char **argv) { fprintf(stdout, "."); fflush(stdout); - EVP_MD_CTX_init(evp); EVP_DigestInit_ex(evp, EVP_sha384(), NULL); for (i = 0; i < 1000000; i += 64) EVP_DigestUpdate(evp, -- 2.20.1