[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 02/02: worked on keyshare lookup api
From: |
gnunet |
Subject: |
[taler-anastasis] 02/02: worked on keyshare lookup api |
Date: |
Wed, 22 Apr 2020 16:28:35 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
commit 0464d49873808bd7c964dabaa290fe14b369783e
Author: Dennis Neufeld <address@hidden>
AuthorDate: Wed Apr 22 14:23:09 2020 +0000
worked on keyshare lookup api
---
src/lib/anastasis.c | 9 ++-------
src/lib/testing_api_cmd_truth_store.c | 1 -
src/util/anastasis_crypto.c | 15 ++++++++-------
3 files changed, 10 insertions(+), 15 deletions(-)
diff --git a/src/lib/anastasis.c b/src/lib/anastasis.c
index 1c2b0b2..399f206 100644
--- a/src/lib/anastasis.c
+++ b/src/lib/anastasis.c
@@ -32,13 +32,8 @@
struct SaltState
{
/**
- * The interpreter state.
- */
- struct TALER_TESTING_Interpreter *is;
-
- /**
- * URL of the anastasis backend.
- */
+ * URL of the anastasis backend.
+ */
const char *anastasis_url;
/**
diff --git a/src/lib/testing_api_cmd_truth_store.c
b/src/lib/testing_api_cmd_truth_store.c
index 432a5d0..9f3eab8 100644
--- a/src/lib/testing_api_cmd_truth_store.c
+++ b/src/lib/testing_api_cmd_truth_store.c
@@ -387,7 +387,6 @@ ANASTASIS_TESTING_make_truth_example (const char *method,
const struct
ANASTASIS_CRYPTO_TruthKey key)
{
-
json_t *truth_data;
struct ANASTASIS_CRYPTO_EncryptedKeyShare keyshare_data;
void *encrypted_truth;
diff --git a/src/util/anastasis_crypto.c b/src/util/anastasis_crypto.c
index 19cb076..cf05ea4 100644
--- a/src/util/anastasis_crypto.c
+++ b/src/util/anastasis_crypto.c
@@ -87,6 +87,14 @@ anastasis_encrypt (const void *key,
void **res,
size_t *res_size)
{
+ 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;
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"KEY_E: %s\n",
TALER_b2s (key,
@@ -95,13 +103,6 @@ anastasis_encrypt (const void *key,
"PLAINTEXT_E: %s\n",
TALER_b2s (data,
data_size));
- 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;
*res_size = data_size
+ sizeof (struct ANASTASIS_CRYPTO_Nonce)
--
To stop receiving notification emails like this one, please contact
address@hidden.