aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index f40472240..d44e8da96 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1083,11 +1083,11 @@ GNUNET_IDENTITY_write_signature_to_buffer (const struct
1083 1083
1084 1084
1085int 1085int
1086GNUNET_IDENTITY_private_key_sign_ (const struct 1086GNUNET_IDENTITY_sign_ (const struct
1087 GNUNET_IDENTITY_PrivateKey *priv, 1087 GNUNET_IDENTITY_PrivateKey *priv,
1088 const struct 1088 const struct
1089 GNUNET_CRYPTO_EccSignaturePurpose *purpose, 1089 GNUNET_CRYPTO_EccSignaturePurpose *purpose,
1090 struct GNUNET_IDENTITY_Signature *sig) 1090 struct GNUNET_IDENTITY_Signature *sig)
1091{ 1091{
1092 sig->type = priv->type; 1092 sig->type = priv->type;
1093 switch (ntohl (priv->type)) 1093 switch (ntohl (priv->type))
@@ -1109,11 +1109,11 @@ GNUNET_IDENTITY_private_key_sign_ (const struct
1109 1109
1110 1110
1111int 1111int
1112GNUNET_IDENTITY_public_key_verify_ (uint32_t purpose, 1112GNUNET_IDENTITY_signature_verify_ (uint32_t purpose,
1113 const struct 1113 const struct
1114 GNUNET_CRYPTO_EccSignaturePurpose *validate, 1114 GNUNET_CRYPTO_EccSignaturePurpose *validate,
1115 const struct GNUNET_IDENTITY_Signature *sig, 1115 const struct GNUNET_IDENTITY_Signature *sig,
1116 const struct GNUNET_IDENTITY_PublicKey *pub) 1116 const struct GNUNET_IDENTITY_PublicKey *pub)
1117{ 1117{
1118 /* check type matching of 'sig' and 'pub' */ 1118 /* check type matching of 'sig' and 'pub' */
1119 GNUNET_assert (ntohl (pub->type) == ntohl (sig->type)); 1119 GNUNET_assert (ntohl (pub->type) == ntohl (sig->type));