public static byte[] getRawFingerprint(Digest d, byte[] buf, int offset, int len) throws Exception { if (len <= 0) { return null; } Objects.requireNonNull(d, "No digest").init(); d.update(buf, offset, len); return d.digest(); } }
public static byte[] getRawFingerprint(Digest d, byte[] buf, int offset, int len) throws Exception { if (len <= 0) { return null; } Objects.requireNonNull(d, "No digest").init(); d.update(buf, offset, len); return d.digest(); } }
@Override public void init(Session s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception { super.init(s, v_s, v_c, i_s, i_c); dh = factory.create(); hash = dh.getHash(); hash.init(); f = dh.getE(); }
@Override public void init(Session s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception { super.init(s, v_s, v_c, i_s, i_c); dh = factory.create(); hash = dh.getHash(); hash.init(); f = dh.getE(); }
@Override public void init(Session s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception { super.init(s, v_s, v_c, i_s, i_c); dh = getDH(); hash = dh.getHash(); hash.init(); e = dh.getE(); if (log.isDebugEnabled()) { log.debug("init({})[{}] Send SSH_MSG_KEXDH_INIT", this, s); } Buffer buffer = s.createBuffer(SshConstants.SSH_MSG_KEXDH_INIT, e.length + Integer.SIZE); buffer.putMPInt(e); s.writePacket(buffer); }
@Override public void init(Session s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception { super.init(s, v_s, v_c, i_s, i_c); dh = getDH(); hash = dh.getHash(); hash.init(); e = dh.getE(); if (log.isDebugEnabled()) { log.debug("init({})[{}] Send SSH_MSG_KEXDH_INIT", this, s); } Buffer buffer = s.createBuffer(SshConstants.SSH_MSG_KEXDH_INIT, e.length + Integer.SIZE); buffer.putMPInt(e); s.writePacket(buffer); }
digest.init();
hash.init(); e = dh.getE();
hash.init(); e = dh.getE();