X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Frsa_internal.h;h=33ffd88a6cf19bee3dfb5cf1324423d38acfde10;hb=ae81323a6c29c176f6dd235aea5f6ce4b42263ea;hp=1f218a853fec72622116d98ae86b219d4f522982;hpb=98c6bbf7fb68ed46c830793dddcf6359f78845f8;p=silc.git diff --git a/lib/silccrypt/rsa_internal.h b/lib/silccrypt/rsa_internal.h index 1f218a85..33ffd88a 100644 --- a/lib/silccrypt/rsa_internal.h +++ b/lib/silccrypt/rsa_internal.h @@ -24,17 +24,17 @@ /* 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 */ + SilcMPInt p; /* prime p */ + SilcMPInt q; /* prime q */ + SilcMPInt n; /* modulus */ + SilcMPInt e; /* public exponent */ + SilcMPInt d; /* private exponent */ } RsaKey; void rsa_generate_keys(RsaKey *key, uint32 bits, - SilcInt *p, SilcInt *q); + 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