Skip to content

Commit 361dc5d

Browse files
committed
Update C# wrapper to new ML-DSA names
1 parent 82b3401 commit 361dc5d

8 files changed

Lines changed: 221 additions & 207 deletions

File tree

tests/api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ static int test_dual_alg_ecdsa_mldsa(void)
15631563
!defined(WOLFSSL_DILITHIUM_NO_SIGN) && \
15641564
!defined(WOLFSSL_DILITHIUM_NO_VERIFY) && !defined(WOLFSSL_SMALL_STACK)
15651565
WOLFSSL_CERT_MANAGER * cm = NULL;
1566-
MlDsaKey alt_ca_key;
1566+
wc_MlDsaKey alt_ca_key;
15671567
ecc_key ca_key;
15681568
WC_RNG rng;
15691569
int ret = 0;

tests/api/test_mldsa.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30441,7 +30441,7 @@ int test_mldsa_x509_pubkey_sigtype(void)
3044130441
* The two functions below are not runtime tests. Their bodies sit inside
3044230442
* `if (0)` so the compiler parses every reference without emitting any
3044330443
* runtime call. Their job is to fail compilation if the canonical
30444-
* wc_MlDsaKey_* / MlDsaKey API in <wolfssl/wolfcrypt/wc_mldsa.h> or the
30444+
* wc_MlDsaKey_* / wc_MlDsaKey API in <wolfssl/wolfcrypt/wc_mldsa.h> or the
3044530445
* legacy alias surface in <wolfssl/wolfcrypt/dilithium.h> drifts in a way
3044630446
* that would silently break a downstream consumer. They live in this test
3044730447
* translation unit (rather than wolfcrypt/src/wc_mldsa.c) so the library
@@ -30462,20 +30462,20 @@ int test_mldsa_x509_pubkey_sigtype(void)
3046230462
#define WOLFSSL_MLDSA_API_CHECK_INLINE static WC_INLINE
3046330463
#endif
3046430464

30465-
/* Compile-time validation of the canonical wc_MlDsaKey_* / MlDsaKey API. */
30465+
/* Compile-time validation of the canonical wc_MlDsaKey_* / wc_MlDsaKey API. */
3046630466
WOLFSSL_MLDSA_API_CHECK_INLINE void wc_mldsa_canonical_api_check(void)
3046730467
{
3046830468
if (0) {
30469-
MlDsaKey k;
30470-
const MlDsaParams *p;
30469+
wc_MlDsaKey k;
30470+
const wc_MlDsaParams *p;
3047130471
const byte buf[1] = { 0 };
3047230472
word32 sz = 0;
3047330473
byte level = 0;
3047430474
int res = 0;
3047530475
WC_RNG *rng = NULL;
3047630476

30477-
(void)sizeof(MlDsaKey);
30478-
(void)sizeof(MlDsaParams);
30477+
(void)sizeof(wc_MlDsaKey);
30478+
(void)sizeof(wc_MlDsaParams);
3047930479

3048030480
/* Lifecycle / parameters. */
3048130481
(void)wc_MlDsaKey_Init(&k, NULL, INVALID_DEVID);
@@ -30589,7 +30589,7 @@ WOLFSSL_MLDSA_API_CHECK_INLINE void wc_mldsa_canonical_api_check(void)
3058930589
WOLFSSL_MLDSA_API_CHECK_INLINE void wc_mldsa_legacy_alias_check(void)
3059030590
{
3059130591
if (0) {
30592-
MlDsaKey k;
30592+
wc_MlDsaKey k;
3059330593
dilithium_key *kp = (dilithium_key *)0;
3059430594
const wc_dilithium_params *pp = (const wc_dilithium_params *)0;
3059530595
const byte buf[1] = { 0 };

0 commit comments

Comments
 (0)