mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-04-21 14:29:10 +00:00
15 lines
335 B
C
15 lines
335 B
C
|
/*
|
||
|
a custom randombytes must implement:
|
||
|
|
||
|
void ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len);
|
||
|
|
||
|
ed25519_randombytes_unsafe is used by the batch verification function
|
||
|
to create random scalars
|
||
|
*/
|
||
|
#include <sodium/randombytes.h>
|
||
|
|
||
|
void ED25519_FN(ed25519_randombytes_unsafe) (void *p, size_t len)
|
||
|
{
|
||
|
randombytes(p,len);
|
||
|
}
|