CryptDeriveKey (advapi32)
Last changed: -206.169.231.69

.
Summary
The CryptDeriveKey function generates cryptographic session keys derived from a base data value.

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]

[return: MarshalAs(UnmanagedType.Bool)]

public static extern bool CryptDeriveKey(IntPtr hProv,int Algid, IntPtr hBaseData, int flags, IntPtr phKey);

VB Signature:

Declare Function CryptDeriveKey Lib "advapi32.dll" (ByVal hProv As IntPtr, _
ByVal Algid As Integer, ByVal hBaseData As IntPtr, ByVal flags As Integer, _
ByRef phKey As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation