summaryrefslogtreecommitdiff
path: root/rsa.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-01-14 02:16:42 +0100
committerNiels Möller <nisse@lysator.liu.se>2002-01-14 02:16:42 +0100
commitf9e3fbf9c84ada22370b8557e443d0f2572f99ed (patch)
treed1066f2e17ef64f8ea86168c7cecf91655b0fb12 /rsa.h
parent84ccbaa5ac3ea7e24c411c74b53bf46a24c57b25 (diff)
downloadnettle-f9e3fbf9c84ada22370b8557e443d0f2572f99ed.tar.gz
rsa.h is now obsolete.
Rev: src/nettle/hmac-md5.h:1.1 Rev: src/nettle/rsa.h:1.5 Rev: src/nettle/rsa_md5.c:1.3 Rev: src/nettle/rsa_sha1.c:1.3 Rev: src/nettle/testsuite/Makefile.am:1.18 Rev: src/nettle/testsuite/aes-test.c:1.2 Rev: src/nettle/testsuite/arcfour-test.c:1.2 Rev: src/nettle/testsuite/bignum-test.c:1.2 Rev: src/nettle/testsuite/blowfish-test.c:1.2 Rev: src/nettle/testsuite/cast128-test.c:1.2 Rev: src/nettle/testsuite/cbc-test.c:1.2 Rev: src/nettle/testsuite/des-compat-test.c:1.3 Rev: src/nettle/testsuite/des-test.c:1.2 Rev: src/nettle/testsuite/des3-test.c:1.2 Rev: src/nettle/testsuite/md5-compat-test.c:1.2 Rev: src/nettle/testsuite/md5-test.c:1.2 Rev: src/nettle/testsuite/serpent-test.c:1.2 Rev: src/nettle/testsuite/sha1-test.c:1.2 Rev: src/nettle/testsuite/sha256-test.c:1.2 Rev: src/nettle/testsuite/testutils.c:1.6 Rev: src/nettle/testsuite/testutils.h:1.4 Rev: src/nettle/testsuite/twofish-test.c:1.2 Rev: src/nettle/testsuite/yarrow-test.c:1.11
Diffstat (limited to 'rsa.h')
-rw-r--r--rsa.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rsa.h b/rsa.h
index 08df531d..295abc31 100644
--- a/rsa.h
+++ b/rsa.h
@@ -137,5 +137,14 @@ rsa_sha1_verify(struct rsa_public_key *key,
void
rsa_compute_root(struct rsa_private_key *key, mpz_t x, const mpz_t m);
+#define RSA_SIGN(key, algorithm, ctx, length, data, signature) ( \
+ algorithm##_update(ctx, length, data), \
+ rsa_##algorithm##_sign(key, ctx, signature) \
+)
+
+#define RSA_VERIFY(key, algorithm, ctx, length, data, signature) ( \
+ algorithm##_update(ctx, length, data), \
+ rsa_##algorithm##_verify(key, ctx, signature) \
+)
#endif /* NETTLE_RSA_H_INCLUDED */