X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Frsa.c;h=96fbf1e3e62efb9959d509d99dcdcce92eed8860;hb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;hp=e58bca153c741c8c02b0d9d01b4f37de32c878c6;hpb=f2ebe2380fa2dc8014f4409ce509c4de13661d8d;p=silc.git diff --git a/lib/silccrypt/rsa.c b/lib/silccrypt/rsa.c index e58bca15..96fbf1e3 100644 --- a/lib/silccrypt/rsa.c +++ b/lib/silccrypt/rsa.c @@ -5,7 +5,7 @@ Author: Pekka Riikonen - Copyright (C) 1997 - 2006 Pekka Riikonen + Copyright (C) 1997 - 2007 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -81,8 +81,8 @@ to compute the modulus n has to be generated before calling this. They are then sent as argument for the function. */ -SilcBool rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q, - void **ret_public_key, void **ret_private_key) +SilcBool silc_rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q, + void **ret_public_key, void **ret_private_key) { RsaPublicKey *pubkey; RsaPrivateKey *privkey; @@ -167,8 +167,8 @@ SilcBool rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q, /* RSA public key operation */ -SilcBool rsa_public_operation(RsaPublicKey *key, SilcMPInt *src, - SilcMPInt *dst) +SilcBool silc_rsa_public_operation(RsaPublicKey *key, SilcMPInt *src, + SilcMPInt *dst) { /* dst = src ^ e mod n */ silc_mp_pow_mod(dst, src, &key->e, &key->n); @@ -177,8 +177,8 @@ SilcBool rsa_public_operation(RsaPublicKey *key, SilcMPInt *src, /* RSA private key operation */ -SilcBool rsa_private_operation(RsaPrivateKey *key, SilcMPInt *src, - SilcMPInt *dst) +SilcBool silc_rsa_private_operation(RsaPrivateKey *key, SilcMPInt *src, + SilcMPInt *dst) { SilcMPInt tmp;