From ff48d19727e110edc27e0b1f69b6f6974d9aa5c7 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 14 Jun 2017 14:49:52 -0600 Subject: [PATCH] fix wc_EccPrivateKeyDecode when pub exists --- wolfcrypt/src/asn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 08afa3b62..f78323106 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -10004,6 +10004,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;