mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-21 05:53:09 +00:00
Build fix (typo)
This commit is contained in:
parent
aad6f79efa
commit
ecacdf27a9
@ -2025,7 +2025,7 @@ bool Packet::dearmor(const void *key)
|
||||
|
||||
void Packet::cryptField(const void *key,unsigned int start,unsigned int len)
|
||||
{
|
||||
const uint8_t *const data = reinterpret_cast<const uint8_t *>(data());
|
||||
const uint8_t *const data = reinterpret_cast<const uint8_t *>(unsafeData());
|
||||
uint8_t iv[8];
|
||||
for(int i=0;i<8;++i) iv[i] = data[i];
|
||||
iv[7] &= 0xf8; // mask off least significant 3 bits of packet ID / IV since this is unset when this function gets called
|
||||
|
Loading…
Reference in New Issue
Block a user