13 instantiations of SafePasswordHandle
System.Security.Cryptography (13)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
108() => new SafePasswordHandle((string?)null, false));
System\Security\Cryptography\X509Certificates\X509Certificate.cs (8)
97using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 113using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 126using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 174using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 186using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 203using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 328using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 342using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (4)
118using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 205using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 230using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 256using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
36 references to SafePasswordHandle
System.Security.Cryptography (36)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (3)
85if (disposing && SafeHandleCache<SafePasswordHandle>.IsCachedInvalidHandle(this)) 106public static SafePasswordHandle InvalidHandle => 107SafeHandleCache<SafePasswordHandle>.GetInvalidHandle(
System\Security\Cryptography\X509Certificates\CertificatePal.cs (2)
16SafePasswordHandle password, 21SafePasswordHandle password,
System\Security\Cryptography\X509Certificates\CertificatePal.OpenSsl.cs (2)
23internal static partial ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 28internal static partial ICertificatePal FromFile(string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
System\Security\Cryptography\X509Certificates\ICertificatePalCore.cs (1)
26byte[] Export(X509ContentType contentType, SafePasswordHandle password);
System\Security\Cryptography\X509Certificates\IExportPal.cs (1)
10byte[]? Export(X509ContentType contentType, SafePasswordHandle password);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
42public static ICertificatePal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 73public static ICertificatePal FromFile(string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 831public byte[] Export(X509ContentType contentType, SafePasswordHandle password)
System\Security\Cryptography\X509Certificates\StorePal.cs (2)
15SafePasswordHandle password, 20SafePasswordHandle password,
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
19internal static partial ILoaderPal FromBlob(ReadOnlySpan<byte> rawData, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 62internal static partial ILoaderPal FromFile(string fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) 75SafePasswordHandle password,
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
47public byte[]? Export(X509ContentType contentType, SafePasswordHandle password) 85private byte[] ExportPfx(SafePasswordHandle password)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (9)
69Pal = CertificatePal.FromBlob(data, SafePasswordHandle.InvalidHandle, X509KeyStorageFlags.DefaultKeySet); 97using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 113using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 126using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 174using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 186using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 203using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 328using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 342using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
System\Security\Cryptography\X509Certificates\X509Certificate.LegacyLimits.cs (1)
12internal static Pkcs12LoaderLimits GetPkcs12Limits(bool fromFile, SafePasswordHandle safePasswordHandle)
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (7)
112return storePal.Export(contentType, SafePasswordHandle.InvalidHandle); 118using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 156using (ILoaderPal storePal = StorePal.FromBlob(rawData, SafePasswordHandle.InvalidHandle, X509KeyStorageFlags.DefaultKeySet)) 205using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 217using (ILoaderPal storePal = StorePal.FromFile(fileName, SafePasswordHandle.InvalidHandle, X509KeyStorageFlags.DefaultKeySet)) 230using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true)) 256using (var safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))