aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-14 17:17:42 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-14 17:17:42 +0100
commitc90b5703c88339f7bdf909b77a45ea93c21792cd (patch)
treefc3397900dc6bdbcdd17cf773f6d60e53abc025a /src/identity/identity_api.c
parentf62e24a88c21235bc3c901508cfb474509ef2961 (diff)
parentd36019fe48ff1e4e56754ef3e689bd67445a38f6 (diff)
downloadgnunet-c90b5703c88339f7bdf909b77a45ea93c21792cd.tar.gz
gnunet-c90b5703c88339f7bdf909b77a45ea93c21792cd.zip
Merge branch 'master' of git+ssh://gnunet.org/gnunet
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index d44e8da96..64c088923 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1138,11 +1138,11 @@ GNUNET_IDENTITY_signature_verify_ (uint32_t purpose,
1138 1138
1139 1139
1140ssize_t 1140ssize_t
1141GNUNET_IDENTITY_public_key_encrypt (const void *block, 1141GNUNET_IDENTITY_encrypt (const void *block,
1142 size_t size, 1142 size_t size,
1143 const struct GNUNET_IDENTITY_PublicKey *pub, 1143 const struct GNUNET_IDENTITY_PublicKey *pub,
1144 struct GNUNET_CRYPTO_EcdhePublicKey *ecc, 1144 struct GNUNET_CRYPTO_EcdhePublicKey *ecc,
1145 void *result) 1145 void *result)
1146{ 1146{
1147 struct GNUNET_CRYPTO_EcdhePrivateKey pk; 1147 struct GNUNET_CRYPTO_EcdhePrivateKey pk;
1148 GNUNET_CRYPTO_ecdhe_key_create (&pk); 1148 GNUNET_CRYPTO_ecdhe_key_create (&pk);
@@ -1177,13 +1177,11 @@ GNUNET_IDENTITY_public_key_encrypt (const void *block,
1177 1177
1178 1178
1179ssize_t 1179ssize_t
1180GNUNET_IDENTITY_private_key_decrypt (const void *block, 1180GNUNET_IDENTITY_decrypt (const void *block,
1181 size_t size, 1181 size_t size,
1182 const struct 1182 const struct GNUNET_IDENTITY_PrivateKey *priv,
1183 GNUNET_IDENTITY_PrivateKey *priv, 1183 const struct GNUNET_CRYPTO_EcdhePublicKey *ecc,
1184 const struct 1184 void *result)
1185 GNUNET_CRYPTO_EcdhePublicKey *ecc,
1186 void *result)
1187{ 1185{
1188 struct GNUNET_HashCode hash; 1186 struct GNUNET_HashCode hash;
1189 switch (ntohl (priv->type)) 1187 switch (ntohl (priv->type))