Implement JCA encryption/decryption.