X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Frsa.h;h=6a9506a4aadf5896080f723d632d9a18808c4b29;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=81247b05cbe93563e5df86e505e4805a922ab4e7;hpb=8fd8212bcd16f2b53fbedff2a9b9a4e8c15b9695;p=silc.git 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,