Skip to content

Commit e01823d

Browse files
committed
Kyber Testing
1. Fix a couple spots where a flag to use kyber wasn't getting set correctly. 2. Changed a check to kyber back to the original source, a local variable.
1 parent d2c4284 commit e01823d

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)