diff options
Diffstat (limited to 'src/util/crypto_ecc_setup.c')
-rw-r--r-- | src/util/crypto_ecc_setup.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/util/crypto_ecc_setup.c b/src/util/crypto_ecc_setup.c index dd49049bc..2ee9ed931 100644 --- a/src/util/crypto_ecc_setup.c +++ b/src/util/crypto_ecc_setup.c | |||
@@ -290,8 +290,10 @@ GNUNET_CRYPTO_get_peer_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
290 | 290 | ||
291 | 291 | ||
292 | enum GNUNET_GenericReturnValue | 292 | enum GNUNET_GenericReturnValue |
293 | GNUNET_CRYPTO_sign_by_peer_identity (const struct GNUNET_CONFIGURATION_Handle *cfg, | 293 | GNUNET_CRYPTO_sign_by_peer_identity (const struct |
294 | const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, | 294 | GNUNET_CONFIGURATION_Handle *cfg, |
295 | const struct | ||
296 | GNUNET_CRYPTO_EccSignaturePurpose *purpose, | ||
295 | struct GNUNET_CRYPTO_EddsaSignature *sig) | 297 | struct GNUNET_CRYPTO_EddsaSignature *sig) |
296 | { | 298 | { |
297 | struct GNUNET_CRYPTO_EddsaPrivateKey *priv; | 299 | struct GNUNET_CRYPTO_EddsaPrivateKey *priv; |
@@ -309,11 +311,14 @@ GNUNET_CRYPTO_sign_by_peer_identity (const struct GNUNET_CONFIGURATION_Handle *c | |||
309 | 311 | ||
310 | enum GNUNET_GenericReturnValue | 312 | enum GNUNET_GenericReturnValue |
311 | GNUNET_CRYPTO_verify_peer_identity (uint32_t purpose, | 313 | GNUNET_CRYPTO_verify_peer_identity (uint32_t purpose, |
312 | const struct GNUNET_CRYPTO_EccSignaturePurpose * validate, | 314 | const struct |
313 | const struct GNUNET_CRYPTO_EddsaSignature *sig, | 315 | GNUNET_CRYPTO_EccSignaturePurpose *validate, |
316 | const struct | ||
317 | GNUNET_CRYPTO_EddsaSignature *sig, | ||
314 | const struct GNUNET_PeerIdentity *identity) | 318 | const struct GNUNET_PeerIdentity *identity) |
315 | { | 319 | { |
316 | return GNUNET_CRYPTO_eddsa_verify_ (purpose, validate, sig, &identity->public_key); | 320 | return GNUNET_CRYPTO_eddsa_verify_ (purpose, validate, sig, |
321 | &identity->public_key); | ||
317 | } | 322 | } |
318 | 323 | ||
319 | 324 | ||