diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-17 23:02:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-17 23:02:05 +0100 |
commit | b61f601028f38a6c56aa00f171fa20605ca8c663 (patch) | |
tree | d433a1e721677b1445151ad41acd0ca29914adc0 /src/util/taler-exchange-secmod-rsa.h | |
parent | 2078dd1bfbf942d36923d24836a29e40ff24989a (diff) | |
download | exchange-b61f601028f38a6c56aa00f171fa20605ca8c663.tar.xz |
-use different hash for RSA vs. Denomination hashing
Diffstat (limited to 'src/util/taler-exchange-secmod-rsa.h')
-rw-r--r-- | src/util/taler-exchange-secmod-rsa.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/util/taler-exchange-secmod-rsa.h b/src/util/taler-exchange-secmod-rsa.h index 1723560a5..b0fdfbd96 100644 --- a/src/util/taler-exchange-secmod-rsa.h +++ b/src/util/taler-exchange-secmod-rsa.h @@ -35,6 +35,7 @@ GNUNET_NETWORK_STRUCT_BEGIN + /** * Message sent if a key is available. */ @@ -76,7 +77,7 @@ struct TALER_CRYPTO_RsaKeyAvailableNotification */ struct TALER_SecurityModuleSignatureP secm_sig; - /* followed by @e pub_size bytes of the public key */ + /* followed by @e pub_size bytes of the RSA public key */ /* followed by @e section_name bytes of the configuration section name of the denomination of this key */ @@ -102,8 +103,7 @@ struct TALER_CRYPTO_RsaKeyPurgeNotification /** * Hash of the public key of the purged RSA key. */ - // FIXME: wrong type, not hashed with age restriction here! - struct TALER_DenominationHash h_denom_pub; + struct TALER_RsaPubHashP h_rsa; }; @@ -126,8 +126,7 @@ struct TALER_CRYPTO_SignRequest /** * Hash of the public key of the RSA key to use for the signature. */ - // FIXME: wrong type, not hashed with age restriction here! - struct TALER_DenominationHash h_denom_pub; + struct TALER_RsaPubHashP h_rsa; /* followed by message to sign */ }; @@ -151,8 +150,7 @@ struct TALER_CRYPTO_RevokeRequest /** * Hash of the public key of the revoked RSA key. */ - // FIXME: wrong type, not hashed with age restriction here! - struct TALER_DenominationHash h_denom_pub; + struct TALER_RsaPubHashP h_rsa; }; |