60 references to PbeEncryptionAlgorithm
aspire (2)
Certificates\CertificateGeneration\CertificateManager.cs (2)
685keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 694keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
2788PbeEncryptionAlgorithm.Aes256Cbc,
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Microsoft.AspNetCore.Server.Kestrel.Tests (4)
KestrelConfigurationLoaderTests.cs (4)
948: key.ExportEncryptedPkcs8PrivateKeyPem(password.AsSpan(), new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100_000)); 956: mlDsa.ExportEncryptedPkcs8PrivateKeyPem(password.AsSpan(), new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100_000)); 963: slhDsa.ExportEncryptedPkcs8PrivateKeyPem(password.AsSpan(), new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100_000)); 970: compositeMLDsa.ExportEncryptedPkcs8PrivateKeyPem(password.AsSpan(), new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100_000));
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
TestCertificateManager.cs (2)
167keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 173keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Microsoft.Bcl.Cryptography (1)
Microsoft.Bcl.Cryptography.Forwards.cs (1)
25[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeEncryptionAlgorithm))]
netstandard (1)
netstandard.cs (1)
1902[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeEncryptionAlgorithm))]
RepoTasks (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
System.Security.Cryptography (19)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (9)
35PbeEncryptionAlgorithm encryptionAlgorithm = pbeParameters.EncryptionAlgorithm; 39case PbeEncryptionAlgorithm.Aes128Cbc: 40case PbeEncryptionAlgorithm.Aes192Cbc: 41case PbeEncryptionAlgorithm.Aes256Cbc: 43case PbeEncryptionAlgorithm.TripleDes3KeyPkcs12: 253case PbeEncryptionAlgorithm.Aes128Cbc: 258case PbeEncryptionAlgorithm.Aes192Cbc: 263case PbeEncryptionAlgorithm.Aes256Cbc: 268case PbeEncryptionAlgorithm.TripleDes3KeyPkcs12:
src\libraries\Common\src\System\Security\Cryptography\PbeParameters.cs (2)
17public PbeEncryptionAlgorithm EncryptionAlgorithm { get; } 55PbeEncryptionAlgorithm encryptionAlgorithm,
System\Security\Cryptography\ECAlgorithm.cs (1)
118/// <paramref name="pbeParameters" /> indicates that <see cref="PbeEncryptionAlgorithm.TripleDes3KeyPkcs12" />
System\Security\Cryptography\Helpers.cs (6)
20new PbeParameters(PbeEncryptionAlgorithm.TripleDes3KeyPkcs12, HashAlgorithmName.SHA1, 2000); 23new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 2000); 419PbeEncryptionAlgorithm.Aes128Cbc or PbeEncryptionAlgorithm.Aes192Cbc or PbeEncryptionAlgorithm.Aes256Cbc) 435else if (exportParameters.EncryptionAlgorithm is PbeEncryptionAlgorithm.TripleDes3KeyPkcs12)
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
27PbeEncryptionAlgorithm.Aes256Cbc,
System.Security.Cryptography.Pkcs (9)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (9)
35PbeEncryptionAlgorithm encryptionAlgorithm = pbeParameters.EncryptionAlgorithm; 39case PbeEncryptionAlgorithm.Aes128Cbc: 40case PbeEncryptionAlgorithm.Aes192Cbc: 41case PbeEncryptionAlgorithm.Aes256Cbc: 43case PbeEncryptionAlgorithm.TripleDes3KeyPkcs12: 253case PbeEncryptionAlgorithm.Aes128Cbc: 258case PbeEncryptionAlgorithm.Aes192Cbc: 263case PbeEncryptionAlgorithm.Aes256Cbc: 268case PbeEncryptionAlgorithm.TripleDes3KeyPkcs12:
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
21[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeEncryptionAlgorithm))]
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
688keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 697keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));