Skip to content

Commit

Permalink
Expose EVP_Digest{Sign,Verify}(3)
Browse files Browse the repository at this point in the history
ok jsing
  • Loading branch information
botovq committed May 10, 2021
1 parent ec67d97 commit 767bfe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/libcrypto/Symbols.list
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions 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.
*
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 767bfe2

Please sign in to comment.