diff options
author | Fabio Germann <fabio.germann@dswiss.com> | 2016-02-17 17:31:07 +0100 |
---|---|---|
committer | Fabio Germann <fabio.germann@dswiss.com> | 2016-02-18 10:29:35 +0100 |
commit | 81ac7209ba76cd9eafbaa190288828a04cc82354 (patch) | |
tree | c7efed1c99be3fdc879ce0733de6dc6614c3790f /crypto/src/security | |
parent | Added support for repeated requests for output to Xof. (diff) | |
download | BouncyCastle.NET-ed25519-81ac7209ba76cd9eafbaa190288828a04cc82354.tar.xz |
added an implementation of RSA/ECB/OAEPWithSHA-256AndMGF1Padding as it is implemented in java as: RSA/ECB/OAEPWithSHA-256AndMGF1WithSHA-1Padding
Diffstat (limited to 'crypto/src/security')
-rw-r--r-- | crypto/src/security/CipherUtilities.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/security/CipherUtilities.cs b/crypto/src/security/CipherUtilities.cs index 3217f3183..b377a8ca5 100644 --- a/crypto/src/security/CipherUtilities.cs +++ b/crypto/src/security/CipherUtilities.cs @@ -85,6 +85,10 @@ namespace Org.BouncyCastle.Security OAEPWITHSHA_224ANDMGF1PADDING, OAEPWITHSHA256ANDMGF1PADDING, OAEPWITHSHA_256ANDMGF1PADDING, + OAEPWITHSHA256ANDMGF1WITHSHA256PADDING, + OAEPWITHSHA_256ANDMGF1WITHSHA_256PADDING, + OAEPWITHSHA256ANDMGF1WITHSHA1PADDING, + OAEPWITHSHA_256ANDMGF1WITHSHA_1PADDING, OAEPWITHSHA384ANDMGF1PADDING, OAEPWITHSHA_384ANDMGF1PADDING, OAEPWITHSHA512ANDMGF1PADDING, @@ -543,8 +547,14 @@ namespace Org.BouncyCastle.Security break; case CipherPadding.OAEPWITHSHA256ANDMGF1PADDING: case CipherPadding.OAEPWITHSHA_256ANDMGF1PADDING: + case CipherPadding.OAEPWITHSHA256ANDMGF1WITHSHA256PADDING: + case CipherPadding.OAEPWITHSHA_256ANDMGF1WITHSHA_256PADDING: asymBlockCipher = new OaepEncoding(asymBlockCipher, new Sha256Digest()); break; + case CipherPadding.OAEPWITHSHA256ANDMGF1WITHSHA1PADDING: + case CipherPadding.OAEPWITHSHA_256ANDMGF1WITHSHA_1PADDING: + asymBlockCipher = new OaepEncoding(asymBlockCipher, new Sha256Digest(), new Sha1Digest(), null); + break; case CipherPadding.OAEPWITHSHA384ANDMGF1PADDING: case CipherPadding.OAEPWITHSHA_384ANDMGF1PADDING: asymBlockCipher = new OaepEncoding(asymBlockCipher, new Sha384Digest()); |