Merge pull request #674 from ZZMarquis/patch-2

remove the repetitive validation of cv->hash
This commit is contained in:
Zhi Guan
2019-01-16 09:49:11 +08:00
committed by GitHub

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