summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-10-19 20:31:23 +0200
committerFlorian Dold <florian@dold.me>2021-10-19 20:31:23 +0200
commit6a26aedeab3237dfa2da358c0a7546397786ed6f (patch)
tree31de385a1c8ce67b001c61c49e6e241e4ed7d371
parent002d86dfc768e95aa7bd4ebf8e840da86e7ffb45 (diff)
downloadanastasis-6a26aedeab3237dfa2da358c0a7546397786ed6f.tar.gz
anastasis-6a26aedeab3237dfa2da358c0a7546397786ed6f.tar.bz2
anastasis-6a26aedeab3237dfa2da358c0a7546397786ed6f.zip
clarify truth_salt name
-rw-r--r--doc/sphinx/rest.rst4
-rw-r--r--src/lib/anastasis_backup.c2
-rw-r--r--src/lib/anastasis_recovery.c2
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),