summaryrefslogtreecommitdiff
path: root/nettle-meta.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-10-09 09:34:57 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-10-09 09:34:57 +0200
commit3f0c8f7425b63dc988d48a75633f7a56b163aaad (patch)
tree2e15fa48ee16e7e7de02bf84ec278cd25bc3e0bb /nettle-meta.h
parentbd5af52b84149cd2f76bbff7e55592456de5e899 (diff)
downloadnettle-3f0c8f7425b63dc988d48a75633f7a56b163aaad.tar.gz
* nettle-meta.h: Moved the nettle_random_func and
nettle_progress_func typedefs here... * rsa.h: ... from here. Rev: src/nettle/nettle-meta.h:1.7 Rev: src/nettle/rsa.h:1.14
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,