diff options
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 |