aboutsummaryrefslogtreecommitdiff
path: root/src/util/denom.c
diff options
context:
space:
mode:
authorGian Demarmels <gian@demarmels.org>2022-01-03 14:38:59 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:33:11 +0100
commit18db69be2d2bbacc6b9f4de2e9e8f8db2df4febe (patch)
treec7630208dee223cdaef32097c2b9f66cc9b1bfa7 /src/util/denom.c
parentf239b01be196f5ce64fdd9f0a6f42a11077c33c6 (diff)
downloadexchange-18db69be2d2bbacc6b9f4de2e9e8f8db2df4febe.tar.xz
initial cs_secmod implementation
Diffstat (limited to 'src/util/denom.c')
-rw-r--r--src/util/denom.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/denom.c b/src/util/denom.c
index 9d8acfcae..908302600 100644
--- a/src/util/denom.c
+++ b/src/util/denom.c
@@ -235,6 +235,22 @@ TALER_rsa_pub_hash (const struct GNUNET_CRYPTO_RsaPublicKey *rsa,
}
+/**
+ * Hash @a cs. key
+ *
+ * @param cs key to hash
+ * @param[out] h_cs where to write the result
+ */
+void
+TALER_cs_pub_hash (const struct GNUNET_CRYPTO_CsPublicKey *cs,
+ struct TALER_CsPubHashP *h_cs)
+{
+ GNUNET_CRYPTO_hash (cs,
+ sizeof(*cs),
+ &h_cs->hash);
+}
+
+
void
TALER_denom_pub_hash (const struct TALER_DenominationPublicKey *denom_pub,
struct TALER_DenominationHash *denom_hash)