gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: formatting my identity api code


From: gnunet
Subject: [gnunet] branch master updated: formatting my identity api code
Date: Sat, 07 Nov 2020 16:14:15 +0100

This is an automated email from the git hooks/post-receive script.

thejackimonster pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new c517aefd0 formatting my identity api code
c517aefd0 is described below

commit c517aefd0325f6113008a6eb834c6dfe5156cb65
Author: TheJackiMonster <thejackimonster@gmail.com>
AuthorDate: Sat Nov 7 16:06:11 2020 +0100

    formatting my identity api code
    
    Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
 src/identity/identity_api.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 45c18b95c..6f7c5d860 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1135,11 +1135,11 @@ GNUNET_IDENTITY_public_key_encrypt(const void *block,
   switch (ntohl (pub->type))
   {
   case GNUNET_IDENTITY_TYPE_ECDSA:
-    if (GNUNET_CRYPTO_ecdh_ecdsa(&pk, &(pub->ecdsa_key), &hash) == 
GNUNET_SYSERR)
+    if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdh_ecdsa(&pk, &(pub->ecdsa_key), 
&hash))
       return -1;
     break;
   case GNUNET_IDENTITY_TYPE_EDDSA:
-    if (GNUNET_CRYPTO_ecdh_eddsa(&pk, &(pub->eddsa_key), &hash) == 
GNUNET_SYSERR)
+    if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdh_eddsa(&pk, &(pub->eddsa_key), 
&hash))
       return -1;
     break;
   default:
@@ -1168,15 +1168,15 @@ GNUNET_IDENTITY_private_key_decrypt(const void *block,
   switch (ntohl (priv->type))
   {
   case GNUNET_IDENTITY_TYPE_ECDSA:
-       if (GNUNET_CRYPTO_ecdsa_ecdh(&(priv->ecdsa_key), ecc, &hash) == 
GNUNET_SYSERR)
-         return -1;
-       break;
+    if (GNUNET_SYSERR == GNUNET_CRYPTO_ecdsa_ecdh(&(priv->ecdsa_key), ecc, 
&hash))
+      return -1;
+    break;
   case GNUNET_IDENTITY_TYPE_EDDSA:
-       if (GNUNET_CRYPTO_eddsa_ecdh(&(priv->eddsa_key), ecc, &hash) == 
GNUNET_SYSERR)
-         return -1;
-       break;
+    if (GNUNET_SYSERR == GNUNET_CRYPTO_eddsa_ecdh(&(priv->eddsa_key), ecc, 
&hash))
+      return -1;
+    break;
   default:
-       return -1;
+    return -1;
   }
   struct GNUNET_CRYPTO_SymmetricSessionKey key;
   struct GNUNET_CRYPTO_SymmetricInitializationVector iv;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]