3 types derived from SHA1
System.Security.Cryptography (3)
System\Security\Cryptography\SHA1.cs (1)
238private sealed class Implementation : SHA1
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
14public sealed class SHA1CryptoServiceProvider : SHA1
System\Security\Cryptography\SHA1Managed.cs (1)
12public sealed class SHA1Managed : SHA1
67 references to SHA1
Aspire.Hosting (1)
Utils\ImageNameGenerator.cs (1)
15var hash = SHA1.HashData(bytes);
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
695_dnHash = SHA1.HashData(_cert.SubjectName.RawData);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\HandshakeHelpers.cs (1)
31byte[] hashedBytes = SHA1.HashData(mergedBytes);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
ChecksumValidator.cs (2)
109hashData = SHA1.HashData; 110algorithmName = nameof(SHA1);
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestRazorCompiledItem.cs (1)
49var bytes = SHA1.HashData(Encoding.UTF8.GetBytes(content));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
695_dnHash = SHA1.HashData(_cert.SubjectName.RawData);
Microsoft.AspNetCore.WebSockets (1)
HandshakeHelpers.cs (1)
65var written = SHA1.HashData(mergedBytes, hashedBytes);
Microsoft.Build.Tasks.Core (5)
ManifestUtil\mansign2.cs (4)
590using (SHA1 sha1 = SHA1.Create( 653using (SHA1 sha1 = SHA1.Create(
ManifestUtil\Util.cs (1)
250hashAlg = SHA1.Create(
Microsoft.CodeAnalysis (7)
CryptographicHashProvider.cs (6)
86return SHA1.Create(); 119return SHA1.Create(); 175using (var hashProvider = SHA1.Create()) 192using (var hashProvider = SHA1.Create())
Text\SourceHashAlgorithms.cs (1)
54SourceHashAlgorithm.Sha1 => SHA1.Create(),
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\Text\SourceHashAlgorithms.cs (1)
54SourceHashAlgorithm.Sha1 => SHA1.Create(),
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
1610var sha1 = SHA1.Create();
Microsoft.DotNet.Build.Tasks.Installers (4)
src\GenerateGuidFromName.cs (2)
24using (SHA1 hasher = SHA1.Create()) // lgtm [cs/weak-crypto] Algorithm is required by UUIDv5 spec
src\RpmBuilder.cs (2)
407using (SHA1 sha1 = SHA1.Create())
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
921[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SHA1))]
netstandard (1)
netstandard.cs (1)
1925[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SHA1))]
PresentationBuildTasks (1)
MS\Internal\Tasks\TaskFileService.cs (1)
187hashAlgorithm = SHA1.Create();
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\GuidGenerator.cs (1)
138return encode_guid(SHA1.HashData(data));
System.Configuration.ConfigurationManager (2)
src\libraries\Common\src\System\Security\IdentityHelper.cs (2)
68using (SHA1 sha1 = SHA1.Create())
System.IO.IsolatedStorage (2)
src\libraries\Common\src\System\Security\IdentityHelper.cs (2)
68using (SHA1 sha1 = SHA1.Create())
System.Net.HttpListener (1)
System\Net\WebSockets\HttpWebSocket.cs (1)
25byte[] hash = SHA1.HashData(toHash);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
502SHA1.TryHashData(bytes, bytes, out int bytesWritten);
System.Private.CoreLib.Generators (2)
EventSourceGenerator.Parser.cs (2)
115using (SHA1 sha = SHA1.Create())
System.Security.Cryptography (20)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
81digestLengthInBytes = SHA1.HashSizeInBytes;
System\Security\Cryptography\CapiHelper.Unix.cs (2)
44SHA1 => HashAlgorithmName.SHA1, 69if (typeof(SHA1).IsAssignableFrom(hashAlgType))
System\Security\Cryptography\CryptographicOperations.cs (1)
780return SHA1.HashSizeInBytes;
System\Security\Cryptography\HashAlgorithmNames.cs (1)
33if (hashAlgorithm is SHA1)
System\Security\Cryptography\HMACCommon.cs (1)
95modifiedKey = SHA1.HashData(key);
System\Security\Cryptography\SHA1.cs (3)
37public static new SHA1 Create() => new Implementation(); 41public static new SHA1? Create(string hashName) => (SHA1?)CryptoConfig.CreateFromName(hashName);
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (6)
45if (thumbprint.Length != SHA1.HashSizeInBytes) 50Span<byte> hashBuffer = stackalloc byte[SHA1.HashSizeInBytes]; 53hashBytesWritten != SHA1.HashSizeInBytes) 295certKeyId = stackalloc byte[SHA1.HashSizeInBytes]; 297int written = SHA1.HashData(publicKeyInfoBytes, certKeyId); 298Debug.Assert(written == SHA1.HashSizeInBytes);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (5)
168return SHA1.HashData(key.EncodedKeyValue.RawData); 172Span<byte> sha1 = stackalloc byte[SHA1.HashSizeInBytes]; 173int written = SHA1.HashData(key.EncodedKeyValue.RawData, sha1); 174Debug.Assert(written == SHA1.HashSizeInBytes); 180byte[] shortSha1 = sha1.Slice(SHA1.HashSizeInBytes - 8).ToArray();
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
54[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.SHA1))]
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\DSASignatureDescription.cs (1)
47return SHA1.Create();
System\Security\Cryptography\Xml\RSAPKCS1SHA1SignatureDescription.cs (1)
19return SHA1.Create();
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (4)
24using (var sha = SHA1.Create()) 103using (var sha = SHA1.Create())
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
398return SHA1.Create(); // CodeQL [SM02196] Here SHA1 is not used for cryptographic purposes, it's for compatibility.