projects
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for default hash functions in all PKCS algorithm schemes.
[crypto.git]
/
lib
/
silccrypt
/
rsa.c
diff --git
a/lib/silccrypt/rsa.c
b/lib/silccrypt/rsa.c
index 2b5151a8fc8caa1a65cb3da4f97a69374bd21906..cc5e09885906813975be848d2d2e8a6b819d2b19 100644
(file)
--- a/
lib/silccrypt/rsa.c
+++ b/
lib/silccrypt/rsa.c
@@
-46,7
+46,6
@@
everything else too about cryptography.
*/
everything else too about cryptography.
*/
-/* $Id$ */
/*
ChangeLog
/*
ChangeLog
@@
-98,6
+97,10
@@
SilcBool silc_rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q,
if (!privkey)
return FALSE;
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);
/* Initialize variables */
silc_mp_init(&privkey->n);
silc_mp_init(&privkey->e);