Annotation of src/usr.bin/ssh/rsa.h, Revision 1.6
1.1 provos 1: /*
1.6 ! markus 2: *
1.3 deraadt 3: * rsa.h
1.6 ! markus 4: *
1.3 deraadt 5: * Author: Tatu Ylonen <ylo@cs.hut.fi>
1.6 ! markus 6: *
1.3 deraadt 7: * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
8: * All rights reserved
1.6 ! markus 9: *
1.3 deraadt 10: * Created: Fri Mar 3 22:01:06 1995 ylo
1.6 ! markus 11: *
1.3 deraadt 12: * RSA key generation, encryption and decryption.
1.6 ! markus 13: *
1.1 provos 14: */
15:
1.6 ! markus 16: /* RCSID("$Id: rsa.h,v 1.5 2000/04/12 09:39:10 markus Exp $"); */
1.1 provos 17:
18: #ifndef RSA_H
19: #define RSA_H
20:
1.5 markus 21: #include <openssl/bn.h>
22: #include <openssl/rsa.h>
1.1 provos 23:
24: /* Calls SSL RSA_generate_key, only copies to prv and pub */
1.3 deraadt 25: void rsa_generate_key(RSA * prv, RSA * pub, unsigned int bits);
1.1 provos 26:
1.4 markus 27: /*
28: * Indicates whether the rsa module is permitted to show messages on the
29: * terminal.
30: */
1.2 deraadt 31: void rsa_set_verbose __P((int verbose));
1.1 provos 32:
1.3 deraadt 33: int rsa_alive __P((void));
1.2 deraadt 34:
1.3 deraadt 35: void rsa_public_encrypt __P((BIGNUM * out, BIGNUM * in, RSA * prv));
36: void rsa_private_decrypt __P((BIGNUM * out, BIGNUM * in, RSA * prv));
1.1 provos 37:
1.3 deraadt 38: #endif /* RSA_H */