Skip to content

Commit

Permalink
ltc: allow usage of rand_bn functions for ECC builds
Browse files Browse the repository at this point in the history
To be able to backport [1] we have to enable the "rand_bn" functions.

Link: [1] libtom/libtomcrypt@f0a51bb

Signed-off-by: Joakim Bech <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
jbech-linaro authored and jforissier committed Jul 1, 2019
1 parent c96d709 commit 0f4b02e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/lib/libtomcrypt/src/math/rand_bn.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*/
#include "tomcrypt.h"

#ifdef LTC_MDSA
/**
Generate a random number N with given bitlength (note: MSB can be 0)
*/
Expand Down Expand Up @@ -68,4 +67,3 @@ int rand_bn_range(void *N, void *limit, prng_state *prng, int wprng)

return CRYPT_OK;
}
#endif

0 comments on commit 0f4b02e

Please sign in to comment.