AEADCipher.initialize
void initialize(SecretKey key)Initializes the cipher with the secret key.
Must be called before seal/open. The AEAD interface is explicitly keyed through this method (there is no key parameter on the operations themselves), so the key object can be wipe()d on release.
Parameters
key | The secret key; length must match keySize. |
Throws
CryptoException if the key length is invalid.