diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-15 13:26:49 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-15 13:26:49 +0100 |
commit | 9f60c8c041d9d86ebb701a2532e4d849ca9a9d82 (patch) | |
tree | eaa0002ded63cc421cb243f0f63bea91a83a5c53 /src/util/taler-helper-crypto-rsa.h | |
parent | bf7a660ec0278e56eea0bce413c61a2ba0daeca2 (diff) | |
download | exchange-9f60c8c041d9d86ebb701a2532e4d849ca9a9d82.tar.xz |
handle revocation requests
Diffstat (limited to 'src/util/taler-helper-crypto-rsa.h')
-rw-r--r-- | src/util/taler-helper-crypto-rsa.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/util/taler-helper-crypto-rsa.h b/src/util/taler-helper-crypto-rsa.h index 3715c17c0..b5ad6775f 100644 --- a/src/util/taler-helper-crypto-rsa.h +++ b/src/util/taler-helper-crypto-rsa.h @@ -24,6 +24,9 @@ #define TALER_HELPER_RSA_MT_PURGE 1 #define TALER_HELPER_RSA_MT_AVAIL 2 +#define TALER_HELPER_RSA_MT_REQ_SIGN 3 +#define TALER_HELPER_RSA_MT_REQ_REVOKE 4 + GNUNET_NETWORK_STRUCT_BEGIN /** @@ -87,6 +90,57 @@ struct TALER_CRYPTO_RsaKeyPurgeNotification }; +/** + * Message sent if a signature is requested. + */ +struct TALER_CRYPTO_SignRequest +{ + /** + * Type is #TALER_HELPER_RSA_MT_SIGN. + */ + struct GNUNET_MessageHeader header; + + /** + * For now, always zero. + */ + uint32_t reserved; + + /** + * Hash of the public key of the RSA key to use for the signature. + */ + struct GNUNET_HashCode h_denom_pub; + + /** + * Hash of the value to sign (FDH still to be computed!). + */ + struct GNUNET_HashCode h_message; + +}; + + +/** + * Message sent if a key was revoked. + */ +struct TALER_CRYPTO_RevokeRequest +{ + /** + * Type is #TALER_HELPER_RSA_MT_REVOKE. + */ + struct GNUNET_MessageHeader header; + + /** + * For now, always zero. + */ + uint32_t reserved; + + /** + * Hash of the public key of the revoked RSA key. + */ + struct GNUNET_HashCode h_denom_pub; + +}; + + GNUNET_NETWORK_STRUCT_END |