comparison src/ch/ethz/ssh2/crypto/dh/GenericDhExchange.java @ 313:1d400fd78e4a ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 16:19:33 -0700
parents fde9d6568bea
children d85bc45139f2
comparison
equal deleted inserted replaced
312:1442be38051b 313:1d400fd78e4a
60 } 60 }
61 61
62 /** 62 /**
63 * @param f 63 * @param f
64 */ 64 */
65 public void setF(BigInteger f) throws IOException {
66 setF(f.toByteArray());
67 }
68
69 public abstract byte[] getF();
70
65 public abstract void setF(byte[] f) throws IOException; 71 public abstract void setF(byte[] f) throws IOException;
66 72
67 public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, 73 public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload,
68 byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException, IOException { 74 byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException, IOException {
69 HashForSSH2Types hash = new HashForSSH2Types(getHashAlgo()); 75 HashForSSH2Types hash = new HashForSSH2Types(getHashAlgo());