diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-01 13:35:34 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-01 13:35:34 +0100 |
commit | dda40766b9b6df3644c945429e12f28cc9e7e0c8 (patch) | |
tree | e2c50ffc074ed37b7f5893ccea4dc69cbf68e08e /src/include | |
parent | 328047f8ee926055be593f180de40885823a7988 (diff) | |
download | gnunet-dda40766b9b6df3644c945429e12f28cc9e7e0c8.tar.gz gnunet-dda40766b9b6df3644c945429e12f28cc9e7e0c8.zip |
-style fixes
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index e754756e5..0eb2ea8cd 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -1260,7 +1260,7 @@ GNUNET_CRYPTO_ecdsa_public_key_from_string ( | |||
1260 | * @param priv where to store the private key | 1260 | * @param priv where to store the private key |
1261 | * @return #GNUNET_OK on success | 1261 | * @return #GNUNET_OK on success |
1262 | */ | 1262 | */ |
1263 | int | 1263 | enum GNUNET_GenericReturnValue |
1264 | GNUNET_CRYPTO_eddsa_private_key_from_string ( | 1264 | GNUNET_CRYPTO_eddsa_private_key_from_string ( |
1265 | const char *enc, | 1265 | const char *enc, |
1266 | size_t enclen, | 1266 | size_t enclen, |
@@ -1318,7 +1318,7 @@ GNUNET_CRYPTO_ecdsa_key_from_file (const char *filename, | |||
1318 | * @return #GNUNET_OK on success, #GNUNET_NO if @a do_create was set but | 1318 | * @return #GNUNET_OK on success, #GNUNET_NO if @a do_create was set but |
1319 | * we found an existing file, #GNUNET_SYSERR on failure | 1319 | * we found an existing file, #GNUNET_SYSERR on failure |
1320 | */ | 1320 | */ |
1321 | int | 1321 | enum GNUNET_GenericReturnValue |
1322 | GNUNET_CRYPTO_eddsa_key_from_file (const char *filename, | 1322 | GNUNET_CRYPTO_eddsa_key_from_file (const char *filename, |
1323 | int do_create, | 1323 | int do_create, |
1324 | struct GNUNET_CRYPTO_EddsaPrivateKey *pkey); | 1324 | struct GNUNET_CRYPTO_EddsaPrivateKey *pkey); |
@@ -1794,7 +1794,7 @@ GNUNET_CRYPTO_ecdsa_sign_ ( | |||
1794 | * @param pub public key of the signer | 1794 | * @param pub public key of the signer |
1795 | * @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid | 1795 | * @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid |
1796 | */ | 1796 | */ |
1797 | int | 1797 | enum GNUNET_GenericReturnValue |
1798 | GNUNET_CRYPTO_eddsa_verify_ ( | 1798 | GNUNET_CRYPTO_eddsa_verify_ ( |
1799 | uint32_t purpose, | 1799 | uint32_t purpose, |
1800 | const struct GNUNET_CRYPTO_EccSignaturePurpose *validate, | 1800 | const struct GNUNET_CRYPTO_EccSignaturePurpose *validate, |
@@ -1847,7 +1847,7 @@ GNUNET_CRYPTO_eddsa_verify_ ( | |||
1847 | * @param pub public key of the signer | 1847 | * @param pub public key of the signer |
1848 | * @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid | 1848 | * @returns #GNUNET_OK if ok, #GNUNET_SYSERR if invalid |
1849 | */ | 1849 | */ |
1850 | int | 1850 | enum GNUNET_GenericReturnValue |
1851 | GNUNET_CRYPTO_ecdsa_verify_ ( | 1851 | GNUNET_CRYPTO_ecdsa_verify_ ( |
1852 | uint32_t purpose, | 1852 | uint32_t purpose, |
1853 | const struct GNUNET_CRYPTO_EccSignaturePurpose *validate, | 1853 | const struct GNUNET_CRYPTO_EccSignaturePurpose *validate, |
@@ -2257,7 +2257,8 @@ GNUNET_CRYPTO_rsa_public_key_encode ( | |||
2257 | * @return NULL on error | 2257 | * @return NULL on error |
2258 | */ | 2258 | */ |
2259 | struct GNUNET_CRYPTO_RsaPublicKey * | 2259 | struct GNUNET_CRYPTO_RsaPublicKey * |
2260 | GNUNET_CRYPTO_rsa_public_key_decode (const char *buf, size_t len); | 2260 | GNUNET_CRYPTO_rsa_public_key_decode (const char *buf, |
2261 | size_t len); | ||
2261 | 2262 | ||
2262 | 2263 | ||
2263 | /** | 2264 | /** |
@@ -2289,9 +2290,9 @@ GNUNET_CRYPTO_rsa_signature_cmp (const struct GNUNET_CRYPTO_RsaSignature *s1, | |||
2289 | * @return 0 if the two are equal | 2290 | * @return 0 if the two are equal |
2290 | */ | 2291 | */ |
2291 | int | 2292 | int |
2292 | GNUNET_CRYPTO_rsa_private_key_cmp (const struct GNUNET_CRYPTO_RsaPrivateKey *p1, | 2293 | GNUNET_CRYPTO_rsa_private_key_cmp ( |
2293 | const struct | 2294 | const struct GNUNET_CRYPTO_RsaPrivateKey *p1, |
2294 | GNUNET_CRYPTO_RsaPrivateKey *p2); | 2295 | const struct GNUNET_CRYPTO_RsaPrivateKey *p2); |
2295 | 2296 | ||
2296 | 2297 | ||
2297 | /** | 2298 | /** |