rsa.h revision 60576
1156136Sdavidxu/* 2156136Sdavidxu * 3156136Sdavidxu * rsa.h 4156136Sdavidxu * 5156136Sdavidxu * Author: Tatu Ylonen <ylo@cs.hut.fi> 6156136Sdavidxu * 7156136Sdavidxu * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8156136Sdavidxu * All rights reserved 9156136Sdavidxu * 10156136Sdavidxu * Created: Fri Mar 3 22:01:06 1995 ylo 11156136Sdavidxu * 12156136Sdavidxu * RSA key generation, encryption and decryption. 13156136Sdavidxu * 14156136Sdavidxu * $FreeBSD: head/crypto/openssh/rsa.h 60576 2000-05-15 05:24:25Z kris $ 15156136Sdavidxu*/ 16156136Sdavidxu 17156136Sdavidxu/* RCSID("$Id: rsa.h,v 1.6 2000/04/14 10:30:32 markus Exp $"); */ 18156136Sdavidxu 19156136Sdavidxu#ifndef RSA_H 20156136Sdavidxu#define RSA_H 21156136Sdavidxu 22156136Sdavidxu#include <openssl/bn.h> 23156136Sdavidxu#include <openssl/rsa.h> 24156136Sdavidxu 25156136Sdavidxu/* Calls SSL RSA_generate_key, only copies to prv and pub */ 26156136Sdavidxuvoid rsa_generate_key(RSA * prv, RSA * pub, unsigned int bits); 27156136Sdavidxu 28156136Sdavidxu/* 29156136Sdavidxu * Indicates whether the rsa module is permitted to show messages on the 30156136Sdavidxu * terminal. 31156136Sdavidxu */ 32156136Sdavidxuvoid rsa_set_verbose __P((int verbose)); 33156136Sdavidxu 34156136Sdavidxuint rsa_alive __P((void)); 35156136Sdavidxu 36156383Sdavidxuvoid rsa_public_encrypt __P((BIGNUM * out, BIGNUM * in, RSA * prv)); 37156136Sdavidxuvoid rsa_private_decrypt __P((BIGNUM * out, BIGNUM * in, RSA * prv)); 38156136Sdavidxu 39156136Sdavidxu#endif /* RSA_H */ 40156267Sdavidxu