added keySz parameter and test of 128 bit key