projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Integer type name change.
[silc.git]
/
lib
/
silccrypt
/
rsa.c
diff --git
a/lib/silccrypt/rsa.c
b/lib/silccrypt/rsa.c
index ec47e6ddd3e0fdbe7295410fa20ed94d056f40eb..b0b7bf50cde27c2fe68c108360dfa511df3e0503 100644
(file)
--- a/
lib/silccrypt/rsa.c
+++ b/
lib/silccrypt/rsa.c
@@
-75,7
+75,7
@@
SILC_PKCS_API_INIT(rsa)
{
SILC_PKCS_API_INIT(rsa)
{
-
ui
nt32 prime_bits = keylen / 2;
+
SilcUI
nt32 prime_bits = keylen / 2;
SilcMPInt p, q;
bool found = FALSE;
SilcMPInt p, q;
bool found = FALSE;
@@
-132,7
+132,7
@@
SILC_PKCS_API_GET_PUBLIC_KEY(rsa)
{
RsaKey *key = (RsaKey *)context;
unsigned char *e, *n, *ret;
{
RsaKey *key = (RsaKey *)context;
unsigned char *e, *n, *ret;
-
ui
nt32 e_len, n_len;
+
SilcUI
nt32 e_len, n_len;
unsigned char tmp[4];
e = silc_mp_mp2bin(&key->e, 0, &e_len);
unsigned char tmp[4];
e = silc_mp_mp2bin(&key->e, 0, &e_len);
@@
-171,7
+171,7
@@
SILC_PKCS_API_GET_PRIVATE_KEY(rsa)
{
RsaKey *key = (RsaKey *)context;
unsigned char *e, *n, *d, *ret;
{
RsaKey *key = (RsaKey *)context;
unsigned char *e, *n, *d, *ret;
-
ui
nt32 e_len, n_len, d_len;
+
SilcUI
nt32 e_len, n_len, d_len;
unsigned char tmp[4];
e = silc_mp_mp2bin(&key->e, 0, &e_len);
unsigned char tmp[4];
e = silc_mp_mp2bin(&key->e, 0, &e_len);
@@
-218,7
+218,7
@@
SILC_PKCS_API_SET_PUBLIC_KEY(rsa)
{
RsaKey *key = (RsaKey *)context;
unsigned char tmp[4];
{
RsaKey *key = (RsaKey *)context;
unsigned char tmp[4];
-
ui
nt32 e_len, n_len;
+
SilcUI
nt32 e_len, n_len;
if (key->pub_set) {
silc_mp_uninit(&key->e);
if (key->pub_set) {
silc_mp_uninit(&key->e);
@@
-263,7
+263,7
@@
SILC_PKCS_API_SET_PRIVATE_KEY(rsa)
{
RsaKey *key = (RsaKey *)context;
unsigned char tmp[4];
{
RsaKey *key = (RsaKey *)context;
unsigned char tmp[4];
-
ui
nt32 e_len, n_len, d_len;
+
SilcUI
nt32 e_len, n_len, d_len;
if (key->prv_set) {
silc_mp_uninit(&key->d);
if (key->prv_set) {
silc_mp_uninit(&key->d);
@@
-479,7
+479,7
@@
SILC_PKCS_API_VERIFY(rsa)
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. */
-void rsa_generate_keys(RsaKey *key,
ui
nt32 bits,
+void rsa_generate_keys(RsaKey *key,
SilcUI
nt32 bits,
SilcMPInt *p, SilcMPInt *q)
{
SilcMPInt phi, hlp;
SilcMPInt *p, SilcMPInt *q)
{
SilcMPInt phi, hlp;