set key length