7 types derived from HashAlgorithm
mscorlib (7)
system\security\cryptography\keyedhashalgorithm.cs (1)
15public abstract class KeyedHashAlgorithm : HashAlgorithm {
system\security\cryptography\md5.cs (1)
15public abstract class MD5 : HashAlgorithm
system\security\cryptography\ripemd160.cs (1)
16public abstract class RIPEMD160 : HashAlgorithm
system\security\cryptography\sha1.cs (1)
15public abstract class SHA1 : HashAlgorithm
system\security\cryptography\sha256.cs (1)
17public abstract class SHA256 : HashAlgorithm
system\security\cryptography\sha384.cs (1)
17public abstract class SHA384 : HashAlgorithm
system\security\cryptography\sha512.cs (1)
17public abstract class SHA512 : HashAlgorithm
198 references to HashAlgorithm
mscorlib (56)
system\security\cryptography\asymmetricsignaturedeformatter.cs (1)
34public virtual bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature) {
system\security\cryptography\asymmetricsignatureformatter.cs (1)
33public virtual byte[] CreateSignature(HashAlgorithm hash) {
system\security\cryptography\hashalgorithm.cs (3)
49static public HashAlgorithm Create() { 53static public HashAlgorithm Create(String hashName) { 54return (HashAlgorithm) CryptoConfig.CreateFromName(hashName);
system\security\cryptography\hmac.cs (7)
42internal HashAlgorithm m_hash1; 43internal HashAlgorithm m_hash2; 110m_hash1 = HashAlgorithm.Create(m_hashName); 111m_hash2 = HashAlgorithm.Create(m_hashName); 185internal static HashAlgorithm GetHashAlgorithmWithFipsFallback(Func<HashAlgorithm> createStandardHashAlgorithmCallback, 186Func<HashAlgorithm> createFipsHashAlgorithmCallback) {
system\security\cryptography\hmacsha256.cs (2)
26m_hash1 = GetHashAlgorithmWithFipsFallback(() => new SHA256Managed(), () => HashAlgorithm.Create("System.Security.Cryptography.SHA256CryptoServiceProvider")); 27m_hash2 = GetHashAlgorithmWithFipsFallback(() => new SHA256Managed(), () => HashAlgorithm.Create("System.Security.Cryptography.SHA256CryptoServiceProvider"));
system\security\cryptography\hmacsha384.cs (2)
28m_hash1 = GetHashAlgorithmWithFipsFallback(() => new SHA384Managed(), () => HashAlgorithm.Create("System.Security.Cryptography.SHA384CryptoServiceProvider")); 29m_hash2 = GetHashAlgorithmWithFipsFallback(() => new SHA384Managed(), () => HashAlgorithm.Create("System.Security.Cryptography.SHA384CryptoServiceProvider"));
system\security\cryptography\hmacsha512.cs (2)
28m_hash1 = GetHashAlgorithmWithFipsFallback(() => new SHA512Managed(), () => HashAlgorithm.Create("System.Security.Cryptography.SHA512CryptoServiceProvider")); 29m_hash2 = GetHashAlgorithmWithFipsFallback(() => new SHA512Managed(), () => HashAlgorithm.Create("System.Security.Cryptography.SHA512CryptoServiceProvider"));
system\security\cryptography\passwordderivebytes.cs (2)
33private HashAlgorithm _hash; 99_hash = (HashAlgorithm) CryptoConfig.CreateFromName(_hashName);
system\security\cryptography\pkcs1maskgenerationmethod.cs (2)
43HashAlgorithm hash = (HashAlgorithm) CryptoConfig.CreateFromName(HashNameValue);
system\security\cryptography\rsacryptoserviceprovider.cs (4)
313HashAlgorithm hash = Utils.ObjToHashAlgorithm(halg); 320HashAlgorithm hash = Utils.ObjToHashAlgorithm(halg); 327HashAlgorithm hash = Utils.ObjToHashAlgorithm(halg); 334HashAlgorithm hash = Utils.ObjToHashAlgorithm(halg);
system\security\cryptography\signaturedescription.cs (2)
81public virtual HashAlgorithm CreateDigest() { 82return (HashAlgorithm) CryptoConfig.CreateFromName(_strDigest);
system\security\cryptography\utils.cs (10)
586else if (hashAlg is HashAlgorithm) { 599internal static HashAlgorithm ObjToHashAlgorithm (Object hashAlg) { 604HashAlgorithm hash = null; 606hash = (HashAlgorithm) CryptoConfig.CreateFromName((string) hashAlg); 610hash = (HashAlgorithm) CryptoConfig.CreateFromName(oidFriendlyName); 613else if (hashAlg is HashAlgorithm) { 614hash = (HashAlgorithm) hashAlg; 617hash = (HashAlgorithm) CryptoConfig.CreateFromName(hashAlg.ToString()); 806internal static byte[] RsaOaepEncrypt (RSA rsa, HashAlgorithm hash, PKCS1MaskGenerationMethod mgf, RandomNumberGenerator rng, byte[] data) { 855internal static byte[] RsaOaepDecrypt (RSA rsa, HashAlgorithm hash, PKCS1MaskGenerationMethod mgf, byte[] encryptedData) {
system\security\cryptography\x509certificates\x509certificate.cs (2)
335using (HashAlgorithm hash = CryptoConfig.CreateFromName(hashAlgorithm.Name) as HashAlgorithm) {
system\security\policy\hash.cs (11)
289public byte[] GenerateHash(HashAlgorithm hashAlg) 309Contract.Assert(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType), "Expected a hash algorithm"); 333Contract.Assert(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType), "Expected a hash algorithm"); 336using (HashAlgorithm hash = HashAlgorithm.Create(hashType.FullName)) 394Contract.Assert(hashAlgorithm != null && typeof(HashAlgorithm).IsAssignableFrom(hashAlgorithm)); 408Contract.Assert(hashAlgorithm != null && typeof(HashAlgorithm).IsAssignableFrom(hashAlgorithm)); 445Contract.Assert(hashType != null && typeof(HashAlgorithm).IsAssignableFrom(hashType)); 450while (currentType != null && currentType.BaseType != typeof(HashAlgorithm)) 459BCLDebug.Assert(hashType == typeof(HashAlgorithm), "hashType == typeof(HashAlgorithm)"); 460currentType = typeof(HashAlgorithm);
system\security\policy\hashmembershipcondition.cs (5)
30private HashAlgorithm m_hashAlg = null; 49m_hashAlg = HashAlgorithm.Create(hashAlgorithm); 54public HashMembershipCondition(HashAlgorithm hashAlg, byte[] value) { 77public HashAlgorithm HashAlgorithm { 272m_hashAlg = HashAlgorithm.Create(elHashAlg);
PresentationBuildTasks (2)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
3517private static HashAlgorithm s_hashAlgorithm;
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (1)
185HashAlgorithm hashAlgorithm;
System.Activities (2)
System\Activities\Debugger\Symbol\SymbolHelper.cs (2)
99using (HashAlgorithm hashAlgorithm = CreateHashProvider()) 156static HashAlgorithm CreateHashProvider()
System.Data.Entity (7)
System\Data\Common\Utils\MetadataHelper.cs (2)
838internal static HashAlgorithm CreateMetadataHashAlgorithm(double schemaVersion) 840HashAlgorithm hashAlgorithm;
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (5)
39internal CompressingHashBuilder(HashAlgorithm hashAlgorithm) 97private HashAlgorithm _hashAlgorithm; 104internal StringHashBuilder(HashAlgorithm hashAlgorithm) 109internal StringHashBuilder(HashAlgorithm hashAlgorithm, int startingBufferSize) 206public static string ComputeHash(HashAlgorithm hashAlgorithm, string source)
System.IdentityModel (46)
System\IdentityModel\CanonicalizationDriver.cs (1)
79public void WriteTo(HashAlgorithm hashAlgorithm)
System\IdentityModel\CryptoHelper.cs (8)
411internal static HashAlgorithm NewSha1HashAlgorithm() 416internal static HashAlgorithm NewSha256HashAlgorithm() 507internal static HashAlgorithm CreateHashAlgorithm(string algorithm) 513HashAlgorithm hashAlgorithm = algorithmObject as HashAlgorithm; 574using (HashAlgorithm hasher = CryptoHelper.NewSha1HashAlgorithm()) 709internal static byte[] CreateSignatureForSha256( AsymmetricSignatureFormatter formatter, HashAlgorithm hash ) 738internal static bool VerifySignatureForSha256( AsymmetricSignatureDeformatter deformatter, HashAlgorithm hash, byte[] signatureValue )
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (3)
19HashAlgorithm _hash; 38internal DigestTraceRecord(string traceName, MemoryStream logStream, HashAlgorithm hash) 138internal static void TraceDigest(MemoryStream logStream, HashAlgorithm hash)
System\IdentityModel\EnvelopedSignatureWriter.cs (1)
33HashAlgorithm _hashAlgorithm;
System\IdentityModel\ExclusiveCanonicalizationTransform.cs (2)
116HashAlgorithm hash = resourcePool.TakeHashAlgorithm(digestAlgorithm); 121public void ProcessAndDigest(object input, SignatureResourcePool resourcePool, HashAlgorithm hash, DictionaryManager dictionaryManger)
System\IdentityModel\HashStream.cs (4)
13HashAlgorithm hash; 22public HashStream(HashAlgorithm hash) 45public HashAlgorithm Hash 114public void Reset(HashAlgorithm hash)
System\IdentityModel\RsaEncryptionCookieTransform.cs (3)
121using (HashAlgorithm algorithm = CryptoHelper.CreateHashAlgorithm(value)) 165using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(_hashName)) 284using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(_hashName))
System\IdentityModel\RsaSignatureCookieTransform.cs (3)
77using (HashAlgorithm algorithm = CryptoHelper.CreateHashAlgorithm(value)) 190using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(HashName)) 263using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(HashName))
System\IdentityModel\SignatureResourcePool.cs (3)
19HashAlgorithm hashAlgorithm; 58public HashAlgorithm TakeHashAlgorithm(string algorithm) 77public HashStream TakeHashStream(HashAlgorithm hash)
System\IdentityModel\SignedXml.cs (5)
77void ComputeSignature(HashAlgorithm hash, AsymmetricSignatureFormatter formatter, string signatureMethod) 129using (HashAlgorithm hash = asymmetricKey.GetHashAlgorithmForSignature(signatureMethod)) 187void VerifySignature(HashAlgorithm hash, AsymmetricSignatureDeformatter deformatter, string signatureMethod) 234using (HashAlgorithm hash = asymmetricKey.GetHashAlgorithmForSignature(signatureMethod)) 532public void ComputeHash(HashAlgorithm algorithm)
System\IdentityModel\StrTransform.cs (2)
101HashAlgorithm hash = resourcePool.TakeHashAlgorithm(digestAlgorithm); 106public void ProcessAndDigest(object input, SignatureResourcePool resourcePool, HashAlgorithm hash, DictionaryManager dictionaryManger)
System\IdentityModel\Tokens\AsymmetricSecurityKey.cs (1)
12public abstract HashAlgorithm GetHashAlgorithmForSignature(string algorithm);
System\IdentityModel\Tokens\RsaSecurityKey.cs (3)
73public override HashAlgorithm GetHashAlgorithmForSignature(string algorithm) 88HashAlgorithm hashAlgorithm = algorithmObject as HashAlgorithm;
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
1674using (HashAlgorithm hashAlgorithm = CryptoHelper.NewSha256HashAlgorithm())
System\IdentityModel\Tokens\SamlAssertion.cs (1)
599using (HashAlgorithm hash = CryptoHelper.CreateHashAlgorithm(this.signingCredentials.DigestAlgorithm))
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
814using (HashAlgorithm hashAlgorithm = CryptoHelper.NewSha256HashAlgorithm())
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (3)
245public override HashAlgorithm GetHashAlgorithmForSignature(string algorithm) 260HashAlgorithm hashAlgorithm = algorithmObject as HashAlgorithm;
System\ServiceModel\Security\Tokens\WrappedKeySecurityToken.cs (1)
178using (HashAlgorithm hash = CryptoHelper.NewSha1HashAlgorithm())
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardAsymmetricCrypto.cs (1)
87public override HashAlgorithm GetHashAlgorithmForSignature(string algorithmUri)
System.Security (33)
system\security\cryptography\dataprotector.cs (2)
86using (HashAlgorithm sha256 = HashAlgorithm.Create("System.Security.Cryptography.Sha256Cng"))
system\security\cryptography\xml\c14nutil.cs (13)
36void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc); 62public static void WriteHash(XmlNode node, HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 70public static void WriteHashGenericNode(XmlNode node, HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 111public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 236public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 319public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 349public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 377public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 405public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 447public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 499public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 547public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) { 570public void WriteHash(HashAlgorithm hash, DocPosition docPos, AncestralNamespaceContextManager anc) {
system\security\cryptography\xml\canonicalxml.cs (1)
110internal byte[] GetDigestedBytes(HashAlgorithm hash) {
system\security\cryptography\xml\exccanonicalxml.cs (1)
66internal byte[] GetDigestedBytes(HashAlgorithm hash) {
system\security\cryptography\xml\reference.cs (2)
41private HashAlgorithm m_hashAlgorithm; 321m_hashAlgorithm = Utils.CreateFromName<HashAlgorithm>(m_digestMethod);
system\security\cryptography\xml\signedxml.cs (3)
381HashAlgorithm hashAlg = signatureDescription.CreateDigest(); 763private byte[] GetC14NDigest (HashAlgorithm hash) { 979HashAlgorithm hashAlgorithm = signatureDescription.CreateDigest();
system\security\cryptography\xml\SignedXmlDebugLog.cs (8)
592HashAlgorithm hash, 647HashAlgorithm hashAlgorithm = Utils.CreateFromName<HashAlgorithm>(reference.DigestMethod); 772HashAlgorithm hashAlgorithm = Utils.CreateFromName<HashAlgorithm>(reference.DigestMethod); 803HashAlgorithm hashAlgorithm, 970HashAlgorithm hashAlgorithm = Utils.CreateFromName<HashAlgorithm>(reference.DigestMethod);
system\security\cryptography\xml\transform.cs (3)
305public virtual byte[] GetDigestedOutput(HashAlgorithm hash) { 429public override byte[] GetDigestedOutput(HashAlgorithm hash) { 538public override byte[] GetDigestedOutput(HashAlgorithm hash) {
System.ServiceModel (19)
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
57HashAlgorithm hashAlgorithm; 298HashAlgorithm HashAlgorithm
System\ServiceModel\Channels\PipeConnection.cs (2)
2812using (HashAlgorithm hash = GetHashAlgorithm()) 2841static HashAlgorithm GetHashAlgorithm()
System\ServiceModel\Security\CryptoHelper.cs (8)
51internal static HashAlgorithm NewSha1HashAlgorithm() 56internal static HashAlgorithm NewSha256HashAlgorithm() 62internal static HashAlgorithm CreateHashAlgorithm(string digestMethod) 67HashAlgorithm hashAlgorithm = algorithmObject as HashAlgorithm; 92internal static HashAlgorithm CreateHashForAsymmetricSignature(string signatureMethod) 97HashAlgorithm hashAlgorithm; 107hashAlgorithm = algorithmObject as HashAlgorithm;
System\ServiceModel\Security\SspiNegotiationTokenAuthenticator.cs (1)
111static void AddToDigest(HashAlgorithm negotiationDigest, Stream stream)
System\ServiceModel\Security\SspiNegotiationTokenAuthenticatorState.cs (2)
21HashAlgorithm negotiationDigest; 58internal HashAlgorithm NegotiationDigest
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (1)
81static void AddToDigest(HashAlgorithm negotiationDigest, Stream stream)
System\ServiceModel\Security\SspiNegotiationTokenProviderState.cs (2)
20HashAlgorithm negotiationDigest; 41internal HashAlgorithm NegotiationDigest
System\ServiceModel\Security\WSSecurityJan2004.cs (1)
262using (HashAlgorithm hasher = CryptoHelper.NewSha1HashAlgorithm())
System.ServiceModel.Channels (2)
System\ServiceModel\Channels\DuplicateMessageDetector.cs (2)
13HashAlgorithm hashAlgorithm; 26this.hashAlgorithm = HashAlgorithm.Create();
System.Web (12)
Compilation\AssemblyBuilder.cs (2)
668using (HashAlgorithm ha = (HashAlgorithm)CryptoConfig.CreateFromName(hashAlgorithm)) {
Configuration\MachineKeySection.cs (4)
863return HashDataUsingNonKeyedAlgorithm(HashAlgorithm.Create(_CustomValidationName), 1101HashAlgorithm alg = null; 1104alg = HashAlgorithm.Create(_CustomValidationName); 1211private static byte[] HashDataUsingNonKeyedAlgorithm(HashAlgorithm hashAlgo, byte[] buf, byte[] modifier,
Security\FormsAuthentication.cs (1)
61HashAlgorithm hashAlgorithm;
Security\SQLMembershipProvider.cs (5)
1911HashAlgorithm hm = GetHashAlgorithm(); 1975private HashAlgorithm GetHashAlgorithm() { 1977return HashAlgorithm.Create(s_HashAlgorithm); 1986HashAlgorithm hashAlgo = HashAlgorithm.Create(temp);
System.Web.Services (2)
System\Web\Services\Protocols\LogicalMethodInfo.cs (2)
57static HashAlgorithm hash; 543internal static HashAlgorithm HashAlgorithm {
System.Windows.Forms (1)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
927HashAlgorithm hasher = null;
System.Workflow.ComponentModel (1)
Shared\XomlSerializationHelpers.cs (1)
276HashAlgorithm hashAlgorithm = null;
WindowsBase (14)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (9)
145HashAlgorithm hashAlgorithm = null; // optimize - generally only need to create and re-use one of these 456HashAlgorithm hashAlgorithm) 481HashAlgorithm hashAlgorithm) 571internal static HashAlgorithm GetHashAlgorithm(String hashAlgorithmName) 574HashAlgorithm algorithm = o as HashAlgorithm; 832using (HashAlgorithm hashAlgorithm = GetHashAlgorithm(_hashAlgorithmName)) 1011private static byte[] HashStream(HashAlgorithm hashAlgorithm, Stream s) 1173HashAlgorithm hashAlgorithm,
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (5)
485HashAlgorithm hashAlgorithm, 543XmlDocument xDoc, HashAlgorithm hashAlgorithm, 645HashAlgorithm hashAlgorithm, 750HashAlgorithm hashAlgorithm, 806private static XmlNode GenerateDigestValueNode(XmlDocument xDoc, HashAlgorithm hashAlgorithm, Stream s, String transformName)