14 instantiations of PbeParameters
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)
2877new PbeParameters(
dotnet-dev-certs (2)
src\aspnetcore\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\aspnetcore\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\aspnetcore\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));
RepoTasks (2)
src\aspnetcore\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 (3)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (1)
21new PbeParameters(
System\Security\Cryptography\Helpers.cs (2)
21new PbeParameters(PbeEncryptionAlgorithm.TripleDes3KeyPkcs12, HashAlgorithmName.SHA1, 2000); 24new PbeParameters(PbeEncryptionAlgorithm.Aes256Cbc, HashAlgorithmName.SHA256, 2000);
190 references to PbeParameters
Microsoft.Bcl.Cryptography (1)
Microsoft.Bcl.Cryptography.Forwards.cs (1)
26[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeParameters))]
netstandard (1)
netstandard.cs (1)
1903[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeParameters))]
System.Security.Cryptography (166)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngPkcs8.cs (8)
20private static readonly PbeParameters s_platformParameters = 26internal static bool IsPlatformScheme(PbeParameters pbeParameters) 37PbeParameters pbeParameters) 59PbeParameters pbeParameters, 80PbeParameters pbeParameters) 89PbeParameters pbeParameters, 274PbeParameters pbeParameters) 333PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (14)
979/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/> 985PbeParameters pbeParameters) 1022PbeParameters pbeParameters) 1066PbeParameters pbeParameters) 1078/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/> 1082public byte[] ExportEncryptedPkcs8PrivateKey(string password, PbeParameters pbeParameters) 1118public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1163public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1181/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/> 1187PbeParameters pbeParameters, 1234PbeParameters pbeParameters, 1294PbeParameters pbeParameters, 1798private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1813private AsnWriter WriteEncryptedPkcs8PrivateKeyToAsnWriter(ReadOnlySpan<char> password, PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (4)
77PbeParameters pbeParameters) 89PbeParameters pbeParameters) 111PbeParameters pbeParameters, 132PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (4)
130PbeParameters pbeParameters) 142PbeParameters pbeParameters) 164PbeParameters pbeParameters, 185PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (4)
167PbeParameters pbeParameters) 179PbeParameters pbeParameters) 201PbeParameters pbeParameters, 222PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (5)
192PbeParameters pbeParameters) 204PbeParameters pbeParameters) 217PbeParameters pbeParameters) 406PbeParameters pbeParameters) 442PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (14)
865public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 912public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 930/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/> 934public byte[] ExportEncryptedPkcs8PrivateKey(string password, PbeParameters pbeParameters) 979PbeParameters pbeParameters, 1039PbeParameters pbeParameters, 1059/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/> 1065PbeParameters pbeParameters, 1104PbeParameters pbeParameters) 1148PbeParameters pbeParameters) 1160/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/> 1166PbeParameters pbeParameters) 2082private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 2111private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (11)
814PbeParameters pbeParameters, 867PbeParameters pbeParameters, 913PbeParameters pbeParameters, 955public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 995public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1035public byte[] ExportEncryptedPkcs8PrivateKey(string password, PbeParameters pbeParameters) 1069public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 1110public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1151public string ExportEncryptedPkcs8PrivateKeyPem(string password, PbeParameters pbeParameters) 1766PbeParameters pbeParameters, 1846PbeParameters pbeParameters);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
37PbeParameters pbeParameters, 260PbeParameters pbeParameters, 343PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PbeParameters.cs (1)
40/// Initializes a new instance of the <see cref="PbeParameters" /> class.
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
29PbeParameters pbeParameters) 41PbeParameters pbeParameters) 73PbeParameters pbeParameters) 85PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (5)
128PbeParameters pbeParameters) 140PbeParameters pbeParameters) 156PbeParameters pbeParameters) 168PbeParameters pbeParameters) 417PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
101public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 117public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 139PbeParameters pbeParameters, 157PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (4)
95PbeParameters pbeParameters) 107PbeParameters pbeParameters) 129PbeParameters pbeParameters, 150PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (14)
735public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 782public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 800/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters)"/> 804public byte[] ExportEncryptedPkcs8PrivateKey(string password, PbeParameters pbeParameters) 849PbeParameters pbeParameters, 909PbeParameters pbeParameters, 929/// <inheritdoc cref="TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan{char}, PbeParameters, Span{byte}, out int)"/> 935PbeParameters pbeParameters, 974PbeParameters pbeParameters) 1025PbeParameters pbeParameters) 1044/// <inheritdoc cref="ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan{char}, PbeParameters)"/> 1050PbeParameters pbeParameters) 1894private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<char> password, PbeParameters pbeParameters) 1922private AsnWriter ExportEncryptedPkcs8PrivateKeyCore(ReadOnlySpan<byte> passwordBytes, PbeParameters 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)
20internal static readonly PbeParameters Windows3desPbe = 23internal static readonly PbeParameters WindowsAesPbe = 429internal static PbeParameters MapExportParametersToPbeParameters(Pkcs12ExportPbeParameters exportParameters) 447internal 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\X25519DiffieHellman.cs (11)
487PbeParameters pbeParameters, 536PbeParameters pbeParameters, 585PbeParameters pbeParameters, 616public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 652public byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) 688public byte[] ExportEncryptedPkcs8PrivateKey(string password, PbeParameters pbeParameters) 718public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 755public string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters) 792public string ExportEncryptedPkcs8PrivateKeyPem(string password, PbeParameters pbeParameters) 1550PbeParameters pbeParameters, 1551Func<ReadOnlySpan<TChar>, AsnWriter, PbeParameters, AsnWriter> encryptor)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
566public byte[] ExportPkcs12(PbeParameters exportParameters, SafePasswordHandle password)
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\StorePal.Windows.Export.cs (3)
96public byte[] ExportPkcs12(PbeParameters exportParameters, SafePasswordHandle password) 110PbeParameters? reEncodeParameters = null; 165private static byte[] ReEncryptAndSealPkcs12(byte[] pkcs12, SafePasswordHandle password, PbeParameters newPbeParameters)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (4)
399/// <paramref name="exportParameters"/> specifies a <see cref="PbeParameters.HashAlgorithm"/> value that is 400/// not supported for the <see cref="PbeParameters.EncryptionAlgorithm"/> value. 405/// <see cref="PbeParameters.EncryptionAlgorithm"/>. 408public 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\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (5)
192PbeParameters pbeParameters) 204PbeParameters pbeParameters) 217PbeParameters pbeParameters) 406PbeParameters pbeParameters) 442PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
37PbeParameters pbeParameters, 260PbeParameters pbeParameters, 343PbeParameters pbeParameters,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (4)
29PbeParameters pbeParameters) 41PbeParameters pbeParameters) 73PbeParameters pbeParameters) 85PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (5)
128PbeParameters pbeParameters) 140PbeParameters pbeParameters) 156PbeParameters pbeParameters) 168PbeParameters pbeParameters) 417PbeParameters pbeParameters)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
101public byte[] Encrypt(ReadOnlySpan<char> password, PbeParameters pbeParameters) 117public byte[] Encrypt(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) 139PbeParameters pbeParameters, 157PbeParameters pbeParameters,
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
22[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PbeParameters))]