Expose EVP_Digest{Sign,Verify}(3)
authortb <tb@openbsd.org>
Mon, 10 May 2021 17:00:32 +0000 (17:00 +0000)
committertb <tb@openbsd.org>
Mon, 10 May 2021 17:00:32 +0000 (17:00 +0000)
ok jsing

lib/libcrypto/Symbols.list
lib/libcrypto/evp/evp.h

index c8834c5..abca6e2 100644 (file)
@@ -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
index e2ec40b..06c529e 100644 (file)
@@ -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);