100 references to SHA256
aspire (3)
Certificates\CertificateGeneration\CertificateManager.cs (3)
685keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 694keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 951var request = new CertificateRequest(subject, key, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
751certThumbprint ??= context.ClientCertificate.GetCertHashString(HashAlgorithmName.SHA256);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
336HashAlgorithmName.SHA256,
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
336HashAlgorithmName.SHA256,
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
2879HashAlgorithmName.SHA256,
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
904var request = new CertificateRequest("CN=test", rsa, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
Aspire.Hosting.Tests (4)
DistributedApplicationTests.cs (1)
776var request = new CertificateRequest("CN=test", rsa, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
ExecutionConfigurationGathererTests.cs (3)
505pkcs12Builder.SealWithMac(password, HashAlgorithmName.SHA256, iterationCount: 2048); 780HashAlgorithmName.SHA256, 803HashAlgorithmName.SHA256,
dotnet (2)
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (2)
110if (_firstPartyCertificateThumbprints.Contains(firstCert.GetCertHashString(HashAlgorithmName.SHA256))) 117certificateChain[1].GetCertHashString(HashAlgorithmName.SHA256)))
dotnet-dev-certs (3)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 954var request = new CertificateRequest(subject, key, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
ILAssembler (1)
GrammarVisitor.cs (1)
253using var hash = IncrementalHash.CreateHash(System.Security.Cryptography.HashAlgorithmName.SHA256);
ILCompiler.ReadyToRun (1)
Compiler\CryptographicHashProvider.cs (1)
125return HashAlgorithmName.SHA256;
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\ResourceCollectionUrlEndpoint.cs (1)
115var incrementalHash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256);
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
PBKDF2\NetCorePbkdf2Provider.cs (1)
31algorithmName = HashAlgorithmName.SHA256;
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 954var request = new CertificateRequest(subject, key, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
Microsoft.AspNetCore.Identity (5)
Passkeys\CredentialPublicKey.cs (5)
232COSEAlgorithmIdentifier.ES256 => HashAlgorithmName.SHA256, 235COSEAlgorithmIdentifier.PS256 => HashAlgorithmName.SHA256, 238COSEAlgorithmIdentifier.RS256 => HashAlgorithmName.SHA256, 241COSEAlgorithmIdentifier.ES256K => HashAlgorithmName.SHA256, 243(COSEAlgorithmIdentifier)11 => HashAlgorithmName.SHA256,
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Utilities\HashAlgorithmOperations.cs (1)
14=> HashAlgorithmName.SHA256.Name;
Microsoft.AspNetCore.Server.Kestrel.Core (3)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 954var request = new CertificateRequest(subject, key, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
Microsoft.AspNetCore.Testing (1)
FakeSslCertificateFactory.cs (1)
27HashAlgorithmName.SHA256,
Microsoft.CodeAnalysis (2)
CryptographicHashProvider.cs (1)
117return HashAlgorithmName.SHA256;
Emit\EmitOptions.cs (1)
248PdbChecksumAlgorithm = pdbChecksumAlgorithm ?? HashAlgorithmName.SHA256;
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1561pdbChecksumAlgorithm: HashAlgorithmName.SHA256,
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\DefaultRazorCSharpLoweringPhase.cs (1)
101$"{HashAlgorithmName.SHA1.Name} {HashAlgorithmName.SHA256.Name}",
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1482pdbChecksumAlgorithm:=HashAlgorithmName.SHA256) ' TODO: set from /checksumalgorithm (see https://github.com/dotnet/roslyn/issues/24735)
Microsoft.DotNet.HotReload.Watch (1)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\CertGenerator.cs (1)
21HashAlgorithmName.SHA256,
Microsoft.Extensions.FileProviders.Physical (1)
PollingWildCardChangeToken.cs (1)
120using (var sha256 = IncrementalHash.CreateHash(HashAlgorithmName.SHA256))
Microsoft.NET.Build.Containers (1)
Layer.cs (1)
241sha256Hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256);
NuGet.Common (1)
CryptoHashUtility.cs (1)
246return System.Security.Cryptography.HashAlgorithmName.SHA256;
RepoTasks (3)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (3)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1)); 954var request = new CertificateRequest(subject, key, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
System.Security.Cryptography (37)
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
220if (algName == HashAlgorithmName.SHA256)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
38hashAlgorithm = HashAlgorithmName.SHA256;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaManaged.cs (11)
564new RsaAlgorithm(2048, HashAlgorithmName.SHA256, RSASignaturePadding.Pss), 566HashAlgorithmName.SHA256) 572new RsaAlgorithm(2048, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1), 574HashAlgorithmName.SHA256) 588ECDsaAlgorithm.CreateP256(HashAlgorithmName.SHA256), 590HashAlgorithmName.SHA256) 596new RsaAlgorithm(3072, HashAlgorithmName.SHA256, RSASignaturePadding.Pss), 604new RsaAlgorithm(3072, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1), 628ECDsaAlgorithm.CreateP256(HashAlgorithmName.SHA256), 644ECDsaAlgorithm.CreateBrainpoolP256r1(HashAlgorithmName.SHA256), 684new RsaAlgorithm(3072, HashAlgorithmName.SHA256, RSASignaturePadding.Pss),
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
310if (prf == HashAlgorithmName.SHA256) 792Oids.HmacWithSha256 => HashAlgorithmName.SHA256,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
24(HashAlgorithmName.SHA256, 256, 512),
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.SignVerify.cs (1)
21KeyValuePair.Create(HashAlgorithmName.SHA256, 256 / 8),
System\Security\Cryptography\CapiHelper.Windows.cs (1)
1120CapiHelper.CALG_SHA_256 => HashAlgorithmName.SHA256,
System\Security\Cryptography\HashAlgorithmName.cs (1)
152value = SHA256;
System\Security\Cryptography\Helpers.cs (2)
23new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 2000); 364else if (hashAlgorithmName == HashAlgorithmName.SHA256)
System\Security\Cryptography\Rfc2898DeriveBytes.cs (1)
256hashAlgorithm != HashAlgorithmName.SHA256 &&
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" />, 327hashAlgorithmName == HashAlgorithmName.SHA256.Name ||
System\Security\Cryptography\RSAEncryptionPadding.cs (1)
26public static RSAEncryptionPadding OaepSHA256 { get; } = CreateOaep(HashAlgorithmName.SHA256);
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
21_incrementalHash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
341hashAlg = HashAlgorithmName.SHA256;
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (1)
25if (hashAlgorithm == HashAlgorithmName.SHA256)
System\Security\Cryptography\X509Certificates\RSAPkcs1X509SignatureGenerator.cs (1)
51if (hashAlgorithm == HashAlgorithmName.SHA256)
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
38if (hashAlgorithm == HashAlgorithmName.SHA256)
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
190return HashSubjectPublicKeyInfo(key, HashAlgorithmName.SHA256); 196return HashSubjectPublicKeyLeft160Bits(key, HashAlgorithmName.SHA256);
System.Security.Cryptography.Cose (6)
System\Security\Cryptography\Cose\CoseKey.cs (6)
75CoseAlgorithm.ES256 => new CoseKey(ecdsaKey, HashAlgorithmName.SHA256), 85CoseAlgorithm.RS256 => new CoseKey(rsaKey, RSASignaturePadding.Pkcs1, HashAlgorithmName.SHA256), 88CoseAlgorithm.PS256 => new CoseKey(rsaKey, RSASignaturePadding.Pss, HashAlgorithmName.SHA256), 276nameof(HashAlgorithmName.SHA256) => CoseAlgorithm.PS256, 287nameof(HashAlgorithmName.SHA256) => CoseAlgorithm.RS256, 298nameof(HashAlgorithmName.SHA256) => CoseAlgorithm.ES256,
System.Security.Cryptography.Pkcs (10)
Internal\Cryptography\PkcsHelpers.cs (1)
48return HashAlgorithmName.SHA256;
src\runtime\src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
220if (algName == HashAlgorithmName.SHA256)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\PfxAsn.manual.cs (1)
38hashAlgorithm = HashAlgorithmName.SHA256;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (2)
310if (prf == HashAlgorithmName.SHA256) 792Oids.HmacWithSha256 => HashAlgorithmName.SHA256,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
24(HashAlgorithmName.SHA256, 256, 512),
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
19lookup.Add(Oids.DsaWithSha256, new DSACmsSignature(Oids.DsaWithSha256, HashAlgorithmName.SHA256));
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
17lookup.Add(Oids.ECDsaWithSha256, new ECDsaCmsSignature(Oids.ECDsaWithSha256, HashAlgorithmName.SHA256));
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (2)
20lookup.Add(Oids.RsaPkcs1Sha256, new RSAPkcs1CmsSignature(Oids.RsaPkcs1Sha256, HashAlgorithmName.SHA256)); 365else if (hashAlgorithmName == HashAlgorithmName.SHA256)
System.ServiceModel.Primitives.Tests (1)
ServiceModel\X509CertificateEndpointIdentityTest.cs (1)
99HashAlgorithmName.SHA256,