78 references to SHA1
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
PBKDF2\NetCorePbkdf2Provider.cs (1)
28algorithmName = HashAlgorithmName.SHA1;
Microsoft.CodeAnalysis (3)
CryptographicHashProvider.cs (1)
102return HashAlgorithmName.SHA1;
PEWriter\SigningUtilities.cs (2)
28var signature = rsa.SignHash(hash, HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1); 36using (var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA1))
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\ILValidation.cs (2)
110if (!rsa.VerifyHash(hash, reversedSignature, HashAlgorithmName.SHA1, RSASignaturePadding.Pkcs1)) 150using (var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA1))
System.Security.Cryptography (51)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
34hashAlgorithm = HashAlgorithmName.SHA1;
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanDerivation.cs (1)
153HashAlgorithmName.SHA1,
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
44if (pbeParameters.HashAlgorithm != HashAlgorithmName.SHA1) 104digestAlgorithmName = HashAlgorithmName.SHA1; 108digestAlgorithmName = HashAlgorithmName.SHA1; 112digestAlgorithmName = HashAlgorithmName.SHA1; 117digestAlgorithmName = HashAlgorithmName.SHA1; 123digestAlgorithmName = HashAlgorithmName.SHA1; 129digestAlgorithmName = HashAlgorithmName.SHA1; 294else if (prf == HashAlgorithmName.SHA1) 354Debug.Assert(pbeParameters.HashAlgorithm == HashAlgorithmName.SHA1); 750Oids.HmacWithSha1 => HashAlgorithmName.SHA1,
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
23(HashAlgorithmName.SHA1, 160, 512),
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (1)
924HashAlgorithmName hashAlgorithm = HashAlgorithmName.SHA1;
System\Security\Cryptography\CapiHelper.Unix.cs (4)
27return HashAlgorithmName.SHA1; 44SHA1 => HashAlgorithmName.SHA1, 58Oids.Sha1 => HashAlgorithmName.SHA1, 70return HashAlgorithmName.SHA1;
System\Security\Cryptography\DSACryptoServiceProvider.Unix.cs (13)
103if (hashAlgorithm != HashAlgorithmName.SHA1) 111if (hashAlgorithm != HashAlgorithmName.SHA1) 119if (hashAlgorithm != HashAlgorithmName.SHA1) 187return _impl.SignData(buffer, HashAlgorithmName.SHA1); 192return _impl.SignData(buffer, offset, count, HashAlgorithmName.SHA1); 197return _impl.SignData(inputStream, HashAlgorithmName.SHA1); 205if (hashAlgorithm != HashAlgorithmName.SHA1) 213if (hashAlgorithm != HashAlgorithmName.SHA1) 221if (hashAlgorithm != HashAlgorithmName.SHA1) 245_impl.VerifyData(rgbData, rgbSignature, HashAlgorithmName.SHA1); 263if (hashAlgorithm != HashAlgorithmName.SHA1) 271if (hashAlgorithm != HashAlgorithmName.SHA1) 279if (hashAlgorithm != HashAlgorithmName.SHA1)
System\Security\Cryptography\HashAlgorithmName.cs (1)
149value = SHA1;
System\Security\Cryptography\Helpers.cs (1)
353if (hashAlgorithmName == HashAlgorithmName.SHA1)
System\Security\Cryptography\Rfc2898DeriveBytes.cs (4)
34: this(password, salt, iterations, HashAlgorithmName.SHA1) 51: this(password, salt, iterations, HashAlgorithmName.SHA1) 73: this(password, saltSize, iterations, HashAlgorithmName.SHA1) 252if (hashAlgorithm != HashAlgorithmName.SHA1 &&
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (7)
37/// are <see cref="HashAlgorithmName.SHA1" />, <see cref="HashAlgorithmName.SHA256" />, 72/// are <see cref="HashAlgorithmName.SHA1" />, <see cref="HashAlgorithmName.SHA256" />, 109/// are <see cref="HashAlgorithmName.SHA1" />, <see cref="HashAlgorithmName.SHA256" />, 148/// are <see cref="HashAlgorithmName.SHA1" />, <see cref="HashAlgorithmName.SHA256" />, 191/// are <see cref="HashAlgorithmName.SHA1" />, <see cref="HashAlgorithmName.SHA256" />, 236/// are <see cref="HashAlgorithmName.SHA1" />, <see cref="HashAlgorithmName.SHA256" />, 326if (hashAlgorithmName == HashAlgorithmName.SHA1.Name ||
System\Security\Cryptography\RSAEncryptionPadding.cs (1)
21public static RSAEncryptionPadding OaepSHA1 { get; } = CreateOaep(HashAlgorithmName.SHA1);
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
21_incrementalHash = IncrementalHash.CreateHash(HashAlgorithmName.SHA1);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
339hashAlg = HashAlgorithmName.SHA1;
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
52if (!certificate.TryGetCertHash(HashAlgorithmName.SHA1, hashBuffer, out int hashBytesWritten) ||
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
21new PbeParameters(PbeEncryptionAlgorithm.TripleDes3KeyPkcs12, HashAlgorithmName.SHA1, 2000); 492HashAlgorithmName.SHA1,
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
188return HashSubjectPublicKeyInfo(key, HashAlgorithmName.SHA1);
System.Security.Cryptography.Pkcs (21)
Internal\Cryptography\PkcsHelpers.cs (2)
62return HashAlgorithmName.SHA1; 92if (algName == HashAlgorithmName.SHA1)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
34hashAlgorithm = HashAlgorithmName.SHA1;
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (10)
44if (pbeParameters.HashAlgorithm != HashAlgorithmName.SHA1) 104digestAlgorithmName = HashAlgorithmName.SHA1; 108digestAlgorithmName = HashAlgorithmName.SHA1; 112digestAlgorithmName = HashAlgorithmName.SHA1; 117digestAlgorithmName = HashAlgorithmName.SHA1; 123digestAlgorithmName = HashAlgorithmName.SHA1; 129digestAlgorithmName = HashAlgorithmName.SHA1; 294else if (prf == HashAlgorithmName.SHA1) 354Debug.Assert(pbeParameters.HashAlgorithm == HashAlgorithmName.SHA1); 750Oids.HmacWithSha1 => HashAlgorithmName.SHA1,
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
23(HashAlgorithmName.SHA1, 160, 512),
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (2)
19lookup.Add(Oids.DsaWithSha1, new DSACmsSignature(Oids.DsaWithSha1, HashAlgorithmName.SHA1)); 133hashAlgorithmName == HashAlgorithmName.SHA1 ? Oids.DsaWithSha1 :
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
16lookup.Add(Oids.ECDsaWithSha1, new ECDsaCmsSignature(Oids.ECDsaWithSha1, HashAlgorithmName.SHA1)); 135hashAlgorithmName == HashAlgorithmName.SHA1 ? Oids.ECDsaWithSha1 :
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (2)
19lookup.Add(Oids.RsaPkcs1Sha1, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha1, HashAlgorithmName.SHA1)); 346if (hashAlgorithmName == HashAlgorithmName.SHA1)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (1)
494if (!signerCert.TryGetCertHash(HashAlgorithmName.SHA1, thumbprint, out int written) ||