remove the repetitive validation of cv->hash

remove the repetitive validation of cv->hash
This commit is contained in:
ZZMarquis
2019-01-15 10:20:29 +08:00
committed by GitHub
parent 343fa622ae
commit ac773035b6

View File

@@ -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));