// See http://bouncy-castle.1462172.n4.nabble.com/Using-AES-GCM-NoPadding-with-javax-crypto-CipherInputStream-td4655271.html
// and http://bouncy-castle.1462172.n4.nabble.com/using-GCMBlockCipher-with-CipherInputStream-td4655147.html
}
private void doTestEncryption(List<CipherSpec> cipherSpecs) throws InvalidKeySpecException, NoSuchAlgorithmException, IOException, CipherException, InvalidKeyException {
Transformer encryptCipherTransformer = new CipherTransformer(cipherSpecs, masterKey);
Transformer decryptCipherTransformer = new CipherTransformer(cipherSpecs, masterKey);
// Prepare data
byte[] srcData = new byte[10*1024];
for (int i=0;i<srcData.length; i++) {