summaryrefslogtreecommitdiffstats
path: root/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.h')
-rw-r--r--crypto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto.h b/crypto.h
index c037ad9..293f984 100644
--- a/crypto.h
+++ b/crypto.h
@@ -295,6 +295,9 @@ void crypto_adjust_frame_parameters(struct frame *frame,
/* Maximum length of the nonce used by the PRNG */
#define NONCE_SECRET_LEN_MAX 64
+/** Number of bytes of random to allow before resetting the nonce */
+#define PRNG_NONCE_RESET_BYTES 1024
+
/**
* Pseudo-random number generator initialisation.
* (see \c prng_rand_bytes())