summaryrefslogtreecommitdiff
path: root/src/include/taler_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-01 17:00:51 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-01 17:00:51 +0100
commite469e6698e154ec2211c0a966117eff8074664a0 (patch)
tree5884384d20d3e12975010504f3f6230a1248bc7c /src/include/taler_crypto_lib.h
parentf0567567fe829548192ba1be433abf28bbe83213 (diff)
downloadexchange-e469e6698e154ec2211c0a966117eff8074664a0.tar.gz
exchange-e469e6698e154ec2211c0a966117eff8074664a0.tar.bz2
exchange-e469e6698e154ec2211c0a966117eff8074664a0.zip
start work on AML decision query API
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r--src/include/taler_crypto_lib.h25
1 files changed, 25 insertions, 0 deletions
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.