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