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)
5476private 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) 5482global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle>.ManagedToUnmanagedIn __hSharedSecret_native__marshaller = new(); 5516private 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) 5522global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle>.ManagedToUnmanagedIn __hSharedSecret_native__marshaller = new(); 5555private 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) 5564global::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)
20SafeNCryptSecretHandle hSharedSecret, 30SafeNCryptSecretHandle hSharedSecret, 43SafeNCryptSecretHandle secretAgreement, 131SafeNCryptSecretHandle secretAgreement, 185SafeNCryptSecretHandle secretAgreement, 205SafeNCryptSecretHandle secretAgreement, 226SafeNCryptSecretHandle secretAgreement, 252SafeNCryptSecretHandle secretAgreement, 272SafeNCryptSecretHandle secretAgreement,
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs (3)
28out SafeNCryptSecretHandle phSecret, 35internal static SafeNCryptSecretHandle DeriveSecretAgreement( 42out SafeNCryptSecretHandle secretAgreement,
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.cs (4)
81using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey)) 102using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey)) 124using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey)) 139using (SafeNCryptSecretHandle secretAgreement = DeriveSecretAgreementHandle(otherPartyPublicKey))
System\Security\Cryptography\ECDiffieHellmanCng.Derive.cs (3)
57using (SafeNCryptSecretHandle handle = DeriveSecretAgreementHandle(otherPartyPublicKey)) 98public SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey) 127public SafeNCryptSecretHandle DeriveSecretAgreementHandle(CngKey otherPartyPublicKey)
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
90using (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))]