The ecdsa module already defaults to using urandom.

This commit is contained in:
Alex Gaynor 2014-03-31 16:09:45 -07:00
parent 6f211115f4
commit 6c6969c188
1 changed files with 1 additions and 2 deletions

View File

@ -102,8 +102,7 @@ class ECDSAKey (PKey):
def sign_ssh_data(self, data): def sign_ssh_data(self, data):
digest = SHA256.new(data).digest() digest = SHA256.new(data).digest()
sig = self.signing_key.sign_digest(digest, entropy=os.urandom, sig = self.signing_key.sign_digest(digest, sigencode=self._sigencode)
sigencode=self._sigencode)
m = Message() m = Message()
m.add_string('ecdsa-sha2-nistp256') m.add_string('ecdsa-sha2-nistp256')
m.add_string(sig) m.add_string(sig)