5 instantiations of HashAlgorithmName
mscorlib (5)
system\security\cryptography\HashAlgorithmName.cs (5)
33
public static HashAlgorithmName MD5 { get { return new
HashAlgorithmName
("MD5"); } }
38
public static HashAlgorithmName SHA1 { get { return new
HashAlgorithmName
("SHA1"); } }
43
public static HashAlgorithmName SHA256 { get { return new
HashAlgorithmName
("SHA256"); } }
48
public static HashAlgorithmName SHA384 { get { return new
HashAlgorithmName
("SHA384"); } }
53
public static HashAlgorithmName SHA512 { get { return new
HashAlgorithmName
("SHA512"); } }
95 references to HashAlgorithmName
mscorlib (73)
system\security\cryptography\dsa.cs (8)
86
protected virtual byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm)
91
protected virtual byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm)
96
public byte[] SignData(byte[] data,
HashAlgorithmName
hashAlgorithm)
103
public virtual byte[] SignData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm)
114
public virtual byte[] SignData(Stream data,
HashAlgorithmName
hashAlgorithm)
123
public bool VerifyData(byte[] data, byte[] signature,
HashAlgorithmName
hashAlgorithm)
130
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature,
HashAlgorithmName
hashAlgorithm)
142
public virtual bool VerifyData(Stream data, byte[] signature,
HashAlgorithmName
hashAlgorithm)
system\security\cryptography\dsacryptoserviceprovider.cs (4)
271
protected override byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm)
279
if (hashAlgorithm !=
HashAlgorithmName
.SHA1)
287
protected override byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm)
293
if (hashAlgorithm !=
HashAlgorithmName
.SHA1)
system\security\cryptography\HashAlgorithmName.cs (19)
25
public struct HashAlgorithmName : IEquatable<
HashAlgorithmName
>
31
/// Gets a <see cref="
HashAlgorithmName
" /> representing "MD5"
33
public static
HashAlgorithmName
MD5 { get { return new HashAlgorithmName("MD5"); } }
36
/// Gets a <see cref="
HashAlgorithmName
" /> representing "SHA1"
38
public static
HashAlgorithmName
SHA1 { get { return new HashAlgorithmName("SHA1"); } }
41
/// Gets a <see cref="
HashAlgorithmName
" /> representing "SHA256"
43
public static
HashAlgorithmName
SHA256 { get { return new HashAlgorithmName("SHA256"); } }
46
/// Gets a <see cref="
HashAlgorithmName
" /> representing "SHA384"
48
public static
HashAlgorithmName
SHA384 { get { return new HashAlgorithmName("SHA384"); } }
51
/// Gets a <see cref="
HashAlgorithmName
" /> representing "SHA512"
53
public static
HashAlgorithmName
SHA512 { get { return new HashAlgorithmName("SHA512"); } }
58
/// Gets a <see cref="
HashAlgorithmName
" /> representing a custom name.
85
return obj is
HashAlgorithmName
&& Equals((
HashAlgorithmName
)obj);
88
public bool Equals(
HashAlgorithmName
other)
99
public static bool operator ==(
HashAlgorithmName
left,
HashAlgorithmName
right)
104
public static bool operator !=(
HashAlgorithmName
left,
HashAlgorithmName
right)
system\security\cryptography\rfc2898derivebytes.cs (6)
49
: this(password, saltSize, iterations,
HashAlgorithmName
.SHA1)
57
public Rfc2898DeriveBytes(string password, int saltSize, int iterations,
HashAlgorithmName
hashAlgorithm) {
86
public Rfc2898DeriveBytes(string password, byte[] salt, int iterations) : this (password, salt, iterations,
HashAlgorithmName
.SHA1) {}
88
public Rfc2898DeriveBytes(string password, byte[] salt, int iterations,
HashAlgorithmName
hashAlgorithm)
92
public Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations) : this(password, salt, iterations,
HashAlgorithmName
.SHA1) { }
98
public Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations,
HashAlgorithmName
hashAlgorithm) {
system\security\cryptography\rsa.cs (10)
93
public virtual byte[] SignHash(byte[] hash,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
97
public virtual bool VerifyHash(byte[] hash, byte[] signature,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
101
protected virtual byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm) {
105
protected virtual byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm) {
109
public byte[] SignData(byte[] data,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
116
public virtual byte[] SignData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
137
public virtual byte[] SignData(Stream data,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
152
public bool VerifyData(byte[] data, byte[] signature,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
159
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
183
public bool VerifyData(Stream data, byte[] signature,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
system\security\cryptography\rsacryptoserviceprovider.cs (5)
520
protected override byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm) {
534
protected override byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm) {
554
private static int GetAlgorithmId(
HashAlgorithmName
hashAlgorithm) {
605
public override byte[] SignHash(byte[] hash,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
622
public override bool VerifyHash(byte[] hash, byte[] signature,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding) {
system\security\cryptography\RSAEncryptionPadding.cs (10)
14
private static readonly RSAEncryptionPadding s_pkcs1 = new RSAEncryptionPadding(RSAEncryptionPaddingMode.Pkcs1, default(
HashAlgorithmName
));
15
private static readonly RSAEncryptionPadding s_oaepSHA1 = CreateOaep(
HashAlgorithmName
.SHA1);
16
private static readonly RSAEncryptionPadding s_oaepSHA256 = CreateOaep(
HashAlgorithmName
.SHA256);
17
private static readonly RSAEncryptionPadding s_oaepSHA384 = CreateOaep(
HashAlgorithmName
.SHA384);
18
private static readonly RSAEncryptionPadding s_oaepSHA512 = CreateOaep(
HashAlgorithmName
.SHA512);
46
private
HashAlgorithmName
_oaepHashAlgorithm;
48
private RSAEncryptionPadding(RSAEncryptionPaddingMode mode,
HashAlgorithmName
oaepHashAlgorithm)
58
public static RSAEncryptionPadding CreateOaep(
HashAlgorithmName
hashAlgorithm)
80
/// If <see cref="Mode"/> is not <see cref="RSAEncryptionPaddingMode.Oaep"/>, then <see cref="
HashAlgorithmName
.Name" /> will be null.
82
public
HashAlgorithmName
OaepHashAlgorithm
system\security\cryptography\rsapkcs1signaturedeformatter.cs (2)
81
HashAlgorithmName
hashAlgorithmName = Utils.OidToHashAlgorithmName(_strOID);
97
_rsaOverridesVerifyHash = Utils.DoesRsaKeyOverride(_rsaKey, "VerifyHash", new Type[] { typeof(byte[]), typeof(byte[]), typeof(
HashAlgorithmName
), typeof(RSASignaturePadding) });
system\security\cryptography\rsapkcs1signatureformatter.cs (2)
72
HashAlgorithmName
hashAlgorithmName = Utils.OidToHashAlgorithmName(_strOID);
87
_rsaOverridesSignHash = Utils.DoesRsaKeyOverride(_rsaKey, "SignHash", new Type[] { typeof(byte[]), typeof(
HashAlgorithmName
), typeof(RSASignaturePadding) });
system\security\cryptography\utils.cs (5)
1003
internal static
HashAlgorithmName
OidToHashAlgorithmName(string oid)
1008
return
HashAlgorithmName
.SHA1;
1011
return
HashAlgorithmName
.SHA256;
1014
return
HashAlgorithmName
.SHA384;
1017
return
HashAlgorithmName
.SHA512;
system\security\cryptography\x509certificates\x509certificate.cs (2)
326
public virtual byte[] GetCertHash(
HashAlgorithmName
hashAlgorithm) {
360
public virtual string GetCertHashString(
HashAlgorithmName
hashAlgorithm)
System.Core (20)
System\Security\Cryptography\ECDiffieHellman.cs (4)
105
public byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey,
HashAlgorithmName
hashAlgorithm)
122
HashAlgorithmName
hashAlgorithm,
140
HashAlgorithmName
hashAlgorithm,
159
HashAlgorithmName
hashAlgorithm,
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
414
HashAlgorithmName
hashAlgorithm,
439
HashAlgorithmName
hashAlgorithm,
System\Security\Cryptography\ECDsa.cs (8)
93
protected virtual byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm) {
97
protected virtual byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm) {
101
public virtual byte[] SignData(byte[] data,
HashAlgorithmName
hashAlgorithm) {
108
public virtual byte[] SignData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm) {
118
public virtual byte[] SignData(Stream data,
HashAlgorithmName
hashAlgorithm) {
130
public bool VerifyData(byte[] data, byte[] signature,
HashAlgorithmName
hashAlgorithm) {
137
public virtual bool VerifyData(byte[] data, int offset, int count, byte[] signature,
HashAlgorithmName
hashAlgorithm) {
158
public bool VerifyData(Stream data, byte[] signature,
HashAlgorithmName
hashAlgorithm) {
System\Security\Cryptography\ECDsaCng.cs (2)
446
protected override byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm) {
459
protected override byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm) {
System\Security\Cryptography\RsaCng.cs (4)
160
protected override byte[] HashData(byte[] data, int offset, int count,
HashAlgorithmName
hashAlgorithm)
175
protected override byte[] HashData(Stream data,
HashAlgorithmName
hashAlgorithm)
463
public override byte[] SignHash(byte[] hash,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding)
499
public override bool VerifyHash(byte[] hash, byte[] signature,
HashAlgorithmName
hashAlgorithm, RSASignaturePadding padding)
System.Data (2)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (2)
349
return rsaCngProvider.SignData(dataToSign,
HashAlgorithmName
.SHA256, RSASignaturePadding.Pkcs1);
365
return rsaCngProvider.VerifyData(dataToVerify, signature,
HashAlgorithmName
.SHA256, RSASignaturePadding.Pkcs1);