forked from I2P_Developers/i2p.i2p
NTCP2 unused code
This commit is contained in:
@ -44,8 +44,6 @@ public class HandshakeState implements Destroyable {
|
||||
private int action;
|
||||
private final int requirements;
|
||||
private int patternIndex;
|
||||
// not supported
|
||||
private static final byte[] prologue = null;
|
||||
|
||||
/**
|
||||
* Enumerated value that indicates that the handshake object
|
||||
@ -352,9 +350,6 @@ public class HandshakeState implements Destroyable {
|
||||
}
|
||||
|
||||
// Hash the prologue value.
|
||||
if (prologue != null)
|
||||
symmetric.mixHash(prologue, 0, prologue.length);
|
||||
else
|
||||
symmetric.mixHash(emptyPrologue, 0, 0);
|
||||
|
||||
// Mix the pre-supplied public keys into the handshake hash.
|
||||
@ -798,8 +793,6 @@ public class HandshakeState implements Destroyable {
|
||||
remotePublicKey.destroy();
|
||||
if (remoteEphemeral != null)
|
||||
remoteEphemeral.destroy();
|
||||
if (prologue != null)
|
||||
Noise.destroy(prologue);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user