This example demonstrates how a Java program can perform encryption / decryption operation on a KMIP server by passing the data to be encrypted in chunks rather than all at once.
The benefit of this approach is that it supports encryption of large blobs of data where the previous method required all the data provided in one call. The following API functions are used: initializeLibrary, open, createSymmetricKey, activate, encryptInit, encryptUpdate, encryptFinal, decryptInit, decryptUpdate, decryptFinal, revoke, destroy, close, and freeLibrary.