forked from wolfSSL/wolfssl
Merge pull request #966 from cconlon/ecc_asn
fix wc_EccPrivateKeyDecode when pub exists
This commit is contained in:
@@ -9999,6 +9999,7 @@ int wc_EccPrivateKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key,
|
||||
if (pubSz < 2*(ECC_MAXSIZE+1)) {
|
||||
XMEMCPY(pub, &input[*inOutIdx], pubSz);
|
||||
*inOutIdx += length;
|
||||
pubData = pub;
|
||||
}
|
||||
else
|
||||
ret = BUFFER_E;
|
||||
|
Reference in New Issue
Block a user