28 references to SafeNCryptSecretHandle
System.Core (1)
System.Core.cs (1)
9
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
))]
System.Security.Cryptography (26)
_generated\0\LibraryImports.g.cs (6)
5476
private static partial global::Interop.NCrypt.ErrorCode NCryptDeriveKey(global::Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
hSharedSecret, string pwszKDF, ref global::Interop.NCrypt.NCryptBufferDesc pParameterList, byte[] pbDerivedKey, int cbDerivedKey, out int pcbResult, global::Interop.NCrypt.SecretAgreementFlags dwFlags)
5482
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
>.ManagedToUnmanagedIn __hSharedSecret_native__marshaller = new();
5516
private static partial global::Interop.NCrypt.ErrorCode NCryptDeriveKey(global::Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
hSharedSecret, string pwszKDF, nint pParameterList, global::System.Span<byte> pbDerivedKey, int cbDerivedKey, out int pcbResult, global::Interop.NCrypt.SecretAgreementFlags dwFlags)
5522
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
>.ManagedToUnmanagedIn __hSharedSecret_native__marshaller = new();
5555
private static partial global::Interop.NCrypt.ErrorCode NCryptSecretAgreement(global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle hPrivKey, global::Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle hPubKey, out global::Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
phSecret, int dwFlags)
5564
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
>.ManagedToUnmanagedOut __phSecret_native__marshaller = new();
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (9)
20
SafeNCryptSecretHandle
hSharedSecret,
30
SafeNCryptSecretHandle
hSharedSecret,
43
SafeNCryptSecretHandle
secretAgreement,
131
SafeNCryptSecretHandle
secretAgreement,
185
SafeNCryptSecretHandle
secretAgreement,
205
SafeNCryptSecretHandle
secretAgreement,
226
SafeNCryptSecretHandle
secretAgreement,
252
SafeNCryptSecretHandle
secretAgreement,
272
SafeNCryptSecretHandle
secretAgreement,
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs (3)
28
out
SafeNCryptSecretHandle
phSecret,
35
internal static
SafeNCryptSecretHandle
DeriveSecretAgreement(
42
out
SafeNCryptSecretHandle
secretAgreement,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.cs (4)
81
using (
SafeNCryptSecretHandle
secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey))
102
using (
SafeNCryptSecretHandle
secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey))
124
using (
SafeNCryptSecretHandle
secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey))
139
using (
SafeNCryptSecretHandle
secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey))
System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs (3)
57
using (
SafeNCryptSecretHandle
handle = DeriveSecretAgreementHandle(otherPartyPublicKey))
98
public
SafeNCryptSecretHandle
DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)
127
public
SafeNCryptSecretHandle
DeriveSecretAgreementHandle(CngKey otherPartyPublicKey)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
90
using (
SafeNCryptSecretHandle
secretAgreement = Interop.NCrypt.DeriveSecretAgreement(
System.Security.Cryptography.Cng (1)
System.Security.Cryptography.Cng.cs (1)
7
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Win32.SafeHandles.
SafeNCryptSecretHandle
))]