final boolean forEncryption,
final byte[] iv,
final byte[] authData) {
// Initialise AES cipher
BlockCipher cipher = AES.createCipher(secretKey, forEncryption);
// Create GCM cipher with AES
GCMBlockCipher gcm = new GCMBlockCipher(cipher);
AEADParameters aeadParams = new AEADParameters(new KeyParameter(secretKey.getEncoded()),