Imported Upstream version 5.16.0.100

Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-08-07 15:19:03 +00:00
parent 0a9828183b
commit 7d7f676260
4419 changed files with 170950 additions and 90273 deletions

View File

@@ -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);