allow non power of 2 key lengths