]> andersk Git - openssh.git/blame - rsa.h
- Add recommendation to use GNU make to INSTALL document
[openssh.git] / rsa.h
CommitLineData
8efc0c15 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$"); */
5881cd60 17#include "config.h"
8efc0c15 18
19#ifndef RSA_H
20#define RSA_H
21
5881cd60 22#ifdef HAVE_OPENSSL
8efc0c15 23#include <openssl/bn.h>
24#include <openssl/rsa.h>
5881cd60 25#endif
26
27#ifdef HAVE_SSL
28#include <ssl/bn.h>
29#include <ssl/rsa.h>
30#endif
8efc0c15 31
32/* Calls SSL RSA_generate_key, only copies to prv and pub */
33void rsa_generate_key(RSA *prv, RSA *pub, unsigned int bits);
34
35/* Indicates whether the rsa module is permitted to show messages on
36 the terminal. */
4cca272e 37void rsa_set_verbose(int verbose);
8efc0c15 38
4cca272e 39int rsa_alive(void);
8efc0c15 40
4cca272e 41void rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *prv);
42void rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *prv);
8efc0c15 43
44#endif /* RSA_H */
This page took 0.0576 seconds and 5 git commands to generate.