1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-25 07:48:10 +00:00
trezor-firmware/ed25519-donna/ed25519-randombytes-custom.h

13 lines
311 B
C
Raw Normal View History

2016-04-22 15:47:48 +00:00
/*
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 "rand.h"
#define ed25519_randombytes_unsafe(p, len) random_buffer((uint8_t *)(p), (len))