Connectivity Software User's Guide and Reference
CryptDeriveKey Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Licensing Namespace > Crypto.NativeMethods Class : CryptDeriveKey Method
Syntax
'Declaration
 
Public Shared Function CryptDeriveKey( _
   ByVal hProv As IntPtr, _
   ByVal Algid As Integer, _
   ByVal hBaseData As IntPtr, _
   ByVal flags As Integer, _
   ByRef phKey As IntPtr _
) As Boolean
'Usage
 
Dim hProv As IntPtr
Dim Algid As Integer
Dim hBaseData As IntPtr
Dim flags As Integer
Dim phKey As IntPtr
Dim value As Boolean
 
value = Crypto.NativeMethods.CryptDeriveKey(hProv, Algid, hBaseData, flags, phKey)
public static bool CryptDeriveKey( 
   IntPtr hProv,
   int Algid,
   IntPtr hBaseData,
   int flags,
   ref IntPtr phKey
)
public:
static bool CryptDeriveKey( 
   IntPtr hProv,
   int Algid,
   IntPtr hBaseData,
   int flags,
   IntPtr% phKey
) 

Parameters

hProv
Algid
hBaseData
flags
phKey
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also