debug for ratchet

This commit is contained in:
zzz
2020-02-25 14:56:10 +00:00
parent 1e5414f74f
commit 44a935d086

View File

@ -984,6 +984,12 @@ public class HandshakeState implements Destroyable, Cloneable {
if (dh != null && dh.hasPublicKey()) {
dh.getPublicKey(tmp, 0);
buf.append(net.i2p.data.Base64.encode(tmp));
if (dh.hasEncodedPublicKey()) {
buf.append('\n');
buf.append("Local eph. pub key ELG2 encoded: ");
dh.getEncodedPublicKey(tmp, 0);
buf.append(net.i2p.data.Base64.encode(tmp));
}
} else {
buf.append("null");
}