Integer type name change.
[silc.git] / lib / silccrypt / rsa_internal.h
index 1f218a853fec72622116d98ae86b219d4f522982..22904bbfd1e70efa475cd59eae187c0efc0c980c 100644 (file)
 /* RSA Keys, includes both Private and Public key */
 typedef struct {
   int bits;                    /* bits in key */
-  SilcInt p;                   /* prime p */
-  SilcInt q;                   /* prime q */
-  SilcInt n;                   /* modulus */
-  SilcInt e;                   /* public exponent */
-  SilcInt d;                   /* private exponent */
+  char pub_set;                        /* TRUE is n and e is set */
+  char prv_set;                        /* TRUE if d is set */
+  SilcMPInt n;                 /* modulus */
+  SilcMPInt e;                 /* public exponent */
+  SilcMPInt d;                 /* private exponent */
 } RsaKey;
 
-void rsa_generate_keys(RsaKey *key, uint32 bits, 
-                      SilcInt *p, SilcInt *q);
+void rsa_generate_keys(RsaKey *key, SilcUInt32 bits, 
+                      SilcMPInt *p, SilcMPInt *q);
 void rsa_clear_keys(RsaKey *key);
-void rsa_en_de_crypt(SilcInt *cm, SilcInt *mc, 
-                    SilcInt *expo, SilcInt *modu);
+void rsa_en_de_crypt(SilcMPInt *cm, SilcMPInt *mc, 
+                    SilcMPInt *expo, SilcMPInt *modu);
 
 #endif