19 instantiations of PbeParameters
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 (3)
System\Security\Cryptography\Helpers.cs (2)
20new PbeParameters(PbeEncryptionAlgorithm.TripleDes3KeyPkcs12, HashAlgorithmName.SHA1, 2000); 23new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 2000);
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
26private static readonly PbeParameters s_storePbeParameters = new 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));
120 references to PbeParameters
netstandard (1)
netstandard.cs (1)
1903[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeParameters))]
System.Security.Cryptography (97)
src\libraries\Common\src\System\Security\Cryptography\IImportExportShape.cs (6)
26byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters); 28ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten); 29string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters); 31byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters); 33ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten); 34string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (5)
161PbeParameters pbeParameters) 173PbeParameters pbeParameters) 186PbeParameters pbeParameters) 387PbeParameters pbeParameters) 423PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (8)
424public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 466public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 516PbeParameters pbeParameters, 568PbeParameters pbeParameters, 611PbeParameters pbeParameters) 656PbeParameters pbeParameters) 1298private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1330private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
24PbeParameters pbeParameters, 232PbeParameters pbeParameters, 315PbeParameters pbeParameters,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
29PbeParameters pbeParameters) 41PbeParameters pbeParameters) 79PbeParameters pbeParameters) 91PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (5)
129PbeParameters pbeParameters) 141PbeParameters pbeParameters) 160PbeParameters pbeParameters) 172PbeParameters pbeParameters) 377PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
107public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 126public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 151PbeParameters pbeParameters, 172PbeParameters pbeParameters,
System\Security\Cryptography\AsymmetricAlgorithm.cs (18)
116PbeParameters pbeParameters) 126PbeParameters pbeParameters) 144PbeParameters pbeParameters, 153PbeParameters pbeParameters, 424/// An implementation for <see cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)" /> or 425/// <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)" /> has not been provided. 447public unsafe string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters) 477/// An implementation for <see cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, PbeParameters)" /> or 478/// <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, PbeParameters, Span{byte}, out int)" /> has not been provided. 495public unsafe string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 665/// An implementation for <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)" /> 688public bool TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<char> destination, out int charsWritten) 693PbeParameters pbeParameters, 732/// An implementation for <see cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{byte}, PbeParameters, Span{byte}, out int)" /> 750public bool TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<char> destination, out int charsWritten) 755PbeParameters pbeParameters, 773PbeParameters pbeParameters, 781PbeParameters pbeParameters,
System\Security\Cryptography\DSA.cs (2)
923PbeParameters pbeParameters, 946PbeParameters pbeParameters,
System\Security\Cryptography\DSAWrapper.cs (4)
70PbeParameters pbeParameters, 77PbeParameters pbeParameters, 141PbeParameters pbeParameters) => 146PbeParameters pbeParameters) =>
System\Security\Cryptography\ECAlgorithm.cs (2)
130PbeParameters pbeParameters, 202PbeParameters pbeParameters,
System\Security\Cryptography\ECDiffieHellmanWrapper.cs (4)
67PbeParameters pbeParameters, 74PbeParameters pbeParameters, 140PbeParameters pbeParameters) => 145PbeParameters pbeParameters) =>
System\Security\Cryptography\ECDsaWrapper.cs (4)
105PbeParameters pbeParameters) => 110PbeParameters pbeParameters) => 133PbeParameters pbeParameters, 140PbeParameters pbeParameters,
System\Security\Cryptography\Helpers.cs (4)
19internal static readonly PbeParameters Windows3desPbe = 22internal static readonly PbeParameters WindowsAesPbe = 398internal static PbeParameters MapExportParametersToPbeParameters(Pkcs12ExportPbeParameters exportParameters) 416internal static void ThrowIfInvalidPkcs12ExportParameters(PbeParameters exportParameters)
System\Security\Cryptography\PemKeyHelpers.cs (2)
16PbeParameters pbeParameters, 23PbeParameters pbeParameters,
System\Security\Cryptography\RSA.cs (2)
803PbeParameters pbeParameters, 826PbeParameters pbeParameters,
System\Security\Cryptography\RSAWrapper.cs (4)
30PbeParameters pbeParameters) => 35PbeParameters pbeParameters) => 159PbeParameters pbeParameters, 166PbeParameters pbeParameters,
System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs (1)
28byte[] ExportPkcs12(PbeParameters exportParameters, SafePasswordHandle password);
System\Security\Cryptography\X509Certificates\IExportPal.cs (1)
12byte[] ExportPkcs12(PbeParameters exportParameters, SafePasswordHandle password);
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
26private static readonly PbeParameters s_storePbeParameters = new PbeParameters(
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
23PbeParameters pbeParameters,
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
849public byte[] ExportPkcs12(PbeParameters exportParameters, SafePasswordHandle password)
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (3)
42PbeParameters pbeParameters, 66PbeParameters pbeParameters = Helpers.MapExportParametersToPbeParameters(exportParameters); 89public byte[] ExportPkcs12(PbeParameters exportParameters, SafePasswordHandle password)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (4)
397/// <paramref name="exportParameters"/> specifies a <see cref="PbeParameters.HashAlgorithm"/> value that is 398/// not supported for the <see cref="PbeParameters.EncryptionAlgorithm"/> value. 403/// <see cref="PbeParameters.EncryptionAlgorithm"/>. 406public byte[] ExportPkcs12(PbeParameters exportParameters, string? password)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (4)
159/// <paramref name="exportParameters"/> specifies a <see cref="PbeParameters.HashAlgorithm"/> value that is 160/// not supported for the <see cref="PbeParameters.EncryptionAlgorithm"/> value. 165/// <see cref="PbeParameters.EncryptionAlgorithm"/>. 168public byte[] ExportPkcs12(PbeParameters exportParameters, string? password)
System.Security.Cryptography.Pkcs (21)
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (5)
161PbeParameters pbeParameters) 173PbeParameters pbeParameters) 186PbeParameters pbeParameters) 387PbeParameters pbeParameters) 423PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
24PbeParameters pbeParameters, 232PbeParameters pbeParameters, 315PbeParameters pbeParameters,
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
29PbeParameters pbeParameters) 41PbeParameters pbeParameters) 79PbeParameters pbeParameters) 91PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (5)
129PbeParameters pbeParameters) 141PbeParameters pbeParameters) 160PbeParameters pbeParameters) 172PbeParameters pbeParameters) 377PbeParameters pbeParameters)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
107public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 126public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 151PbeParameters pbeParameters, 172PbeParameters pbeParameters,
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeParameters))]