Generate a key
Namespace:
Cryptware.NCryptokiAssembly: NCryptoki (in NCryptoki.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function GenerateKey ( _ mech As Mechanism, _ attList As CryptokiCollection _ ) As Key |
C# |
---|
public Key GenerateKey( Mechanism mech, CryptokiCollection attList ) |
Visual C++ |
---|
public: virtual Key^ GenerateKey( Mechanism^ mech, CryptokiCollection^ attList ) sealed |
JavaScript |
---|
function generateKey(mech, attList); |
Parameters
- mech
- Type: Cryptware.NCryptoki..::..Mechanism
Mechanism for generating the key
- attList
- Type: Cryptware.NCryptoki..::..CryptokiCollection
List of attribute for the key
Return Value
Generated KeyImplements
ISession..::..GenerateKey(Mechanism, CryptokiCollection)
Remarks
Call C_GenerateKey
Exceptions
Exception | Condition |
---|---|
Cryptware.NCryptoki..::..CryptokiException | if a PKCS#11 error occurs |