Skip to content

Commit 8b01033

Browse files
committed
se050: reviewer's fixes
1 parent 2f5df5c commit 8b01033

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/se050-sim.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
# We patch it to COPY the PR checkout instead so CI reflects the PR's source.
2121

2222
env:
23-
SE050SIM_REF: main
23+
SE050SIM_REF: 8fda9212c306fbee0dcd66f2dd52b13f65f13e00
2424

2525
jobs:
2626
se050_sim:

.wolfssl_known_macro_extras

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ WOLFSSL_SE050_AUTO_ERASE
880880
WOLFSSL_SE050_CRYPT
881881
WOLFSSL_SE050_HASH
882882
WOLFSSL_SE050_INIT
883-
WOLFSSL_SE050_NOECDHE
883+
WOLFSSL_SE050_NO_ECDHE
884884
WOLFSSL_SE050_NO_ECDSA_VERIFY
885885
WOLFSSL_SE050_NO_RSA
886886
WOLFSSL_SE050_NO_RSA_VERIFY

wolfcrypt/src/ecc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ ECC Curve Sizes:
291291
#undef HAVE_ECC_VERIFY_HELPER
292292
#define HAVE_ECC_VERIFY_HELPER
293293
#endif
294-
#if defined(WOLFSSL_SE050_NO_ECDSA_VERIFY)
294+
#if defined(WOLFSSL_SE050_NO_ECDSA_VERIFY) && defined(HAVE_ECC_VERIFY)
295295
#define HAVE_ECC_VERIFY_HELPER
296296
#endif
297297

@@ -4770,7 +4770,7 @@ int wc_ecc_shared_secret(ecc_key* private_key, ecc_key* public_key, byte* out,
47704770
err = silabs_ecc_shared_secret(private_key, public_key, out, outlen);
47714771
#elif defined(WOLFSSL_KCAPI_ECC)
47724772
err = KcapiEcc_SharedSecret(private_key, public_key, out, outlen);
4773-
#elif defined(WOLFSSL_SE050) && !defined(WOLFSSL_SE050_NOECDHE)
4773+
#elif defined(WOLFSSL_SE050) && !defined(WOLFSSL_SE050_NO_ECDHE)
47744774
err = se050_ecc_shared_secret(private_key, public_key, out, outlen);
47754775
#else
47764776
err = wc_ecc_shared_secret_ex(private_key, &public_key->pubkey, out, outlen);
@@ -5764,7 +5764,7 @@ static int _ecc_make_key_ex(WC_RNG* rng, int keysize, ecc_key* key,
57645764
else {
57655765
err = NOT_COMPILED_IN;
57665766
}
5767-
#elif defined(WOLFSSL_SE050) && !defined(WOLFSSL_SE050_NOECDHE)
5767+
#elif defined(WOLFSSL_SE050) && !defined(WOLFSSL_SE050_NO_ECDHE)
57685768
err = se050_ecc_create_key(key, key->dp->id, key->dp->size);
57695769
key->type = ECC_PRIVATEKEY;
57705770
#elif defined(WOLFSSL_CRYPTOCELL)

wolfcrypt/src/port/nxp/README_SE050.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ defined, wolfCrypt will instead fall back to using `/dev/random` and
246246
Disables using the SE050 for RSA, useful for the SE050E which does not have
247247
RSA support.
248248

249-
**`WOLFSSL_SE050_NOECDHE`**
249+
**`WOLFSSL_SE050_NO_ECDHE`**
250250

251251
Disables offloading ECDH key generation and shared secret operations to the
252252
SE050. When defined, `wc_ecc_make_key()` and `wc_ecc_shared_secret()` will

0 commit comments

Comments
 (0)