ed25519-randombytes-custom.h 417 B

1234567891011121314151617
  1. /*
  2. a custom randombytes must implement:
  3. void ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len);
  4. ed25519_randombytes_unsafe is used by the batch verification function
  5. to create random scalars
  6. */
  7. /* Tor: Instead of calling OpenSSL's CSPRNG directly, call the wrapper. */
  8. #include "crypto.h"
  9. static void
  10. ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len)
  11. {
  12. crypto_rand_unmocked(p, len);
  13. }