Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2018-05-25 19:21:16 +0300
committerMarek Safar <marek.safar@gmail.com>2018-05-26 20:27:14 +0300
commite6192eaa59a61620d365ab50baf6cfaa76ba004e (patch)
treeb296067c5ab2acbd5aaf7aaaca29fbae82164ae9 /mcs/class/System.Security
parent92d9a3ca16c6fa606a87b2af7cee6424d9c20cd9 (diff)
Bump corefx
Diffstat (limited to 'mcs/class/System.Security')
-rw-r--r--mcs/class/System.Security/System.Security.Cryptography.Xml/SignedXml.cs6
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);