forked from I2P_Developers/i2p.i2p
NTCP2: Remove dup getHash() method
This commit is contained in:
@ -882,14 +882,6 @@ public class HandshakeState implements Destroyable {
|
|||||||
return symmetric.getChainingKey();
|
return symmetric.getChainingKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* I2P for getting current hash for siphash calculation
|
|
||||||
* @return NOT a copy, do not modify
|
|
||||||
*/
|
|
||||||
public byte[] getHash() {
|
|
||||||
return symmetric.getHandshakeHash();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I2P debug
|
* I2P debug
|
||||||
*/
|
*/
|
||||||
|
@ -343,8 +343,6 @@ class NTCP2Payload {
|
|||||||
* Big endian.
|
* Big endian.
|
||||||
* Same as DataHelper.fromLong(src, offset, 8) but allows negative result
|
* Same as DataHelper.fromLong(src, offset, 8) but allows negative result
|
||||||
*
|
*
|
||||||
* Package private for NTCP2Payload.
|
|
||||||
*
|
|
||||||
* @throws ArrayIndexOutOfBoundsException
|
* @throws ArrayIndexOutOfBoundsException
|
||||||
* @since 0.9.36
|
* @since 0.9.36
|
||||||
*/
|
*/
|
||||||
|
@ -442,7 +442,7 @@ class OutboundNTCP2State implements EstablishState {
|
|||||||
tk = new SessionKey(temp_key);
|
tk = new SessionKey(temp_key);
|
||||||
byte[] ask_master = doHMAC(ctx, tk, ASK);
|
byte[] ask_master = doHMAC(ctx, tk, ASK);
|
||||||
byte[] tmp = new byte[32 + SIPHASH.length];
|
byte[] tmp = new byte[32 + SIPHASH.length];
|
||||||
byte[] hash = state.getHash();
|
byte[] hash = state.getHandshakeHash();
|
||||||
System.arraycopy(hash, 0, tmp, 0, 32);
|
System.arraycopy(hash, 0, tmp, 0, 32);
|
||||||
System.arraycopy(SIPHASH, 0, tmp, 32, SIPHASH.length);
|
System.arraycopy(SIPHASH, 0, tmp, 32, SIPHASH.length);
|
||||||
tk = new SessionKey(ask_master);
|
tk = new SessionKey(ask_master);
|
||||||
|
Reference in New Issue
Block a user