From d40da21e905ef9f5370bcd0e693778053878fc34 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 29 May 2022 22:25:04 +0200 Subject: add batch signing support to taler-exchange-secmod-rsa --- src/util/taler-exchange-secmod-rsa.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/util/taler-exchange-secmod-rsa.h') diff --git a/src/util/taler-exchange-secmod-rsa.h b/src/util/taler-exchange-secmod-rsa.h index 625ff87d..dddaf3e1 100644 --- a/src/util/taler-exchange-secmod-rsa.h +++ b/src/util/taler-exchange-secmod-rsa.h @@ -24,14 +24,17 @@ #define TALER_HELPER_RSA_MT_PURGE 1 #define TALER_HELPER_RSA_MT_AVAIL 2 +#define TALER_HELPER_RSA_MT_REQ_BATCH_SIGN 3 #define TALER_HELPER_RSA_MT_REQ_INIT 4 #define TALER_HELPER_RSA_MT_REQ_SIGN 5 #define TALER_HELPER_RSA_MT_REQ_REVOKE 6 #define TALER_HELPER_RSA_MT_RES_SIGNATURE 7 #define TALER_HELPER_RSA_MT_RES_SIGN_FAILURE 8 +#define TALER_HELPER_RSA_MT_RES_BATCH_FAILURE 9 + +#define TALER_HELPER_RSA_SYNCED 10 -#define TALER_HELPER_RSA_SYNCED 9 GNUNET_NETWORK_STRUCT_BEGIN @@ -132,6 +135,28 @@ struct TALER_CRYPTO_SignRequest }; +/** + * Message sent if a signature is requested. + */ +struct TALER_CRYPTO_BatchSignRequest +{ + /** + * Type is #TALER_HELPER_RSA_MT_REQ_BATCH_SIGN. + */ + struct GNUNET_MessageHeader header; + + /** + * Number of signatures to create, in NBO. + */ + uint32_t batch_size; + + /* + * Followed by @e batch_size batch sign requests. + */ + +}; + + /** * Message sent if a key was revoked. */ -- cgit v1.2.3