1118611Snjl/* $OpenBSD: rsa.h,v 1.17 2014/06/24 01:13:21 djm Exp $ */ 2118611Snjl 3207344Sjkim/* 4118611Snjl * Author: Tatu Ylonen <ylo@cs.hut.fi> 5118611Snjl * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 6118611Snjl * All rights reserved 7217365Sjkim * RSA key generation, encryption and decryption. 8306536Sjkim * 9118611Snjl * As far as I am concerned, the code I have written for this software 10118611Snjl * can be used freely for any purpose. Any derived versions of this 11217365Sjkim * software must be clearly marked as such, and if the derived work is 12217365Sjkim * incompatible with the protocol description in the RFC file, it must be 13217365Sjkim * called by a name other than "ssh" or "Secure Shell". 14217365Sjkim */ 15217365Sjkim 16217365Sjkim#ifndef RSA_H 17217365Sjkim#define RSA_H 18217365Sjkim 19217365Sjkim#include <openssl/bn.h> 20217365Sjkim#include <openssl/rsa.h> 21217365Sjkim 22217365Sjkimint rsa_public_encrypt(BIGNUM *, BIGNUM *, RSA *); 23217365Sjkimint rsa_private_decrypt(BIGNUM *, BIGNUM *, RSA *); 24217365Sjkimint rsa_generate_additional_parameters(RSA *); 25118611Snjl 26217365Sjkim#endif /* RSA_H */ 27217365Sjkim