4 overrides of ExportEncryptedPkcs8PrivateKey
System.Security.Cryptography (4)
System\Security\Cryptography\DSAWrapper.cs (1)
144public override byte[] ExportEncryptedPkcs8PrivateKey(
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
143public override byte[] ExportEncryptedPkcs8PrivateKey(
System\Security\Cryptography\ECDsaWrapper.cs (1)
108public override byte[] ExportEncryptedPkcs8PrivateKey(
System\Security\Cryptography\RSAWrapper.cs (1)
33public override byte[] ExportEncryptedPkcs8PrivateKey(
25 references to ExportEncryptedPkcs8PrivateKey
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
System.Security.Cryptography (8)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
182byte[] encryptedPkcs8 = key.ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
System\Security\Cryptography\AsymmetricAlgorithm.cs (2)
424/// An implementation for <see cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)" /> or 449byte[] exported = ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
System\Security\Cryptography\DSAWrapper.cs (1)
147_wrapped.ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (1)
146_wrapped.ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
System\Security\Cryptography\ECDsaWrapper.cs (1)
111_wrapped.ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
System\Security\Cryptography\RSAWrapper.cs (1)
36_wrapped.ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
42return alg.ExportEncryptedPkcs8PrivateKey(password, s_windowsPbe);
System.Security.Cryptography.Pkcs (1)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (1)
182byte[] encryptedPkcs8 = key.ExportEncryptedPkcs8PrivateKey(password, pbeParameters);
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));
Templates.Tests (2)
src\Shared\CertificateGeneration\CertificateManager.cs (2)
541keyBytes = key.ExportEncryptedPkcs8PrivateKey(password, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 100000)); 550keyBytes = key.ExportEncryptedPkcs8PrivateKey(string.Empty, new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 1));