Performs a Key Derivation

Namespace:  Cryptware.NCryptoki
Assembly:  NCryptoki (in NCryptoki.dll)

Syntax

Visual Basic (Declaration)
Public Function DeriveKey ( _
	mechanism As Mechanism, _
	baseKey As Key, _
	template As CryptokiCollection _
) As Key
C#
public Key DeriveKey(
	Mechanism mechanism,
	Key baseKey,
	CryptokiCollection template
)
Visual C++
public:
Key^ DeriveKey(
	Mechanism^ mechanism, 
	Key^ baseKey, 
	CryptokiCollection^ template
)
JavaScript
function deriveKey(mechanism, baseKey, template);

Parameters

mechanism
Type: Cryptware.NCryptoki..::..Mechanism
baseKey
Type: Cryptware.NCryptoki..::..Key
base key for derivation
template
Type: Cryptware.NCryptoki..::..CryptokiCollection
template for the new derived key

Return Value

Derived Key

Remarks

Call C_DeriveKey

Exceptions

ExceptionCondition
Cryptware.NCryptoki..::..CryptokiExceptionif a PKCS#11 error occurs

See Also