byte[] input = new byte[cipher.getBlockSize()];
random.fill(input, 0, input.length);
long t0 = System.currentTimeMillis();
for (int i = 0; i < 100000; i++) {
cipher.update(input, 0, input.length);
}
long t1 = System.currentTimeMillis();
System.err.println(factory.getName() + ": " + (t1 - t0) + " ms");
}