From: Pekka Riikonen Date: Sat, 21 Jul 2007 12:59:28 +0000 (+0000) Subject: Packed structure. X-Git-Tag: 1.2.beta1~151 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=424e25bb1f37b9a40203729cfb80b70425ba52e4;p=runtime.git Packed structure. --- diff --git a/lib/silccrypt/rsa.h b/lib/silccrypt/rsa.h index 81247b05..6a9506a4 100644 --- a/lib/silccrypt/rsa.h +++ b/lib/silccrypt/rsa.h @@ -22,14 +22,13 @@ /* RSA Public Key */ typedef struct { - int bits; /* bits in key */ SilcMPInt n; /* modulus */ SilcMPInt e; /* public exponent */ + int bits; /* bits in key */ } RsaPublicKey; /* RSA Private Key */ typedef struct { - int bits; /* bits in key */ SilcMPInt n; /* modulus */ SilcMPInt e; /* public exponent */ SilcMPInt d; /* private exponent */ @@ -38,6 +37,7 @@ typedef struct { 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,