mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +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
2
aes.h
2
aes.h
|
@ -45,7 +45,7 @@ namespace crypto
|
|||
AESAlignedBuffer ()
|
||||
{
|
||||
m_Buf = m_UnalignedBuffer;
|
||||
uint8_t rem = ((uint64_t)m_Buf) & 0x0f;
|
||||
uint8_t rem = ((size_t)m_Buf) & 0x0f;
|
||||
if (rem)
|
||||
m_Buf += (16 - rem);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue