aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord/gnsrecord_crypto.c
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2023-10-03 17:17:16 +0200
committert3sserakt <t3ss@posteo.de>2023-10-03 17:17:16 +0200
commit6f68c34aa3deed8e1b5df30d3de1342386523920 (patch)
tree940221996f82d1edd77530ac2b1abbb61ccf08ac /src/gnsrecord/gnsrecord_crypto.c
parented76bf2ece671e9543477a9bb9130dfbe5fa5a4d (diff)
parent109f3188ba65b788990427d6d26ba8874a9b84f5 (diff)
downloadgnunet-6f68c34aa3deed8e1b5df30d3de1342386523920.tar.gz
gnunet-6f68c34aa3deed8e1b5df30d3de1342386523920.zip
Merge branch 'master' into l20integration
Diffstat (limited to 'src/gnsrecord/gnsrecord_crypto.c')
-rw-r--r--src/gnsrecord/gnsrecord_crypto.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gnsrecord/gnsrecord_crypto.c b/src/gnsrecord/gnsrecord_crypto.c
index e6036b72b..384336c97 100644
--- a/src/gnsrecord/gnsrecord_crypto.c
+++ b/src/gnsrecord/gnsrecord_crypto.c
@@ -195,6 +195,7 @@ block_get_size_ecdsa (const struct GNUNET_GNSRECORD_Data *rd,
195 return len; 195 return len;
196} 196}
197 197
198
198enum GNUNET_GenericReturnValue 199enum GNUNET_GenericReturnValue
199block_sign_ecdsa (const struct 200block_sign_ecdsa (const struct
200 GNUNET_CRYPTO_EcdsaPrivateKey *key, 201 GNUNET_CRYPTO_EcdsaPrivateKey *key,
@@ -400,6 +401,7 @@ block_create_ecdsa (const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
400 return GNUNET_OK; 401 return GNUNET_OK;
401} 402}
402 403
404
403static ssize_t 405static ssize_t
404block_get_size_eddsa (const struct GNUNET_GNSRECORD_Data *rd, 406block_get_size_eddsa (const struct GNUNET_GNSRECORD_Data *rd,
405 unsigned int rd_count) 407 unsigned int rd_count)
@@ -505,6 +507,7 @@ block_create_eddsa (const struct GNUNET_CRYPTO_EddsaPrivateKey *key,
505 return GNUNET_OK; 507 return GNUNET_OK;
506} 508}
507 509
510
508ssize_t 511ssize_t
509GNUNET_GNSRECORD_block_calculate_size (const struct 512GNUNET_GNSRECORD_block_calculate_size (const struct
510 GNUNET_IDENTITY_PrivateKey *key, 513 GNUNET_IDENTITY_PrivateKey *key,
@@ -531,6 +534,7 @@ GNUNET_GNSRECORD_block_calculate_size (const struct
531 534
532} 535}
533 536
537
534enum GNUNET_GenericReturnValue 538enum GNUNET_GenericReturnValue
535GNUNET_GNSRECORD_block_create (const struct GNUNET_IDENTITY_PrivateKey *key, 539GNUNET_GNSRECORD_block_create (const struct GNUNET_IDENTITY_PrivateKey *key,
536 struct GNUNET_TIME_Absolute expire, 540 struct GNUNET_TIME_Absolute expire,
@@ -655,7 +659,6 @@ block_create2 (const struct GNUNET_IDENTITY_PrivateKey *pkey,
655} 659}
656 660
657 661
658
659enum GNUNET_GenericReturnValue 662enum GNUNET_GenericReturnValue
660GNUNET_GNSRECORD_block_create_unsigned (const struct 663GNUNET_GNSRECORD_block_create_unsigned (const struct
661 GNUNET_IDENTITY_PrivateKey *pkey, 664 GNUNET_IDENTITY_PrivateKey *pkey,
@@ -669,7 +672,6 @@ GNUNET_GNSRECORD_block_create_unsigned (const struct
669} 672}
670 673
671 674
672
673enum GNUNET_GenericReturnValue 675enum GNUNET_GenericReturnValue
674GNUNET_GNSRECORD_block_create2 (const struct GNUNET_IDENTITY_PrivateKey *pkey, 676GNUNET_GNSRECORD_block_create2 (const struct GNUNET_IDENTITY_PrivateKey *pkey,
675 struct GNUNET_TIME_Absolute expire, 677 struct GNUNET_TIME_Absolute expire,
@@ -681,6 +683,7 @@ GNUNET_GNSRECORD_block_create2 (const struct GNUNET_IDENTITY_PrivateKey *pkey,
681 return block_create2 (pkey, expire, label, rd, rd_count, result, GNUNET_YES); 683 return block_create2 (pkey, expire, label, rd, rd_count, result, GNUNET_YES);
682} 684}
683 685
686
684/** 687/**
685 * Check if a signature is valid. This API is used by the GNS Block 688 * Check if a signature is valid. This API is used by the GNS Block
686 * to validate signatures received from the network. 689 * to validate signatures received from the network.