Skip to content

Commit

Permalink
Merge pull request wolfSSL#8185 from SparkiDev/kyber_fixes_4
Browse files Browse the repository at this point in the history
Kyber: Fix wolfSSL_get_curve_name()
  • Loading branch information
dgarske authored Nov 15, 2024
2 parents fcfd3be + b98af85 commit e22d17c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -14667,19 +14667,19 @@ const char* wolfSSL_get_curve_name(WOLFSSL* ssl)
case WOLFSSL_P521_KYBER_LEVEL5:
return "P521_KYBER_LEVEL5";
#elif defined(WOLFSSL_WC_KYBER)
#ifdef WOLFSSL_KYBER512
#ifndef WOLFSSL_NO_KYBER512
case WOLFSSL_KYBER_LEVEL1:
return "KYBER_LEVEL1";
case WOLFSSL_P256_KYBER_LEVEL1:
return "P256_KYBER_LEVEL1";
#endif
#ifdef WOLFSSL_KYBER768
#ifndef WOLFSSL_NO_KYBER768
case WOLFSSL_KYBER_LEVEL3:
return "KYBER_LEVEL3";
case WOLFSSL_P384_KYBER_LEVEL3:
return "P384_KYBER_LEVEL3";
#endif
#ifdef WOLFSSL_KYBER1024
#ifndef WOLFSSL_NO_KYBER1024
case WOLFSSL_KYBER_LEVEL5:
return "KYBER_LEVEL5";
case WOLFSSL_P521_KYBER_LEVEL5:
Expand Down

0 comments on commit e22d17c

Please sign in to comment.