ed25519-randombytes-custom.h 335 B

1234567891011121314
  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. #include <sodium/randombytes.h>
  8. void ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len)
  9. {
  10. randombytes(p,len);
  11. }