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