commit 6a26aedeab3237dfa2da358c0a7546397786ed6f
parent 002d86dfc768e95aa7bd4ebf8e840da86e7ffb45
Author: Florian Dold <florian@dold.me>
Date: Tue, 19 Oct 2021 20:31:23 +0200
clarify truth_salt name
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git 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
@@ -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
@@ -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),