X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/610cd5c69abf954f120a0f45c907617e597b2f75..3189621ba3dc315760bc611733f0ed86ea4537c0:/rsa.c diff --git a/rsa.c b/rsa.c index 5cc987df..1a509de3 100644 --- a/rsa.c +++ b/rsa.c @@ -1,37 +1,37 @@ /* - * + * * rsa.c - * + * * Author: Tatu Ylonen - * + * * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved - * + * * Created: Fri Mar 3 22:07:06 1995 ylo - * + * * Description of the RSA algorithm can be found e.g. from the following sources: - * + * * Bruce Schneier: Applied Cryptography. John Wiley & Sons, 1994. - * + * * Jennifer Seberry and Josed Pieprzyk: Cryptography: An Introduction to * Computer Security. Prentice-Hall, 1989. - * + * * Man Young Rhee: Cryptography and Secure Data Communications. McGraw-Hill, * 1994. - * + * * R. Rivest, A. Shamir, and L. M. Adleman: Cryptographic Communications * System and Method. US Patent 4,405,829, 1983. - * + * * Hans Riesel: Prime Numbers and Computer Methods for Factorization. * Birkhauser, 1994. - * + * * The RSA Frequently Asked Questions document by RSA Data Security, Inc., 1995. - * + * * RSA in 3 lines of perl by Adam Back , 1995, as included * below: - * + * * [gone - had to be deleted - what a pity] - * + * */ #include "includes.h" @@ -40,23 +40,10 @@ RCSID("$Id$"); #include "rsa.h" #include "ssh.h" #include "xmalloc.h" -#include "random.h" +#include "entropy.h" int rsa_verbose = 1; -/* - * Seed OpenSSL's random number generator - */ -void -seed_rng() -{ - char buf[64]; - - get_random_bytes(buf, sizeof(buf)); - RAND_seed(buf, sizeof(buf)); - memset(buf, 0, sizeof(buf)); -} - int rsa_alive() {