SSU2: Another consolidation of keys for building retry

This commit is contained in:
zzz
2022-12-14 14:35:12 -05:00
parent 980276b966
commit 4aa6d15933

View File

@@ -462,8 +462,8 @@ class PacketBuilder2 {
byte sentIP[] = state.getSentIP();
pkt.setLength(LONG_HEADER_SIZE);
int port = state.getSentPort();
encryptRetry(packet, state.getSendHeaderEncryptKey1(), n, state.getSendHeaderEncryptKey1(),
state.getSendHeaderEncryptKey2(),
byte[] introKey = state.getSendHeaderEncryptKey1();
encryptRetry(packet, introKey, n, introKey, introKey,
sentIP, port, terminationCode);
pkt.setSocketAddress(state.getSentAddress());
packet.setMessageType(TYPE_CREAT);