This example demonstrates how a Java program can re-key a symmetric key and an asymmetric key pair.
The following API functions are used: initializeLibrary, open, createSymmetricKey, reKey, createKeyPair, reKeyKeyPair, getAttribute, destroy, close, and freeLibrary.