ByteBuffer ciphertext1 = crypt.encryptCopy(plain);
ByteBuffer ciphertext2 = crypt.encryptCopy(plain);
ByteBuffer ciphertext3 = crypt.encryptCopy(plain);
assertEquals(ciphertext1.capacity(), len);
assertEquals(ciphertext2.capacity(), len);
assertEquals(ciphertext3.capacity(), len);
assertEquals(ciphertext1.remaining(), len);
assertEquals(ciphertext2.remaining(), len);
assertEquals(ciphertext3.remaining(), len);
if(type.isStreamCipher) {