mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-11 16:33:40 +08:00
fix
remove EVP_DigestSign/VerifyUpdate
This commit is contained in:
@@ -559,13 +559,8 @@ unsigned long EVP_CIPHER_CTX_flags(const EVP_CIPHER_CTX *ctx);
|
|||||||
# define EVP_VerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
# define EVP_VerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
||||||
# define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e)
|
# define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e)
|
||||||
# define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e)
|
# define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e)
|
||||||
# ifndef NO_GMSSL
|
|
||||||
int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, size_t count);
|
|
||||||
int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t count);
|
|
||||||
# else
|
|
||||||
# define EVP_DigestSignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
# define EVP_DigestSignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
||||||
# define EVP_DigestVerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
# define EVP_DigestVerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
|
||||||
# endif
|
|
||||||
|
|
||||||
# ifdef CONST_STRICT
|
# ifdef CONST_STRICT
|
||||||
void BIO_set_md(BIO *, const EVP_MD *md);
|
void BIO_set_md(BIO *, const EVP_MD *md);
|
||||||
|
|||||||
@@ -132,21 +132,6 @@ int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
|
|||||||
return do_sigver_init(ctx, pctx, type, e, pkey, 1);
|
return do_sigver_init(ctx, pctx, type, e, pkey, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int EVP_DigestSignUpdate(EVP_MD_CTX *ctx, const void *data, size_t count)
|
|
||||||
{
|
|
||||||
/* if this is the first time we update,
|
|
||||||
* and if this is sm2
|
|
||||||
* we need to update ZID first
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef OPENSSL_FIPS
|
|
||||||
return FIPS_digestupdate(ctx, data, count);
|
|
||||||
#else
|
|
||||||
return ctx->update(ctx, data, count);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
|
int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
|
||||||
size_t *siglen)
|
size_t *siglen)
|
||||||
{
|
{
|
||||||
@@ -197,15 +182,6 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int EVP_DigestVerifyUpdate(EVP_MD_CTX *ctx, const void *data, size_t count)
|
|
||||||
{
|
|
||||||
#ifdef OPENSSL_FIPS
|
|
||||||
return FIPS_digestupdate(ctx, data, count);
|
|
||||||
#else
|
|
||||||
return ctx->update(ctx, data, count);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,
|
int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,
|
||||||
size_t siglen)
|
size_t siglen)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user