diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-05-29 22:25:04 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-05-29 22:25:04 +0200 |
commit | d40da21e905ef9f5370bcd0e693778053878fc34 (patch) | |
tree | 80e30b89697bc098dfdd3183e0a3e7629ac1caf7 /src/util/taler-exchange-secmod-rsa.h | |
parent | 6d2ee2c88ab87ac7e07ae30507dbd4197737838f (diff) | |
download | exchange-d40da21e905ef9f5370bcd0e693778053878fc34.tar.xz |
add batch signing support to taler-exchange-secmod-rsa
Diffstat (limited to 'src/util/taler-exchange-secmod-rsa.h')
-rw-r--r-- | src/util/taler-exchange-secmod-rsa.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/util/taler-exchange-secmod-rsa.h b/src/util/taler-exchange-secmod-rsa.h index 625ff87d9..dddaf3e1c 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 @@ -133,6 +136,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. */ struct TALER_CRYPTO_RevokeRequest |