17 instantiations of SafePasswordHandle
System.Security.Cryptography (17)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
108
() => new
SafePasswordHandle
((string?)null, false));
System\Security\Cryptography\X509Certificates\X509Certificate.cs (10)
97
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
113
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
126
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
174
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
186
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
203
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
328
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
342
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
373
using (SafePasswordHandle safePasswordHandle =
new
(password, passwordProvided: true))
415
using (SafePasswordHandle safePasswordHandle =
new
(password, passwordProvided: true))
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (6)
136
using (SafePasswordHandle safePasswordHandle =
new
(password, passwordProvided: true))
174
using (SafePasswordHandle safePasswordHandle =
new
(password, passwordProvided: true))
183
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
270
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
295
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
321
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
47 references to SafePasswordHandle
System.Security.Cryptography (47)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (3)
85
if (disposing && SafeHandleCache<
SafePasswordHandle
>.IsCachedInvalidHandle(this))
106
public static
SafePasswordHandle
InvalidHandle =>
107
SafeHandleCache<
SafePasswordHandle
>.GetInvalidHandle(
System\Security\Cryptography\X509Certificates\CertificatePal.cs (2)
16
SafePasswordHandle
password,
21
SafePasswordHandle
password,
System\Security\Cryptography\X509Certificates\CertificatePal.OpenSsl.cs (2)
23
internal static partial ICertificatePal FromBlob(ReadOnlySpan<byte> rawData,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
28
internal static partial ICertificatePal FromFile(string fileName,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs (3)
26
byte[] Export(X509ContentType contentType,
SafePasswordHandle
password);
27
byte[] ExportPkcs12(Pkcs12ExportPbeParameters exportParameters,
SafePasswordHandle
password);
28
byte[] ExportPkcs12(PbeParameters exportParameters,
SafePasswordHandle
password);
System\Security\Cryptography\X509Certificates\IExportPal.cs (3)
10
byte[]? Export(X509ContentType contentType,
SafePasswordHandle
password);
11
byte[] ExportPkcs12(Pkcs12ExportPbeParameters exportParameters,
SafePasswordHandle
password);
12
byte[] ExportPkcs12(PbeParameters exportParameters,
SafePasswordHandle
password);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (5)
42
public static ICertificatePal FromBlob(ReadOnlySpan<byte> rawData,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
73
public static ICertificatePal FromFile(string fileName,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
831
public byte[] Export(X509ContentType contentType,
SafePasswordHandle
password)
841
public byte[] ExportPkcs12(Pkcs12ExportPbeParameters exportParameters,
SafePasswordHandle
password)
849
public byte[] ExportPkcs12(PbeParameters exportParameters,
SafePasswordHandle
password)
System\Security\Cryptography\X509Certificates\StorePal.cs (2)
15
SafePasswordHandle
password,
20
SafePasswordHandle
password,
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
19
internal static partial ILoaderPal FromBlob(ReadOnlySpan<byte> rawData,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
62
internal static partial ILoaderPal FromFile(string fileName,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
75
SafePasswordHandle
password,
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (3)
45
public byte[]? Export(X509ContentType contentType,
SafePasswordHandle
password)
64
public byte[] ExportPkcs12(Pkcs12ExportPbeParameters exportParameters,
SafePasswordHandle
password)
89
public byte[] ExportPkcs12(PbeParameters exportParameters,
SafePasswordHandle
password)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (11)
69
Pal = CertificatePal.FromBlob(data,
SafePasswordHandle
.InvalidHandle, X509KeyStorageFlags.DefaultKeySet);
97
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
113
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
126
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
174
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
186
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
203
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
328
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
342
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
373
using (
SafePasswordHandle
safePasswordHandle = new(password, passwordProvided: true))
415
using (
SafePasswordHandle
safePasswordHandle = new(password, passwordProvided: true))
System\Security\Cryptography\X509Certificates\X509Certificate.LegacyLimits.cs (1)
12
internal static Pkcs12LoaderLimits GetPkcs12Limits(bool fromFile,
SafePasswordHandle
safePasswordHandle)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (9)
112
return storePal.Export(contentType,
SafePasswordHandle
.InvalidHandle);
136
using (
SafePasswordHandle
safePasswordHandle = new(password, passwordProvided: true))
174
using (
SafePasswordHandle
safePasswordHandle = new(password, passwordProvided: true))
183
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
221
using (ILoaderPal storePal = StorePal.FromBlob(rawData,
SafePasswordHandle
.InvalidHandle, X509KeyStorageFlags.DefaultKeySet))
270
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
282
using (ILoaderPal storePal = StorePal.FromFile(fileName,
SafePasswordHandle
.InvalidHandle, X509KeyStorageFlags.DefaultKeySet))
295
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
321
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))