forked from wolfSSL/wolfssl
Initialize some Kyber variables
This commit is contained in:
@@ -8437,7 +8437,7 @@ static int TLSX_KeyShare_ProcessPqc(WOLFSSL* ssl, KeyShareEntry* keyShareEntry)
|
|||||||
XMEMCPY(ssl->arrays->preMasterSecret, keyShareEntry->ke,
|
XMEMCPY(ssl->arrays->preMasterSecret, keyShareEntry->ke,
|
||||||
keyShareEntry->keLen);
|
keyShareEntry->keLen);
|
||||||
ssl->arrays->preMasterSz = keyShareEntry->keLen;
|
ssl->arrays->preMasterSz = keyShareEntry->keLen;
|
||||||
XFREE(keyShareEntry->ke, ssl->heap, DYNAMIC_TYPE_SECRET)
|
XFREE(keyShareEntry->ke, ssl->heap, DYNAMIC_TYPE_SECRET);
|
||||||
keyShareEntry->ke = NULL;
|
keyShareEntry->ke = NULL;
|
||||||
keyShareEntry->keLen = 0;
|
keyShareEntry->keLen = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -364,12 +364,12 @@ static int kyberkey_encapsulate(KyberKey* key, const byte* msg, byte* coins,
|
|||||||
unsigned char* ct)
|
unsigned char* ct)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
sword16* sp;
|
sword16* sp = NULL;
|
||||||
sword16* ep;
|
sword16* ep = NULL;
|
||||||
sword16* k;
|
sword16* k = NULL;
|
||||||
sword16* epp;
|
sword16* epp = NULL;
|
||||||
unsigned int kp;
|
unsigned int kp = 0;
|
||||||
unsigned int compVecSz;
|
unsigned int compVecSz = 0;
|
||||||
#ifndef USE_INTEL_SPEEDUP
|
#ifndef USE_INTEL_SPEEDUP
|
||||||
sword16* at = NULL;
|
sword16* at = NULL;
|
||||||
#else
|
#else
|
||||||
@@ -636,7 +636,7 @@ static KYBER_NOINLINE int kyberkey_decapsulate(KyberKey* key,
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
sword16* v;
|
sword16* v;
|
||||||
sword16* mp;
|
sword16* mp;
|
||||||
unsigned int kp;
|
unsigned int kp = 0;
|
||||||
unsigned int compVecSz;
|
unsigned int compVecSz;
|
||||||
#ifndef USE_INTEL_SPEEDUP
|
#ifndef USE_INTEL_SPEEDUP
|
||||||
sword16* bp = NULL;
|
sword16* bp = NULL;
|
||||||
@@ -741,7 +741,7 @@ int wc_KyberKey_Decapsulate(KyberKey* key, unsigned char* ss,
|
|||||||
byte msg[2 * KYBER_SYM_SZ];
|
byte msg[2 * KYBER_SYM_SZ];
|
||||||
byte kr[2 * KYBER_SYM_SZ + 1];
|
byte kr[2 * KYBER_SYM_SZ + 1];
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
unsigned int ctSz;
|
unsigned int ctSz = 0;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
int fail;
|
int fail;
|
||||||
#ifndef USE_INTEL_SPEEDUP
|
#ifndef USE_INTEL_SPEEDUP
|
||||||
|
Reference in New Issue
Block a user