aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-01 13:35:34 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-01 13:35:34 +0100
commitdda40766b9b6df3644c945429e12f28cc9e7e0c8 (patch)
treee2c50ffc074ed37b7f5893ccea4dc69cbf68e08e /src/include
parent328047f8ee926055be593f180de40885823a7988 (diff)
downloadgnunet-dda40766b9b6df3644c945429e12f28cc9e7e0c8.tar.gz
gnunet-dda40766b9b6df3644c945429e12f28cc9e7e0c8.zip
-style fixes
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_crypto_lib.h17
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 */
1263int 1263enum GNUNET_GenericReturnValue
1264GNUNET_CRYPTO_eddsa_private_key_from_string ( 1264GNUNET_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 */
1321int 1321enum GNUNET_GenericReturnValue
1322GNUNET_CRYPTO_eddsa_key_from_file (const char *filename, 1322GNUNET_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 */
1797int 1797enum GNUNET_GenericReturnValue
1798GNUNET_CRYPTO_eddsa_verify_ ( 1798GNUNET_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 */
1850int 1850enum GNUNET_GenericReturnValue
1851GNUNET_CRYPTO_ecdsa_verify_ ( 1851GNUNET_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 */
2259struct GNUNET_CRYPTO_RsaPublicKey * 2259struct GNUNET_CRYPTO_RsaPublicKey *
2260GNUNET_CRYPTO_rsa_public_key_decode (const char *buf, size_t len); 2260GNUNET_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 */
2291int 2292int
2292GNUNET_CRYPTO_rsa_private_key_cmp (const struct GNUNET_CRYPTO_RsaPrivateKey *p1, 2293GNUNET_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/**