xref: /titanic_50/usr/src/cmd/ssh/include/rsa.h (revision 20c794b39650d115e17a15983b6b82e46238cf45)
1 /*	$OpenBSD: rsa.h,v 1.15 2002/03/04 17:27:39 stevesk Exp $	*/
2 
3 #ifndef	_RSA_H
4 #define	_RSA_H
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 
13 /*
14  * Author: Tatu Ylonen <ylo@cs.hut.fi>
15  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
16  *                    All rights reserved
17  * RSA key generation, encryption and decryption.
18  *
19  * As far as I am concerned, the code I have written for this software
20  * can be used freely for any purpose.  Any derived versions of this
21  * software must be clearly marked as such, and if the derived work is
22  * incompatible with the protocol description in the RFC file, it must be
23  * called by a name other than "ssh" or "Secure Shell".
24  */
25 
26 #include <openssl/bn.h>
27 #include <openssl/rsa.h>
28 
29 void	 rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *);
30 int	 rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *);
31 void	 rsa_generate_additional_parameters(RSA *);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* _RSA_H */
38