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 int action;
|
||||||
private final int requirements;
|
private final int requirements;
|
||||||
private int patternIndex;
|
private int patternIndex;
|
||||||
// not supported
|
|
||||||
private static final byte[] prologue = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enumerated value that indicates that the handshake object
|
* Enumerated value that indicates that the handshake object
|
||||||
@ -352,10 +350,7 @@ public class HandshakeState implements Destroyable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hash the prologue value.
|
// Hash the prologue value.
|
||||||
if (prologue != null)
|
symmetric.mixHash(emptyPrologue, 0, 0);
|
||||||
symmetric.mixHash(prologue, 0, prologue.length);
|
|
||||||
else
|
|
||||||
symmetric.mixHash(emptyPrologue, 0, 0);
|
|
||||||
|
|
||||||
// Mix the pre-supplied public keys into the handshake hash.
|
// Mix the pre-supplied public keys into the handshake hash.
|
||||||
if (isInitiator) {
|
if (isInitiator) {
|
||||||
@ -798,8 +793,6 @@ public class HandshakeState implements Destroyable {
|
|||||||
remotePublicKey.destroy();
|
remotePublicKey.destroy();
|
||||||
if (remoteEphemeral != null)
|
if (remoteEphemeral != null)
|
||||||
remoteEphemeral.destroy();
|
remoteEphemeral.destroy();
|
||||||
if (prologue != null)
|
|
||||||
Noise.destroy(prologue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user