diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2021-10-25 13:54:38 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-10-27 09:23:13 +0200 |
commit | 58ea04167ca46e7ef82d25900cae731741854279 (patch) | |
tree | c322cab80cddb21cad4e809b5d8fda41b4b48819 /src/include/taler_crypto_lib.h | |
parent | 201d6ea5c9eac6f8e02cfcff996eb5e871d3b53f (diff) | |
download | exchange-58ea04167ca46e7ef82d25900cae731741854279.tar.xz |
-fix misc FTBFS
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 561f2bd0a..3507ebe5e 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -662,6 +662,30 @@ TALER_denom_pub_hash (const struct TALER_DenominationPublicKey *denom_pub, /** + * Make a (deep) copy of the given @a denom_src to + * @a denom_dst. + * + * @param[out] denom_dst target to copy to + * @param denom_str public key to copy + */ +void +TALER_denom_pub_deep_copy (struct TALER_DenominationPublicKey *denom_dst, + const struct TALER_DenominationPublicKey *denom_src); + + +/** + * Compare two denomination public keys. + * + * @param denom1 first key + * @param denom2 second key + * @return 0 if the keys are equal, otherwise -1 or 1 + */ +int +TALER_denom_pub_cmp (const struct TALER_DenominationPublicKey *denom1, + const struct TALER_DenominationPublicKey *denom2); + + +/** * Obtain denomination public key from a denomination private key. * * @param denom_priv private key to convert |