Performs a Key Derivation
Namespace:
Cryptware.NCryptokiAssembly: 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
Exception | Condition |
---|---|
Cryptware.NCryptoki..::..CryptokiException | if a PKCS#11 error occurs |