Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2007 Pekka Riikonen
+ Copyright (C) 1997 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
everything else too about cryptography.
*/
-/* $Id$ */
/*
ChangeLog
starting point in key generation.
*/
-#include "silc.h"
+#include "silccrypto.h"
#include "rsa.h"
/* Generates RSA public and private keys. Primes p and q that are used
if (!privkey)
return FALSE;
+ /* Default hash shall be sha1 */
+ silc_hash_alloc("sha1", &pubkey->hash);
+ silc_hash_alloc("sha1", &privkey->hash);
+
/* Initialize variables */
silc_mp_init(&privkey->n);
silc_mp_init(&privkey->e);