From 18db69be2d2bbacc6b9f4de2e9e8f8db2df4febe Mon Sep 17 00:00:00 2001 From: Gian Demarmels Date: Mon, 3 Jan 2022 14:38:59 +0100 Subject: initial cs_secmod implementation --- src/util/denom.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/util/denom.c') diff --git a/src/util/denom.c b/src/util/denom.c index 9d8acfca..90830260 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) -- cgit v1.2.3