2 instantiations of SafeEvpPKeyHandle
System.Security.Cryptography (2)
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (2)
12
internal static readonly SafeEvpPKeyHandle InvalidHandle = new
SafeEvpPKeyHandle
();
58
SafeEvpPKeyHandle safeHandle = new
SafeEvpPKeyHandle
();
116 references to SafeEvpPKeyHandle
System.Net.Quic (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
31
internal static partial
SafeEvpPKeyHandle
GetX509EvpPublicKey(SafeX509Handle x509);
System.Net.Security (5)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
877
private static void SetSslCertificate(SafeSslContextHandle contextPtr, SafeX509Handle certPtr,
SafeEvpPKeyHandle
keyPtr)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
174
internal static partial int SslUsePrivateKey(SafeSslHandle ssl,
SafeEvpPKeyHandle
keyPtr);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtxOptions.cs (1)
22
internal static partial int SslCtxUsePrivateKey(SafeSslContextHandle ctx,
SafeEvpPKeyHandle
keyPtr);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
31
internal static partial
SafeEvpPKeyHandle
GetX509EvpPublicKey(SafeX509Handle x509);
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
28
internal readonly
SafeEvpPKeyHandle
KeyHandle;
System.Security.Cryptography (109)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.cs (22)
14
internal static partial
SafeEvpPKeyHandle
EvpPkeyCreate();
17
private static partial
SafeEvpPKeyHandle
CryptoNative_EvpPKeyDuplicate(
18
SafeEvpPKeyHandle
currentKey,
21
internal static
SafeEvpPKeyHandle
EvpPKeyDuplicate(
22
SafeEvpPKeyHandle
currentKey,
25
SafeEvpPKeyHandle
pkey = CryptoNative_EvpPKeyDuplicate(
42
internal static partial int EvpPKeySize(
SafeEvpPKeyHandle
pkey);
45
internal static partial int UpRefEvpPkey(
SafeEvpPKeyHandle
handle);
48
private static unsafe partial
SafeEvpPKeyHandle
CryptoNative_DecodeSubjectPublicKeyInfo(
54
private static unsafe partial
SafeEvpPKeyHandle
CryptoNative_DecodePkcs8PrivateKey(
59
internal static unsafe
SafeEvpPKeyHandle
DecodeSubjectPublicKeyInfo(
63
SafeEvpPKeyHandle
handle;
82
internal static unsafe
SafeEvpPKeyHandle
DecodePkcs8PrivateKey(
86
SafeEvpPKeyHandle
handle;
133
internal static ArraySegment<byte> RentEncodePkcs8PrivateKey(
SafeEvpPKeyHandle
pkey)
184
internal static ArraySegment<byte> RentEncodeSubjectPublicKeyInfo(
SafeEvpPKeyHandle
pkey)
218
private static partial
SafeEvpPKeyHandle
CryptoNative_LoadPrivateKeyFromEngine(
222
internal static
SafeEvpPKeyHandle
LoadPrivateKeyFromEngine(
229
SafeEvpPKeyHandle
pkey = CryptoNative_LoadPrivateKeyFromEngine(engineName, keyName);
241
private static partial
SafeEvpPKeyHandle
CryptoNative_LoadPublicKeyFromEngine(
245
internal static
SafeEvpPKeyHandle
LoadPublicKeyFromEngine(
252
SafeEvpPKeyHandle
pkey = CryptoNative_LoadPublicKeyFromEngine(engineName, keyName);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Dsa.cs (2)
13
internal static partial SafeDsaHandle EvpPkeyGetDsa(
SafeEvpPKeyHandle
pkey);
17
internal static partial bool EvpPkeySetDsa(
SafeEvpPKeyHandle
pkey, SafeDsaHandle key);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Ecdh.cs (2)
15
internal static partial SafeEvpPKeyCtxHandle EvpPKeyCtxCreate(
SafeEvpPKeyHandle
pkey,
SafeEvpPKeyHandle
peerkey, out uint secretLength);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcKey.cs (2)
13
internal static partial SafeEcKeyHandle EvpPkeyGetEcKey(
SafeEvpPKeyHandle
pkey);
17
internal static partial bool EvpPkeySetEcKey(
SafeEvpPKeyHandle
pkey, SafeEcKeyHandle key);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.Rsa.cs (14)
15
private static partial
SafeEvpPKeyHandle
CryptoNative_EvpPKeyCreateRsa(IntPtr rsa);
17
internal static
SafeEvpPKeyHandle
EvpPKeyCreateRsa(IntPtr rsa)
21
SafeEvpPKeyHandle
pkey = CryptoNative_EvpPKeyCreateRsa(rsa);
33
private static partial
SafeEvpPKeyHandle
CryptoNative_RsaGenerateKey(int keySize);
35
internal static
SafeEvpPKeyHandle
RsaGenerateKey(int keySize)
37
SafeEvpPKeyHandle
pkey = CryptoNative_RsaGenerateKey(keySize);
50
SafeEvpPKeyHandle
pkey,
59
SafeEvpPKeyHandle
pkey,
85
SafeEvpPKeyHandle
pkey,
94
SafeEvpPKeyHandle
pkey,
120
SafeEvpPKeyHandle
pkey,
129
SafeEvpPKeyHandle
pkey,
155
SafeEvpPKeyHandle
pkey,
164
SafeEvpPKeyHandle
pkey,
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
31
internal static partial
SafeEvpPKeyHandle
GetX509EvpPublicKey(SafeX509Handle x509);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (1)
95
using (
SafeEvpPKeyHandle
handle = _key.UpRefKeyHandle())
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (2)
112
SafeEvpPKeyHandle
? ourKey = null;
113
SafeEvpPKeyHandle
? theirKey = null;
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs (3)
13
internal ECDiffieHellmanOpenSslPublicKey(
SafeEvpPKeyHandle
pkeyHandle)
80
internal
SafeEvpPKeyHandle
DuplicateKeyHandle()
83
SafeEvpPKeyHandle
pkeyHandle = Interop.Crypto.EvpPkeyCreate();
src\libraries\Common\src\System\Security\Cryptography\ECOpenSsl.cs (2)
45
internal
SafeEvpPKeyHandle
UpRefKeyHandle()
50
SafeEvpPKeyHandle
pkeyHandle = Interop.Crypto.EvpPkeyCreate();
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (23)
20
private Lazy<
SafeEvpPKeyHandle
>? _key;
41
_key = new Lazy<
SafeEvpPKeyHandle
>(GenerateKey);
58
_key = new Lazy<
SafeEvpPKeyHandle
>(GenerateKey);
90
SafeEvpPKeyHandle
key = GetKey();
118
SafeEvpPKeyHandle
key = GetKey();
169
SafeEvpPKeyHandle
key,
212
SafeEvpPKeyHandle
key = GetKey();
237
SafeEvpPKeyHandle
? key = GetKey();
243
SafeEvpPKeyHandle
key,
286
SafeEvpPKeyHandle
key = GetKey();
304
SafeEvpPKeyHandle
key = GetKey();
323
SafeEvpPKeyHandle
key = GetKey();
343
SafeEvpPKeyHandle
key = GetKey();
544
SafeEvpPKeyHandle
newKey = Interop.Crypto.DecodeSubjectPublicKeyInfo(
591
SafeEvpPKeyHandle
newKey = Interop.Crypto.DecodePkcs8PrivateKey(
650
SafeEvpPKeyHandle
handle = _key.Value;
656
private void SetKey(
SafeEvpPKeyHandle
newKey)
660
_key = new Lazy<
SafeEvpPKeyHandle
>(newKey);
710
private
SafeEvpPKeyHandle
GetKey()
714
SafeEvpPKeyHandle
key = _key.Value;
724
private
SafeEvpPKeyHandle
GenerateKey()
790
SafeEvpPKeyHandle
key = GetKey();
830
SafeEvpPKeyHandle
key = GetKey();
System\Security\Cryptography\DSAOpenSsl.cs (4)
25
/// Create an DSAOpenSsl from an <see cref="
SafeEvpPKeyHandle
"/> whose value is an existing
39
public DSAOpenSsl(
SafeEvpPKeyHandle
pkeyHandle)
88
public
SafeEvpPKeyHandle
DuplicateKeyHandle()
91
SafeEvpPKeyHandle
pkeyHandle = Interop.Crypto.EvpPkeyCreate();
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (4)
13
/// Create an ECDiffieHellmanOpenSsl from an <see cref="
SafeEvpPKeyHandle
"/> whose value is an existing
25
public ECDiffieHellmanOpenSsl(
SafeEvpPKeyHandle
pkeyHandle)
76
public
SafeEvpPKeyHandle
DuplicateKeyHandle()
79
SafeEvpPKeyHandle
pkeyHandle = Interop.Crypto.EvpPkeyCreate();
System\Security\Cryptography\ECDsaOpenSsl.cs (4)
13
/// Create an ECDsaOpenSsl from an <see cref="
SafeEvpPKeyHandle
"/> whose value is an existing
25
public ECDsaOpenSsl(
SafeEvpPKeyHandle
pkeyHandle)
76
public
SafeEvpPKeyHandle
DuplicateKeyHandle()
80
SafeEvpPKeyHandle
pkeyHandle = Interop.Crypto.EvpPkeyCreate();
System\Security\Cryptography\RSAOpenSsl.cs (6)
22
_key = new Lazy<
SafeEvpPKeyHandle
>();
47
SafeEvpPKeyHandle
pkey = Interop.Crypto.EvpPKeyCreateRsa(handle);
54
/// Create an RSAOpenSsl from an <see cref="
SafeEvpPKeyHandle
"/> whose value is an existing
68
public RSAOpenSsl(
SafeEvpPKeyHandle
pkeyHandle)
76
SafeEvpPKeyHandle
newKey = Interop.Crypto.EvpPKeyDuplicate(
88
public
SafeEvpPKeyHandle
DuplicateKeyHandle()
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (5)
12
internal static readonly
SafeEvpPKeyHandle
InvalidHandle = new SafeEvpPKeyHandle();
51
public
SafeEvpPKeyHandle
DuplicateHandle()
58
SafeEvpPKeyHandle
safeHandle = new SafeEvpPKeyHandle();
115
public static
SafeEvpPKeyHandle
OpenPrivateKeyFromEngine(string engineName, string keyId)
168
public static
SafeEvpPKeyHandle
OpenPublicKeyFromEngine(string engineName, string keyId)
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
26
SafeEvpPKeyHandle
? privateKey = ((OpenSslX509CertificateReader)certificatePal).PrivateKeyHandle;
System\Security\Cryptography\X509Certificates\OpenSslPkcs12Reader.cs (1)
66
internal static
SafeEvpPKeyHandle
GetPrivateKey(AsymmetricAlgorithm key)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (7)
20
private
SafeEvpPKeyHandle
? _privateKey;
540
internal void SetPrivateKey(
SafeEvpPKeyHandle
privateKey)
545
internal
SafeEvpPKeyHandle
? PrivateKeyHandle
572
using (
SafeEvpPKeyHandle
publicKeyHandle = Interop.Crypto.GetX509EvpPublicKey(_cert))
582
using (
SafeEvpPKeyHandle
publicKeyHandle = Interop.Crypto.GetX509EvpPublicKey(_cert))
610
private OpenSslX509CertificateReader CopyWithPrivateKey(
SafeEvpPKeyHandle
privateKey)
771
SafeEvpPKeyHandle
keyHandle = _privateKey.DuplicateHandle();
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (3)
1328
private static readonly bool s_defaultAbort =
SafeEvpPKeyHandle
.OpenSslVersion < OpenSSL_1_1_0_RTM;
1411
if (
SafeEvpPKeyHandle
.OpenSslVersion >= 0x3_00_00_00_0)
1416
if (
SafeEvpPKeyHandle
.OpenSslVersion >= 0x1_01_01_00_0)
System.Security.Cryptography.OpenSsl (1)
System.Security.Cryptography.OpenSsl.cs (1)
8
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.
SafeEvpPKeyHandle
))]