diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-06 15:38:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-06 15:38:45 +0000 |
commit | 7226997d96e7c2724d912553d1c7e613ee4cdd04 (patch) | |
tree | ff2090aef2c57e655dd75fccf3acfb3eea3d2e5e /src/util/crypto_rsa.c | |
parent | 027f0af7a74fa435bc4b30692f3d05c8ede50cff (diff) | |
download | gnunet-7226997d96e7c2724d912553d1c7e613ee4cdd04.tar.gz gnunet-7226997d96e7c2724d912553d1c7e613ee4cdd04.zip |
-indent
Diffstat (limited to 'src/util/crypto_rsa.c')
-rw-r--r-- | src/util/crypto_rsa.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index f5b6466fc..3b36cc341 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c | |||
@@ -189,7 +189,7 @@ GNUNET_CRYPTO_rsa_private_key_free (struct GNUNET_CRYPTO_rsa_PrivateKey *key) | |||
189 | */ | 189 | */ |
190 | size_t | 190 | size_t |
191 | GNUNET_CRYPTO_rsa_private_key_encode (const struct GNUNET_CRYPTO_rsa_PrivateKey *key, | 191 | GNUNET_CRYPTO_rsa_private_key_encode (const struct GNUNET_CRYPTO_rsa_PrivateKey *key, |
192 | char **buffer) | 192 | char **buffer) |
193 | { | 193 | { |
194 | size_t n; | 194 | size_t n; |
195 | char *b; | 195 | char *b; |
@@ -219,7 +219,7 @@ GNUNET_CRYPTO_rsa_private_key_encode (const struct GNUNET_CRYPTO_rsa_PrivateKey | |||
219 | */ | 219 | */ |
220 | struct GNUNET_CRYPTO_rsa_PrivateKey * | 220 | struct GNUNET_CRYPTO_rsa_PrivateKey * |
221 | GNUNET_CRYPTO_rsa_private_key_decode (const char *buf, | 221 | GNUNET_CRYPTO_rsa_private_key_decode (const char *buf, |
222 | size_t len) | 222 | size_t len) |
223 | { | 223 | { |
224 | struct GNUNET_CRYPTO_rsa_PrivateKey *key; | 224 | struct GNUNET_CRYPTO_rsa_PrivateKey *key; |
225 | key = GNUNET_new (struct GNUNET_CRYPTO_rsa_PrivateKey); | 225 | key = GNUNET_new (struct GNUNET_CRYPTO_rsa_PrivateKey); |
@@ -502,7 +502,7 @@ GNUNET_CRYPTO_rsa_public_key_cmp (struct GNUNET_CRYPTO_rsa_PublicKey *p1, | |||
502 | */ | 502 | */ |
503 | int | 503 | int |
504 | GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_rsa_PrivateKey *p1, | 504 | GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_rsa_PrivateKey *p1, |
505 | struct GNUNET_CRYPTO_rsa_PrivateKey *p2) | 505 | struct GNUNET_CRYPTO_rsa_PrivateKey *p2) |
506 | { | 506 | { |
507 | char *b1; | 507 | char *b1; |
508 | char *b2; | 508 | char *b2; |
@@ -640,9 +640,9 @@ GNUNET_CRYPTO_rsa_blinding_key_decode (const char *buf, | |||
640 | */ | 640 | */ |
641 | size_t | 641 | size_t |
642 | GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, | 642 | GNUNET_CRYPTO_rsa_blind (const struct GNUNET_HashCode *hash, |
643 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, | 643 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, |
644 | struct GNUNET_CRYPTO_rsa_PublicKey *pkey, | 644 | struct GNUNET_CRYPTO_rsa_PublicKey *pkey, |
645 | char **buffer) | 645 | char **buffer) |
646 | { | 646 | { |
647 | gcry_mpi_t data; | 647 | gcry_mpi_t data; |
648 | gcry_mpi_t ne[2]; | 648 | gcry_mpi_t ne[2]; |
@@ -825,7 +825,7 @@ GNUNET_CRYPTO_rsa_signature_encode (const struct GNUNET_CRYPTO_rsa_Signature *si | |||
825 | */ | 825 | */ |
826 | struct GNUNET_CRYPTO_rsa_Signature * | 826 | struct GNUNET_CRYPTO_rsa_Signature * |
827 | GNUNET_CRYPTO_rsa_signature_decode (const char *buf, | 827 | GNUNET_CRYPTO_rsa_signature_decode (const char *buf, |
828 | size_t len) | 828 | size_t len) |
829 | { | 829 | { |
830 | struct GNUNET_CRYPTO_rsa_Signature *sig; | 830 | struct GNUNET_CRYPTO_rsa_Signature *sig; |
831 | int ret; | 831 | int ret; |
@@ -896,8 +896,8 @@ GNUNET_CRYPTO_rsa_public_key_dup (const struct GNUNET_CRYPTO_rsa_PublicKey *key) | |||
896 | */ | 896 | */ |
897 | struct GNUNET_CRYPTO_rsa_Signature * | 897 | struct GNUNET_CRYPTO_rsa_Signature * |
898 | GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_rsa_Signature *sig, | 898 | GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_rsa_Signature *sig, |
899 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, | 899 | struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, |
900 | struct GNUNET_CRYPTO_rsa_PublicKey *pkey) | 900 | struct GNUNET_CRYPTO_rsa_PublicKey *pkey) |
901 | { | 901 | { |
902 | gcry_mpi_t n; | 902 | gcry_mpi_t n; |
903 | gcry_mpi_t s; | 903 | gcry_mpi_t s; |
@@ -963,8 +963,8 @@ GNUNET_CRYPTO_rsa_unblind (struct GNUNET_CRYPTO_rsa_Signature *sig, | |||
963 | */ | 963 | */ |
964 | int | 964 | int |
965 | GNUNET_CRYPTO_rsa_verify (const struct GNUNET_HashCode *hash, | 965 | GNUNET_CRYPTO_rsa_verify (const struct GNUNET_HashCode *hash, |
966 | const struct GNUNET_CRYPTO_rsa_Signature *sig, | 966 | const struct GNUNET_CRYPTO_rsa_Signature *sig, |
967 | const struct GNUNET_CRYPTO_rsa_PublicKey *public_key) | 967 | const struct GNUNET_CRYPTO_rsa_PublicKey *public_key) |
968 | { | 968 | { |
969 | gcry_sexp_t data; | 969 | gcry_sexp_t data; |
970 | int rc; | 970 | int rc; |