projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silccrypt
/
rsa.c
diff --git
a/lib/silccrypt/rsa.c
b/lib/silccrypt/rsa.c
index b09693a591976c56e8d5599833415cc1ea785bc0..96fbf1e3e62efb9959d509d99dcdcce92eed8860 100644
(file)
--- a/
lib/silccrypt/rsa.c
+++ b/
lib/silccrypt/rsa.c
@@
-5,7
+5,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 200
6
Pekka Riikonen
+ Copyright (C) 1997 - 200
7
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
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
@@
-72,11
+72,6
@@
Fixed double free in public key setting. Use a bit larger e as
starting point in key generation.
Fixed double free in public key setting. Use a bit larger e as
starting point in key generation.
-
- o Fri Dec 30 13:39:51 EET 2005 Pekka
-
- Support PKCS #1 format public and private keys. Support for new
- PKCS API.
*/
#include "silc.h"
*/
#include "silc.h"
@@
-86,8
+81,8
@@
to compute the modulus n has to be generated before calling this. They
are then sent as argument for the function. */
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;
{
RsaPublicKey *pubkey;
RsaPrivateKey *privkey;
@@
-172,8
+167,8
@@
SilcBool rsa_generate_keys(SilcUInt32 bits, SilcMPInt *p, SilcMPInt *q,
/* RSA public key operation */
/* 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);
{
/* dst = src ^ e mod n */
silc_mp_pow_mod(dst, src, &key->e, &key->n);
@@
-182,8
+177,8
@@
SilcBool rsa_public_operation(RsaPublicKey *key, SilcMPInt *src,
/* RSA private key operation */
/* 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;
{
SilcMPInt tmp;