projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code auditing weekend results and fixes committing.
[silc.git]
/
lib
/
silccrypt
/
rsa.c
diff --git
a/lib/silccrypt/rsa.c
b/lib/silccrypt/rsa.c
index ec85853a2f3dc9d90d310bb141d27272013a240c..df7932985705698b18c9720af40ddfbca56f9c3e 100644
(file)
--- a/
lib/silccrypt/rsa.c
+++ b/
lib/silccrypt/rsa.c
@@
-327,14
+327,9
@@
SILC_PKCS_API_ENCRYPT(rsa)
silc_mp_add_ui(&mp_tmp, &mp_tmp, src[i]);
}
silc_mp_add_ui(&mp_tmp, &mp_tmp, src[i]);
}
- silc_mp_out_str(stderr, 16, &mp_tmp);
-
/* Encrypt */
rsa_en_de_crypt(&mp_dst, &mp_tmp, &key->e, &key->n);
/* Encrypt */
rsa_en_de_crypt(&mp_dst, &mp_tmp, &key->e, &key->n);
- fprintf(stderr, "\n");
- silc_mp_out_str(stderr, 16, &mp_dst);
-
tmplen = (1024 + 7) / 8;
/* Format the MP int back into data */
tmplen = (1024 + 7) / 8;
/* Format the MP int back into data */
@@
-366,14
+361,9
@@
SILC_PKCS_API_DECRYPT(rsa)
silc_mp_add_ui(&mp_tmp, &mp_tmp, src[i]);
}
silc_mp_add_ui(&mp_tmp, &mp_tmp, src[i]);
}
- silc_mp_out_str(stderr, 16, &mp_tmp);
-
/* Decrypt */
rsa_en_de_crypt(&mp_dst, &mp_tmp, &key->d, &key->n);
/* Decrypt */
rsa_en_de_crypt(&mp_dst, &mp_tmp, &key->d, &key->n);
- fprintf(stderr, "\n");
- silc_mp_out_str(stderr, 16, &mp_dst);
-
tmplen = (1024 + 7) / 8;
/* Format the MP int back into data */
tmplen = (1024 + 7) / 8;
/* Format the MP int back into data */