summaryrefslogtreecommitdiff
path: root/rsa.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-10-06 20:37:57 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-10-06 20:37:57 +0200
commitdb134bff34dce54cb3aab049c385f8e6d9523d21 (patch)
tree4d14da975f7bf40ad6c4f6c08bee313212231bdf /rsa.h
parent160507370846476148b44e170e5c34992a5a59a9 (diff)
downloadnettle-db134bff34dce54cb3aab049c385f8e6d9523d21.tar.gz
(rsa_keypair_to_openpgp): New file, new function.
Rev: src/nettle/rsa.h:1.13 Rev: src/nettle/rsa2openpgp.c:1.1
Diffstat (limited to 'rsa.h')
-rw-r--r--rsa.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/rsa.h b/rsa.h
index cd30af9e..90a7f60b 100644
--- a/rsa.h
+++ b/rsa.h
@@ -5,7 +5,7 @@
/* nettle, low-level cryptographics library
*
- * Copyright (C) 2001 Niels Möller
+ * Copyright (C) 2001, 2002 Niels Möller
*
* The nettle library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -234,4 +234,12 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub,
unsigned length, const uint8_t *expr);
+/* OpenPGP format. Experimental interface, subject to change. */
+int
+rsa_keypair_to_openpgp(struct nettle_buffer *buffer,
+ const struct rsa_public_key *pub,
+ const struct rsa_private_key *priv,
+ /* A single user id. NUL-terminated utf8. */
+ const char userid);
+
#endif /* NETTLE_RSA_H_INCLUDED */