diff options
author | Marek Safar <marek.safar@gmail.com> | 2018-05-25 19:21:16 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-05-26 20:27:14 +0300 |
commit | e6192eaa59a61620d365ab50baf6cfaa76ba004e (patch) | |
tree | b296067c5ab2acbd5aaf7aaaca29fbae82164ae9 /mcs/class/System.Security | |
parent | 92d9a3ca16c6fa606a87b2af7cee6424d9c20cd9 (diff) |
Bump corefx
Diffstat (limited to 'mcs/class/System.Security')
-rw-r--r-- | mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs b/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs index 15e50ca5fcf..495c0afee00 100644 --- a/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs +++ b/mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs @@ -382,7 +382,7 @@ namespace System.Security.Cryptography.Xml { } // See if there is a signature description class defined in the Config file - SignatureDescription signatureDescription = CryptoHelpers.CreateFromName (SignedInfo.SignatureMethod) as SignatureDescription; + SignatureDescription signatureDescription = CryptoHelpers.CreateFromName<SignatureDescription> (SignedInfo.SignatureMethod); if (signatureDescription == null) throw new CryptographicException (SR.Cryptography_Xml_SignatureDescriptionNotCreated); HashAlgorithm hashAlg = signatureDescription.CreateDigest (); @@ -603,7 +603,7 @@ namespace System.Security.Cryptography.Xml { return false; // See if we're signed witn an HMAC algorithm - HMAC hmac = CryptoHelpers.CreateFromName (SignatureMethod) as HMAC; + HMAC hmac = CryptoHelpers.CreateFromName<HMAC> (SignatureMethod); if (hmac == null) return false; // We aren't signed with an HMAC algorithm, so we cannot have a truncated HMAC @@ -930,7 +930,7 @@ namespace System.Security.Cryptography.Xml { SignedXmlDebugLog.LogBeginCheckSignedInfo (this, m_signature.SignedInfo); - SignatureDescription signatureDescription = CryptoHelpers.CreateFromName (SignatureMethod) as SignatureDescription; + SignatureDescription signatureDescription = CryptoHelpers.CreateFromName<SignatureDescription> (SignatureMethod); if (signatureDescription == null) throw new CryptographicException (SR.Cryptography_Xml_SignatureDescriptionNotCreated); |