summaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-24 22:11:18 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-24 22:11:18 +0000
commit3452486ac65af88cf524cb93041a2a173335da27 (patch)
treeb3b7ec3eceac0e8060fe0da76c2e4bada31be148 /src/common/crypto.c
parentee8dce3084261447420f0bb7abeb6807583325ee (diff)
downloadtor-3452486ac65af88cf524cb93041a2a173335da27.tar.gz
tor-3452486ac65af88cf524cb93041a2a173335da27.zip
r14422@tombo: nickm | 2008-02-24 17:09:56 -0500
Whitespace fixes svn:r13700
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 8a1c3e9bc5..ea70aad4ab 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -643,7 +643,8 @@ crypto_pk_public_encrypt(crypto_pk_env_t *env, char *to,
tor_assert(to);
tor_assert(fromlen<INT_MAX);
- r = RSA_public_encrypt((int)fromlen, (unsigned char*)from, (unsigned char*)to,
+ r = RSA_public_encrypt((int)fromlen,
+ (unsigned char*)from, (unsigned char*)to,
env->key, crypto_get_rsa_padding(padding));
if (r<0) {
crypto_log_errors(LOG_WARN, "performing RSA encryption");
@@ -698,7 +699,8 @@ crypto_pk_public_checksig(crypto_pk_env_t *env, char *to,
tor_assert(from);
tor_assert(to);
tor_assert(fromlen < INT_MAX);
- r = RSA_public_decrypt((int)fromlen, (unsigned char*)from, (unsigned char*)to,
+ r = RSA_public_decrypt((int)fromlen,
+ (unsigned char*)from, (unsigned char*)to,
env->key, RSA_PKCS1_PADDING);
if (r<0) {
@@ -715,7 +717,7 @@ crypto_pk_public_checksig(crypto_pk_env_t *env, char *to,
*/
int
crypto_pk_public_checksig_digest(crypto_pk_env_t *env, const char *data,
- size_t datalen, const char *sig, size_t siglen)
+ size_t datalen, const char *sig, size_t siglen)
{
char digest[DIGEST_LEN];
char *buf;