diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-08 08:10:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-08 08:10:18 +0000 |
commit | c2017c2ba13736ee1fe4dc9d811d49bee1641ca3 (patch) | |
tree | 93ae178521584311eeecdf1e5448a27925bfc681 /src/util/crypto_rsa.c | |
parent | 3da5c316b7b992fcc33328043151cf8cb25bf640 (diff) | |
download | gnunet-c2017c2ba13736ee1fe4dc9d811d49bee1641ca3.tar.gz gnunet-c2017c2ba13736ee1fe4dc9d811d49bee1641ca3.zip |
fixes
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r-- | src/util/crypto_rsa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index edf1b2bdf..bb14f36c9 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -751,7 +751,7 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename) | |||
751 | */ | 751 | */ |
752 | int | 752 | int |
753 | GNUNET_CRYPTO_rsa_encrypt (const void *block, | 753 | GNUNET_CRYPTO_rsa_encrypt (const void *block, |
754 | uint16_t size, | 754 | size_t size, |
755 | const struct | 755 | const struct |
756 | GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *publicKey, | 756 | GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *publicKey, |
757 | struct GNUNET_CRYPTO_RsaEncryptedData *target) | 757 | struct GNUNET_CRYPTO_RsaEncryptedData *target) |
@@ -799,10 +799,11 @@ GNUNET_CRYPTO_rsa_encrypt (const void *block, | |||
799 | * the decrypted block is bigger, an error is returned | 799 | * the decrypted block is bigger, an error is returned |
800 | * @returns the size of the decrypted block, -1 on error | 800 | * @returns the size of the decrypted block, -1 on error |
801 | */ | 801 | */ |
802 | int | 802 | ssize_t |
803 | GNUNET_CRYPTO_rsa_decrypt (const struct GNUNET_CRYPTO_RsaPrivateKey *hostkey, | 803 | GNUNET_CRYPTO_rsa_decrypt (const struct GNUNET_CRYPTO_RsaPrivateKey *hostkey, |
804 | const struct GNUNET_CRYPTO_RsaEncryptedData *block, | 804 | const struct GNUNET_CRYPTO_RsaEncryptedData *block, |
805 | void *result, uint16_t max) | 805 | void *result, |
806 | size_t max) | ||
806 | { | 807 | { |
807 | gcry_sexp_t resultsexp; | 808 | gcry_sexp_t resultsexp; |
808 | gcry_sexp_t data; | 809 | gcry_sexp_t data; |