Skip to content

Commit

Permalink
Split PQC hybrid KEX from PQC-only KEX
Browse files Browse the repository at this point in the history
  • Loading branch information
Frauschi committed Oct 1, 2024
1 parent 64ba1a1 commit 37d186f
Show file tree
Hide file tree
Showing 4 changed files with 635 additions and 209 deletions.
10 changes: 10 additions & 0 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -34154,6 +34154,16 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
case WOLFSSL_KYBER_LEVEL1:
case WOLFSSL_KYBER_LEVEL3:
case WOLFSSL_KYBER_LEVEL5:
return 1;
default:
return 0;
}
}

/* Returns 1 when the given group is a PQC hybrid group, 0 otherwise. */
int NamedGroupIsPqcHybrid(int group)
{
switch (group) {
case WOLFSSL_P256_KYBER_LEVEL3:
case WOLFSSL_X25519_KYBER_LEVEL3:
case WOLFSSL_P384_KYBER_LEVEL5:
Expand Down
Loading

0 comments on commit 37d186f

Please sign in to comment.