summaryrefslogtreecommitdiff
path: root/rsa.h
diff options
context:
space:
mode:
Diffstat (limited to 'rsa.h')
-rw-r--r--rsa.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/rsa.h b/rsa.h
new file mode 100644
index 000000000..6aaabfae5
--- /dev/null
+++ b/rsa.h
@@ -0,0 +1,36 @@
1/*
2
3rsa.h
4
5Author: Tatu Ylonen <ylo@cs.hut.fi>
6
7Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8 All rights reserved
9
10Created: Fri Mar 3 22:01:06 1995 ylo
11
12RSA key generation, encryption and decryption.
13
14*/
15
16/* RCSID("$Id: rsa.h,v 1.1 1999/10/27 03:42:44 damien Exp $"); */
17
18#ifndef RSA_H
19#define RSA_H
20
21#include <openssl/bn.h>
22#include <openssl/rsa.h>
23
24/* Calls SSL RSA_generate_key, only copies to prv and pub */
25void rsa_generate_key(RSA *prv, RSA *pub, unsigned int bits);
26
27/* Indicates whether the rsa module is permitted to show messages on
28 the terminal. */
29void rsa_set_verbose __P((int verbose));
30
31int rsa_alive __P((void));
32
33void rsa_public_encrypt __P((BIGNUM *out, BIGNUM *in, RSA *prv));
34void rsa_private_decrypt __P((BIGNUM *out, BIGNUM *in, RSA *prv));
35
36#endif /* RSA_H */