Inits an Encrypt operation
Namespace:
Cryptware.NCryptokiAssembly: NCryptoki (in NCryptoki.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function EncryptInit ( _ mech As Mechanism, _ key As Key _ ) As Integer |
C# |
---|
public int EncryptInit( Mechanism mech, Key key ) |
Visual C++ |
---|
public: virtual int EncryptInit( Mechanism^ mech, Key^ key ) sealed |
JavaScript |
---|
function encryptInit(mech, key); |
Parameters
- mech
- Type: Cryptware.NCryptoki..::..Mechanism
Signature Mechanism
- key
- Type: Cryptware.NCryptoki..::..Key
Key used for signature
Return Value
0 if no error occurs, PKCS#11 error code otherwiseImplements
ISession..::..EncryptInit(Mechanism, Key)
Remarks
Call C_EncryptInit