diff options
author | t3sserakt <t3ss@posteo.de> | 2023-10-03 17:17:16 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-10-03 17:17:16 +0200 |
commit | 6f68c34aa3deed8e1b5df30d3de1342386523920 (patch) | |
tree | 940221996f82d1edd77530ac2b1abbb61ccf08ac /src/gnsrecord/gnsrecord_crypto.c | |
parent | ed76bf2ece671e9543477a9bb9130dfbe5fa5a4d (diff) | |
parent | 109f3188ba65b788990427d6d26ba8874a9b84f5 (diff) | |
download | gnunet-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.c | 7 |
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 | |||
198 | enum GNUNET_GenericReturnValue | 199 | enum GNUNET_GenericReturnValue |
199 | block_sign_ecdsa (const struct | 200 | block_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 | |||
403 | static ssize_t | 405 | static ssize_t |
404 | block_get_size_eddsa (const struct GNUNET_GNSRECORD_Data *rd, | 406 | block_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 | |||
508 | ssize_t | 511 | ssize_t |
509 | GNUNET_GNSRECORD_block_calculate_size (const struct | 512 | GNUNET_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 | |||
534 | enum GNUNET_GenericReturnValue | 538 | enum GNUNET_GenericReturnValue |
535 | GNUNET_GNSRECORD_block_create (const struct GNUNET_IDENTITY_PrivateKey *key, | 539 | GNUNET_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 | |||
659 | enum GNUNET_GenericReturnValue | 662 | enum GNUNET_GenericReturnValue |
660 | GNUNET_GNSRECORD_block_create_unsigned (const struct | 663 | GNUNET_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 | |||
673 | enum GNUNET_GenericReturnValue | 675 | enum GNUNET_GenericReturnValue |
674 | GNUNET_GNSRECORD_block_create2 (const struct GNUNET_IDENTITY_PrivateKey *pkey, | 676 | GNUNET_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. |