From 767bfe2989cb5bb831736fd5190c6ddc201753d6 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 10 May 2021 17:00:32 +0000 Subject: [PATCH] Expose EVP_Digest{Sign,Verify}(3) ok jsing --- lib/libcrypto/Symbols.list | 2 ++ lib/libcrypto/evp/evp.h | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list index c8834c5a1c4..abca6e2fc0d 100644 --- a/lib/libcrypto/Symbols.list +++ b/lib/libcrypto/Symbols.list @@ -1452,9 +1452,11 @@ EVP_DigestFinal EVP_DigestFinal_ex EVP_DigestInit EVP_DigestInit_ex +EVP_DigestSign EVP_DigestSignFinal EVP_DigestSignInit EVP_DigestUpdate +EVP_DigestVerify EVP_DigestVerifyFinal EVP_DigestVerifyInit EVP_ENCODE_CTX_free diff --git a/lib/libcrypto/evp/evp.h b/lib/libcrypto/evp/evp.h index e2ec40b26ca..06c529ef3f3 100644 --- a/lib/libcrypto/evp/evp.h +++ b/lib/libcrypto/evp/evp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: evp.h,v 1.82 2021/05/09 14:25:40 tb Exp $ */ +/* $OpenBSD: evp.h,v 1.83 2021/05/10 17:00:32 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -628,20 +628,16 @@ int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey); int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen); -#if defined(LIBRESSL_INTERNAL) int EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen, const unsigned char *tbs, size_t tbslen); -#endif int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey); int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen); -#if defined(LIBRESSL_INTERNAL) int EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret, size_t siglen, const unsigned char *tbs, size_t tbslen); -#endif int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv); -- 2.20.1