Skip to content

Commit

Permalink
Missing file from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcw committed Jan 19, 2019
1 parent 8403b25 commit 4439255
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crypto/src/crypto/operators/Asn1KeyWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class KeyWrapperUtil
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)
Expand Down Expand Up @@ -58,7 +58,7 @@ public class Asn1KeyWrapper : IKeyWrapper
private string algorithm;
private IKeyWrapper wrapper;



public Asn1KeyWrapper(string algorithm, X509Certificate cert)
{
Expand Down Expand Up @@ -106,14 +106,14 @@ internal interface WrapperProvider
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()
Expand All @@ -127,7 +127,7 @@ internal static object Rsa_None_OaepWithSha256andMGF1Padding()

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,
Expand Down

0 comments on commit 4439255

Please sign in to comment.