summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-09 16:11:04 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-09 16:11:04 +0200
commitd8922f82e5f6853c35a8a282e51471da908bdacf (patch)
tree191edb2430ea64987258dfd423051b4ae1db6c22 /src/include
parent676ccdc06589d4af329d016c04d79d71697092d1 (diff)
downloadexchange-d8922f82e5f6853c35a8a282e51471da908bdacf.tar.gz
exchange-d8922f82e5f6853c35a8a282e51471da908bdacf.tar.bz2
exchange-d8922f82e5f6853c35a8a282e51471da908bdacf.zip
-introduce 'struct TALER_WireSalt'
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_crypto_lib.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 71579170a..0284fc55b 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -359,6 +359,20 @@ struct TALER_ClaimTokenP
};
+/**
+ * Salt used to hash a merchant's payto:// URI to
+ * compute the "h_wire" (say for deposit requests).
+ */
+struct TALER_WireSalt
+{
+ /**
+ * Actual salt value.
+ * FIXME: #7032: change to 16 byte value!
+ */
+ struct GNUNET_HashCode data;
+};
+
+
GNUNET_NETWORK_STRUCT_END
@@ -1658,7 +1672,7 @@ TALER_exchange_wire_signature_make (
*/
void
TALER_merchant_wire_signature_hash (const char *payto_uri,
- const char *salt,
+ const struct TALER_WireSalt *salt,
struct GNUNET_HashCode *hc);
@@ -1674,7 +1688,7 @@ TALER_merchant_wire_signature_hash (const char *payto_uri,
enum GNUNET_GenericReturnValue
TALER_merchant_wire_signature_check (
const char *payto_uri,
- const char *salt,
+ const struct TALER_WireSalt *salt,
const struct TALER_MerchantPublicKeyP *merch_pub,
const struct TALER_MerchantSignatureP *merch_sig);
@@ -1690,7 +1704,7 @@ TALER_merchant_wire_signature_check (
void
TALER_merchant_wire_signature_make (
const char *payto_uri,
- const char *salt,
+ const struct TALER_WireSalt *salt,
const struct TALER_MerchantPrivateKeyP *merch_priv,
struct TALER_MerchantSignatureP *merch_sig);