fix ecdsa key generation

i sent pull request before.
this is better one


fix ecdsa key generation for current paramiko master