Generate a key

Namespace:  Cryptware.NCryptoki
Assembly:  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 Key

Implements

ISession..::..GenerateKey(Mechanism, CryptokiCollection)

Remarks

Call C_GenerateKey

Exceptions

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

See Also