Update length for generate key pair