key length support in key generation