From ac773035b683fe244c2b4bc995de2d3834f458e2 Mon Sep 17 00:00:00 2001 From: ZZMarquis Date: Tue, 15 Jan 2019 10:20:29 +0800 Subject: [PATCH] remove the repetitive validation of cv->hash remove the repetitive validation of cv->hash --- crypto/gmapi/gmapi_sdf_ec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crypto/gmapi/gmapi_sdf_ec.c b/crypto/gmapi/gmapi_sdf_ec.c index 6573aa89..428cd8c0 100644 --- a/crypto/gmapi/gmapi_sdf_ec.c +++ b/crypto/gmapi/gmapi_sdf_ec.c @@ -420,10 +420,6 @@ int SM2CiphertextValue_get_ECCCipher(const SM2CiphertextValue *cv, goto end; } - if (ASN1_STRING_length(cv->hash) != 32) { - goto end; - } - /* SM2CiphertextValue ==> ECCCipher */ memset(ref, 0, sizeof(*ref));