C_EncryptFinal
This function operates as specified in PKCS#11.
Although this function will terminate the current encryption operation the session’s encryption state will not be cleared.
Cryptoki specifies that a successful return from one of these functions (when not used for length prediction) should result in the cipher state of that session being reset (to the uninitialized state). SafeNet ProtectToolkit-C, however, leaves the state initialized so that another operation (using the same key) may be performed without calling the appropriate C_xxxInit function.
Synopsis
C_EncryptFinal(
CK_SESSION_HANDLE hSession,
CK_BYTE_PTR pLastEncryptedPart,
CK_ULONG_PTR pulLastEncryptedPartLen
);