mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-12 11:26:25 +08:00
remove the repetitive validation of cv->hash
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;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ASN1_STRING_length(cv->hash) != 32) {
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* SM2CiphertextValue ==> ECCCipher */
|
/* SM2CiphertextValue ==> ECCCipher */
|
||||||
memset(ref, 0, sizeof(*ref));
|
memset(ref, 0, sizeof(*ref));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user