mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 12:47:48 +02:00
small fixes
This commit is contained in:
parent
55534ea002
commit
91a420433a
10 changed files with 13 additions and 15 deletions
|
@ -195,7 +195,7 @@ namespace i2p {
|
|||
uint8_t *record = records + index * SHORT_TUNNEL_BUILD_RECORD_SIZE;
|
||||
uint8_t nonce[12];
|
||||
memset(nonce, 0, 12);
|
||||
nonce[4] = index; // nonce is index
|
||||
nonce[4] = index; // nonce is indexed
|
||||
i2p::crypto::ChaCha20(record, SHORT_TUNNEL_BUILD_RECORD_SIZE, replyKey, nonce, record);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue