From e469e6698e154ec2211c0a966117eff8074664a0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Feb 2023 17:00:51 +0100 Subject: start work on AML decision query API --- src/include/taler_crypto_lib.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index dfd40e1d4..484f0f225 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -2370,6 +2370,31 @@ TALER_CRYPTO_contract_decrypt_for_deposit ( /* **************** AML officer signatures **************** */ +/** + * Sign AML query. Simple authentication, doesn't actually + * sign anything. + * + * @param officer_priv private key of AML officer + * @param[out] officer_sig where to write the signature + */ +void +TALER_officer_aml_query_sign ( + const struct TALER_AmlOfficerPrivateKeyP *officer_priv, + struct TALER_AmlOfficerSignatureP *officer_sig); + + +/** + * Verify AML query authorization. + * + * @param officer_pub public key of AML officer + * @param officer_sig signature to verify + * @return #GNUNET_OK if the signature is valid + */ +enum GNUNET_GenericReturnValue +TALER_officer_aml_query_verify ( + const struct TALER_AmlOfficerPublicKeyP *officer_pub, + const struct TALER_AmlOfficerSignatureP *officer_sig); + /** * Sign AML decision. -- cgit v1.2.3