*/
-#include "silcincludes.h"
+#include "silc.h"
#include "rsa_internal.h"
#include "rsa.h"
{
SilcUInt32 prime_bits = keylen / 2;
SilcMPInt p, q;
- bool found = FALSE;
+ SilcBool found = FALSE;
if (keylen < 768 || keylen > 16384)
return FALSE;
to compute the modulus n has to be generated before calling this. They
are then sent as argument for the function. */
-bool rsa_generate_keys(RsaKey *key, SilcUInt32 bits,
+SilcBool rsa_generate_keys(RsaKey *key, SilcUInt32 bits,
SilcMPInt *p, SilcMPInt *q)
{
SilcMPInt phi, hlp;
/* Clears whole key structure. */
-bool rsa_clear_keys(RsaKey *key)
+SilcBool rsa_clear_keys(RsaKey *key)
{
key->bits = 0;
if (key->pub_set) {
/* RSA public key operation */
-bool rsa_public_operation(RsaKey *key, SilcMPInt *src, SilcMPInt *dst)
+SilcBool rsa_public_operation(RsaKey *key, SilcMPInt *src, SilcMPInt *dst)
{
/* dst = src ^ e mod n */
silc_mp_pow_mod(dst, src, &key->e, &key->n);
/* RSA private key operation */
-bool rsa_private_operation(RsaKey *key, SilcMPInt *src, SilcMPInt *dst)
+SilcBool rsa_private_operation(RsaKey *key, SilcMPInt *src, SilcMPInt *dst)
{
if (!key->crt) {
/* dst = src ^ d mod n */