17 instantiations of SafePasswordHandle
System.Security.Cryptography (17)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
110
var handle = new
SafePasswordHandle
((string?)null, false);
System\Security\Cryptography\X509Certificates\X509Certificate.cs (9)
69
using (var safePasswordHandle = new
SafePasswordHandle
((string?)null, passwordProvided: false))
97
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
112
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
125
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
169
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
181
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
197
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
311
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
325
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (7)
109
using (var safePasswordHandle = new
SafePasswordHandle
((string?)null, passwordProvided: false))
118
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
154
using (var safePasswordHandle = new
SafePasswordHandle
((string?)null, passwordProvided: false))
201
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
212
using (var safePasswordHandle = new
SafePasswordHandle
((string?)null, passwordProvided: false))
225
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
250
using (var safePasswordHandle = new
SafePasswordHandle
(password, passwordProvided: true))
41 references to SafePasswordHandle
System.Security.Cryptography (41)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (4)
85
if (disposing && SafeHandleCache<
SafePasswordHandle
>.IsCachedInvalidHandle(this))
106
public static
SafePasswordHandle
InvalidHandle =>
107
SafeHandleCache<
SafePasswordHandle
>.GetInvalidHandle(
110
var
handle = new SafePasswordHandle((string?)null, false);
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 (1)
26
byte[] Export(X509ContentType contentType,
SafePasswordHandle
password);
System\Security\Cryptography\X509Certificates\IExportPal.cs (1)
10
byte[]? Export(X509ContentType contentType,
SafePasswordHandle
password);
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (4)
243
SafePasswordHandle
password,
262
SafePasswordHandle
password,
281
SafePasswordHandle
password,
308
SafePasswordHandle
password,
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
43
public static ICertificatePal FromBlob(ReadOnlySpan<byte> rawData,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
71
public static ICertificatePal FromFile(string fileName,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
830
public byte[] Export(X509ContentType contentType,
SafePasswordHandle
password)
System\Security\Cryptography\X509Certificates\StorePal.cs (2)
14
SafePasswordHandle
password,
19
SafePasswordHandle
password,
System\Security\Cryptography\X509Certificates\StorePal.OpenSsl.cs (3)
20
internal static partial ILoaderPal FromBlob(ReadOnlySpan<byte> rawData,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
53
internal static partial ILoaderPal FromFile(string fileName,
SafePasswordHandle
password, X509KeyStorageFlags keyStorageFlags)
68
SafePasswordHandle
password,
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (2)
47
public byte[]? Export(X509ContentType contentType,
SafePasswordHandle
password)
85
private byte[] ExportPfx(
SafePasswordHandle
password)
System\Security\Cryptography\X509Certificates\UnixPkcs12Reader.cs (1)
194
public void Decrypt(
SafePasswordHandle
password, bool ephemeralSpecified)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (9)
69
using (
var
safePasswordHandle = new SafePasswordHandle((string?)null, passwordProvided: false))
97
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
112
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
125
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
169
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
181
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
197
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
311
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
325
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (7)
109
using (
var
safePasswordHandle = new SafePasswordHandle((string?)null, passwordProvided: false))
118
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
154
using (
var
safePasswordHandle = new SafePasswordHandle((string?)null, passwordProvided: false))
201
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
212
using (
var
safePasswordHandle = new SafePasswordHandle((string?)null, passwordProvided: false))
225
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))
250
using (
var
safePasswordHandle = new SafePasswordHandle(password, passwordProvided: true))