diff options
author | MW <megan@cryptoworkshop.com> | 2019-01-19 13:43:28 +1100 |
---|---|---|
committer | MW <megan@cryptoworkshop.com> | 2019-01-19 13:43:28 +1100 |
commit | 4439255d81a81263e049d12e84096a7377c8bc2a (patch) | |
tree | 43e4e7b9bec4d1edcffe50e7d92d2185aecde6ba /crypto/src | |
parent | Provider logic for transformation names. (diff) | |
download | BouncyCastle.NET-ed25519-4439255d81a81263e049d12e84096a7377c8bc2a.tar.xz |
Missing file from last commit
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/crypto/operators/Asn1KeyWrapper.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/crypto/operators/Asn1KeyWrapper.cs b/crypto/src/crypto/operators/Asn1KeyWrapper.cs index 8f77201ca..38f287daa 100644 --- a/crypto/src/crypto/operators/Asn1KeyWrapper.cs +++ b/crypto/src/crypto/operators/Asn1KeyWrapper.cs @@ -24,7 +24,7 @@ namespace Org.BouncyCastle.Crypto.Operators static KeyWrapperUtil() { providerMap["RSA/NONE/OAEPPADDING"] = new WrapperCreator(RsaOaepWrapper.Rsa_None_OaepPadding); - providerMap["RSA/NONE/OAEPWITHSHA256ANDMGF1PADDING"] = new WrapperCreator(RsaOaepWrapper.Rsa_None_OaepWithSha256andMGF1Padding); + providerMap["RSA/NONE/OAEPWITHSHA256ANDMGF1PADDING"] = new WrapperCreator(RsaOaepWrapper.Rsa_None_OaepWithSha256andMGF1Padding); } public static IKeyWrapper WrapperForName(string algorithm) @@ -58,7 +58,7 @@ namespace Org.BouncyCastle.Crypto.Operators private string algorithm; private IKeyWrapper wrapper; - + public Asn1KeyWrapper(string algorithm, X509Certificate cert) { @@ -106,14 +106,14 @@ namespace Org.BouncyCastle.Crypto.Operators object createWrapper(); } - + internal class RsaOaepWrapper : IKeyWrapper, IKeyUnwrapper { internal static object Rsa_None_OaepPadding() { - return new RsaOaepWrapper(new Sha1Digest(),PkcsObjectIdentifiers.IdRsaesOaep); + return new RsaOaepWrapper(new Sha1Digest(), PkcsObjectIdentifiers.IdRsaesOaep); } internal static object Rsa_None_OaepWithSha256andMGF1Padding() @@ -127,7 +127,7 @@ namespace Org.BouncyCastle.Crypto.Operators public RsaOaepWrapper(IDigest digest, DerObjectIdentifier digestOid) { - AlgorithmIdentifier digestAlgId = new AlgorithmIdentifier(digestOid, DerNull.Instance); + AlgorithmIdentifier digestAlgId = new AlgorithmIdentifier(digestOid, DerNull.Instance); this.algId = new AlgorithmIdentifier( PkcsObjectIdentifiers.IdRsaesOaep, |