From 6a26aedeab3237dfa2da358c0a7546397786ed6f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 19 Oct 2021 20:31:23 +0200 Subject: clarify truth_salt name --- doc/sphinx/rest.rst | 4 ++-- src/lib/anastasis_backup.c | 2 +- src/lib/anastasis_recovery.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/sphinx/rest.rst b/doc/sphinx/rest.rst index a9b8fbc..eebe56e 100644 --- a/doc/sphinx/rest.rst +++ b/doc/sphinx/rest.rst @@ -303,8 +303,8 @@ In the following, UUID is always defined and used according to `RFC 4122`_. // Client has to provide this key to the server when using ``/truth/``. truth_key: [32]; //bytearray - // Salt used to encrypt the truth on the Anastasis server. - salt: [32]; //bytearray + // Salt used to hash the security answer if appliccable. + truth_salt: [32]; //bytearray // Salt from the provider to derive the user ID // at this provider. diff --git a/src/lib/anastasis_backup.c b/src/lib/anastasis_backup.c index b9981f0..95e9ee9 100644 --- a/src/lib/anastasis_backup.c +++ b/src/lib/anastasis_backup.c @@ -826,7 +826,7 @@ ANASTASIS_secret_share (struct GNUNET_CURL_Context *ctx, pt->instructions), GNUNET_JSON_pack_data_auto ("truth_key", &pt->truth_key), - GNUNET_JSON_pack_data_auto ("salt", + GNUNET_JSON_pack_data_auto ("truth_salt", &pt->salt), GNUNET_JSON_pack_data_auto ("provider_salt", &pt->provider_salt), diff --git a/src/lib/anastasis_recovery.c b/src/lib/anastasis_recovery.c index 70bfa36..ef2ccd0 100644 --- a/src/lib/anastasis_recovery.c +++ b/src/lib/anastasis_recovery.c @@ -791,7 +791,7 @@ policy_lookup_cb (void *cls, &instructions), GNUNET_JSON_spec_fixed_auto ("truth_key", &cs->truth_key), - GNUNET_JSON_spec_fixed_auto ("salt", + GNUNET_JSON_spec_fixed_auto ("truth_salt", &cs->salt), GNUNET_JSON_spec_fixed_auto ("provider_salt", &cs->provider_salt), -- cgit v1.2.3