diff options
author | David Hook <dgh@bouncycastle.org> | 2021-05-24 13:06:31 +1000 |
---|---|---|
committer | David Hook <dgh@bouncycastle.org> | 2021-05-24 13:06:31 +1000 |
commit | 01238566c1d4b2a606e4859a75ad05ca79db4ffb (patch) | |
tree | ee7d1057d41cd25c3f0383b5d1ca2e213a976feb /crypto/src/asn1/pkcs | |
parent | github#54 test for mixed mode definition (diff) | |
download | BouncyCastle.NET-ed25519-01238566c1d4b2a606e4859a75ad05ca79db4ffb.tar.xz |
github #222 addressed OAEP parameter setting, refactored KeyTransRecipientInfoGenerator to allow deprecation of sub class
Diffstat (limited to 'crypto/src/asn1/pkcs')
-rw-r--r-- | crypto/src/asn1/pkcs/RSAESOAEPparams.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crypto/src/asn1/pkcs/RSAESOAEPparams.cs b/crypto/src/asn1/pkcs/RSAESOAEPparams.cs index 0cf22f860..6434f0935 100644 --- a/crypto/src/asn1/pkcs/RSAESOAEPparams.cs +++ b/crypto/src/asn1/pkcs/RSAESOAEPparams.cs @@ -36,10 +36,15 @@ namespace Org.BouncyCastle.Asn1.Pkcs * The default version */ public RsaesOaepParameters() + : this(DefaultHashAlgorithm, DefaultMaskGenFunction, DefaultPSourceAlgorithm) + { + } + + public RsaesOaepParameters( + AlgorithmIdentifier hashAlgorithm, + AlgorithmIdentifier maskGenAlgorithm) + : this(DefaultHashAlgorithm, DefaultMaskGenFunction, DefaultPSourceAlgorithm) { - hashAlgorithm = DefaultHashAlgorithm; - maskGenAlgorithm = DefaultMaskGenFunction; - pSourceAlgorithm = DefaultPSourceAlgorithm; } public RsaesOaepParameters( |