Skip to content

Commit

Permalink
libtomcrypt: Remove prng_state* NULL pointer check from ed25519_make_…
Browse files Browse the repository at this point in the history
…key()

For the same reasons as in commit 2d7740f ("core: libtomcrypt:
Remove prng_state* NULL pointer check from x25519_make_key()"), remove
the NULL pointer check in ed25519_make_key().

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jforissier authored and jenswi-linaro committed Apr 24, 2024
1 parent a1e9686 commit d3040d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/lib/libtomcrypt/src/pk/ed25519/ed25519_make_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ int ed25519_make_key(prng_state *prng, int wprng, curve25519_key *key)
{
int err;

LTC_ARGCHK(prng != NULL);
LTC_ARGCHK(key != NULL);

if ((err = tweetnacl_crypto_sign_keypair(prng, wprng, key->pub, key->priv)) != CRYPT_OK) {
Expand Down

0 comments on commit d3040d8

Please sign in to comment.