From 424e25bb1f37b9a40203729cfb80b70425ba52e4 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 21 Jul 2007 12:59:28 +0000 Subject: [PATCH] Packed structure. --- lib/silccrypt/rsa.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.24.0