mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
Merge pull request #674 from ZZMarquis/patch-2
remove the repetitive validation of cv->hash
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user