mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Return correct error code in TEMPLATE DecodeECC_DSA_Sig_Ex
This commit is contained in:
@ -32149,6 +32149,11 @@ int DecodeECC_DSA_Sig_Ex(const byte* sig, word32 sigLen, mp_int* r, mp_int* s,
|
|||||||
/* Decode the DSA signature. */
|
/* Decode the DSA signature. */
|
||||||
ret = GetASN_Items(dsaSigASN, dataASN, dsaSigASN_Length, 0, sig, &idx,
|
ret = GetASN_Items(dsaSigASN, dataASN, dsaSigASN_Length, 0, sig, &idx,
|
||||||
sigLen);
|
sigLen);
|
||||||
|
|
||||||
|
if (ret != 0) {
|
||||||
|
ret = ASN_ECC_KEY_E;
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef NO_STRICT_ECDSA_LEN
|
#ifndef NO_STRICT_ECDSA_LEN
|
||||||
/* sanity check that the index has been advanced all the way to the end of
|
/* sanity check that the index has been advanced all the way to the end of
|
||||||
* the buffer */
|
* the buffer */
|
||||||
|
Reference in New Issue
Block a user