gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: use const


From: gnunet
Subject: [taler-anastasis] branch master updated: use const
Date: Fri, 24 Apr 2020 18:04:45 +0200

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

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 754d2ef  use const
754d2ef is described below

commit 754d2efa31abfb982d9531171c0acaf712429685
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Apr 24 18:04:43 2020 +0200

    use const
---
 src/util/anastasis_crypto.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/util/anastasis_crypto.c b/src/util/anastasis_crypto.c
index 3d06624..e4f1dd6 100644
--- a/src/util/anastasis_crypto.c
+++ b/src/util/anastasis_crypto.c
@@ -188,13 +188,13 @@ anastasis_decrypt (const void *key,
                    void **res,
                    size_t *res_size)
 {
-  struct ANASTASIS_CRYPTO_Nonce *nonce;
+  const struct ANASTASIS_CRYPTO_Nonce *nonce;
   gcry_cipher_hd_t cipher;
   struct ANASTASIS_CRYPTO_SymKey sym_key;
   struct ANASTASIS_CRYPTO_Iv iv;
   int rc;
-  struct ANASTASIS_CRYPTO_AesTag *tag;
-  char *ciphertext;
+  const struct ANASTASIS_CRYPTO_AesTag *tag;
+  const char *ciphertext;
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "At %s:%d KEY_D is %s-%llu b\n", __FILE__, __LINE__,
@@ -213,7 +213,7 @@ anastasis_decrypt (const void *key,
                  - sizeof (struct ANASTASIS_CRYPTO_Nonce)
                  - sizeof (struct ANASTASIS_CRYPTO_AesTag));
 
-  nonce = (struct ANASTASIS_CRYPTO_Nonce *) data;
+  nonce = (const struct ANASTASIS_CRYPTO_Nonce *) data;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "At %s:%d NONCE_D is %s-%llu b\n", __FILE__, __LINE__,
               TALER_B2S (nonce),
@@ -225,7 +225,7 @@ anastasis_decrypt (const void *key,
               TALER_B2S (tag),
               (unsigned long long) sizeof (*tag));
 
-  ciphertext = (char *) &tag[1];
+  ciphertext = (const char *) &tag[1];
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "At %s:%d CIPHERTEXT_D is %s-%llu b\n", __FILE__, __LINE__,
               TALER_b2s (ciphertext, *res_size),

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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