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
/* RSA Public Key */
typedef struct {
- int bits; /* bits in key */
+ SilcHash hash; /* Default hash */
SilcMPInt n; /* modulus */
SilcMPInt e; /* public exponent */
+ int bits; /* bits in key */
} RsaPublicKey;
/* RSA Private Key */
typedef struct {
- int bits; /* bits in key */
+ SilcHash hash; /* Default hash */
SilcMPInt n; /* modulus */
SilcMPInt e; /* public exponent */
SilcMPInt d; /* private exponent */
SilcMPInt dP; /* CRT, d mod p - 1 */
SilcMPInt dQ; /* CRT, d mod q - 1 */
SilcMPInt qP; /* CRT, q ^ -1 mod p (aka u, aka qInv) */
+ int bits; /* bits in key */
} RsaPrivateKey;
SilcBool silc_rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q,