Skip to content

Commit 4974096

Browse files
Merge pull request #685 from ejohnstown/kyber-fix
Kyber Fix
2 parents 9b29ba6 + e01823d commit 4974096

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5133,7 +5133,7 @@ static int DoKexDhReply(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
51335133
if (ret == WS_SUCCESS) {
51345134
int useKeyPadding = 1;
51355135
#if !defined(WOLFSSH_NO_ECDH_NISTP256_KYBER_LEVEL1_SHA256)
5136-
doKeyPadding = !ssh->handshake->useEccKyber;
5136+
useKeyPadding = !ssh->handshake->useEccKyber;
51375137
#endif
51385138
ret = GenerateKeys(ssh, hashId, useKeyPadding);
51395139
}
@@ -10639,7 +10639,7 @@ int SendKexDhReply(WOLFSSH* ssh)
1063910639
if (ret == WS_SUCCESS) {
1064010640
int doKeyPadding = 1;
1064110641
#if !defined(WOLFSSH_NO_ECDH_NISTP256_KYBER_LEVEL1_SHA256)
10642-
doKeyPadding = !ssh->handshake->useEccKyber;
10642+
doKeyPadding = !useEccKyber;
1064310643
#endif
1064410644
ret = GenerateKeys(ssh, hashId, doKeyPadding);
1064510645
}

0 commit comments

Comments
 (0)