diff options
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/signature/sm2_sig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/signature/sm2_sig.c b/providers/implementations/signature/sm2_sig.c index 479e4eebe8..6b8936b959 100644 --- a/providers/implementations/signature/sm2_sig.c +++ b/providers/implementations/signature/sm2_sig.c @@ -313,6 +313,7 @@ int sm2sig_digest_verify_final(void *vpsm2ctx, const unsigned char *sig, if (psm2ctx == NULL || psm2ctx->mdctx == NULL + || EVP_MD_get_size(psm2ctx->md) <= 0 || EVP_MD_get_size(psm2ctx->md) > (int)sizeof(digest)) return 0; |