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)
5604private 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) 5610global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle>.ManagedToUnmanagedIn __hSharedSecret_native__marshaller = new(); 5645private 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) 5651global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle>.ManagedToUnmanagedIn __hSharedSecret_native__marshaller = new(); 5685private 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) 5694global::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)
21SafeNCryptSecretHandle hSharedSecret, 32SafeNCryptSecretHandle hSharedSecret, 45SafeNCryptSecretHandle secretAgreement, 133SafeNCryptSecretHandle secretAgreement, 187SafeNCryptSecretHandle secretAgreement, 207SafeNCryptSecretHandle secretAgreement, 228SafeNCryptSecretHandle secretAgreement, 254SafeNCryptSecretHandle secretAgreement, 274SafeNCryptSecretHandle secretAgreement,
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveSecretAgreement.cs (3)
29out SafeNCryptSecretHandle phSecret, 36internal static SafeNCryptSecretHandle DeriveSecretAgreement( 43out 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))]