1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 09:58:27 +00:00
trezor-firmware/ed25519-donna/ed25519-randombytes-custom.h
2016-04-22 18:21:58 +02:00

13 lines
311 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 "rand.h"
#define ed25519_randombytes_unsafe(p, len) random_buffer((uint8_t *)(p), (len))