mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
16 bytes alignmen of AES block
This commit is contained in:
parent
f7d90648e3
commit
357a9a6a56
3 changed files with 8 additions and 1 deletions
|
@ -83,6 +83,7 @@ namespace garlic
|
|||
I2NPMessage * GarlicRoutingSession::WrapSingleMessage (I2NPMessage * msg)
|
||||
{
|
||||
I2NPMessage * m = NewI2NPMessage ();
|
||||
m->Align (12); // in order to get buf aligned to 16 (12 + 4)
|
||||
size_t len = 0;
|
||||
uint8_t * buf = m->GetPayload () + 4; // 4 bytes for length
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue