5 Author: Tatu Ylonen <ylo@cs.hut.fi>
7 Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
10 Created: Fri Mar 3 22:01:06 1995 ylo
12 RSA key generation, encryption and decryption.
23 #include <openssl/bn.h>
24 #include <openssl/rsa.h>
32 /* Calls SSL RSA_generate_key, only copies to prv and pub */
33 void rsa_generate_key(RSA *prv, RSA *pub, unsigned int bits);
35 /* Indicates whether the rsa module is permitted to show messages on
37 void rsa_set_verbose __P((int verbose));
39 int rsa_alive __P((void));
41 void rsa_public_encrypt __P((BIGNUM *out, BIGNUM *in, RSA *prv));
42 void rsa_private_decrypt __P((BIGNUM *out, BIGNUM *in, RSA *prv));