summaryrefslogtreecommitdiff
path: root/nettle-meta.h
diff options
context:
space:
mode:
Diffstat (limited to 'nettle-meta.h')
-rw-r--r--nettle-meta.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/nettle-meta.h b/nettle-meta.h
index b5375a85..759037c8 100644
--- a/nettle-meta.h
+++ b/nettle-meta.h
@@ -28,6 +28,14 @@
#include <inttypes.h>
+/* Randomness. Used by key generation and dsa signature creation. */
+typedef void (*nettle_random_func)(void *ctx,
+ unsigned length, uint8_t *dst);
+
+/* Progress report function, mainly for key generation. */
+typedef void (*nettle_progress_func)(void *ctx,
+ int c);
+
/* Ciphers */
typedef void (*nettle_crypt_func)(void *ctx,
unsigned length, uint8_t *dst,