Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/crypto/dh/DhGroupExchange.java @ 312:1442be38051b ganymed
add ecdsa key support everywhere
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 16:03:21 -0700 |
parents | cb179051f0f2 |
children | 1d400fd78e4a |
comparison
equal
deleted
inserted
replaced
311:fde9d6568bea | 312:1442be38051b |
---|---|
79 this.f = f; | 79 this.f = f; |
80 this.k = f.modPow(x, p); | 80 this.k = f.modPow(x, p); |
81 } | 81 } |
82 | 82 |
83 public byte[] calculateH(String hashAlgo, byte[] clientversion, byte[] serverversion, | 83 public byte[] calculateH(String hashAlgo, byte[] clientversion, byte[] serverversion, |
84 byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para) { | 84 byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para) throws IOException { |
85 HashForSSH2Types hash = new HashForSSH2Types(hashAlgo); | 85 HashForSSH2Types hash = new HashForSSH2Types(hashAlgo); |
86 hash.updateByteString(clientversion); | 86 hash.updateByteString(clientversion); |
87 hash.updateByteString(serverversion); | 87 hash.updateByteString(serverversion); |
88 hash.updateByteString(clientKexPayload); | 88 hash.updateByteString(clientKexPayload); |
89 hash.updateByteString(serverKexPayload); | 89 hash.updateByteString(serverKexPayload); |