diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-10-06 20:37:57 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-10-06 20:37:57 +0200 |
commit | db134bff34dce54cb3aab049c385f8e6d9523d21 (patch) | |
tree | 4d14da975f7bf40ad6c4f6c08bee313212231bdf /rsa.h | |
parent | 160507370846476148b44e170e5c34992a5a59a9 (diff) | |
download | nettle-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.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 */ |