mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-31 04:44:13 +00:00
fixed build for gcc < 4.8
This commit is contained in:
parent
8c5111e11a
commit
f38891cace
@ -133,9 +133,14 @@ namespace crypto
|
|||||||
|
|
||||||
struct Poly1305
|
struct Poly1305
|
||||||
{
|
{
|
||||||
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ < 8) // older than gcc 4.8
|
||||||
|
Poly1305(const uint8_t * key) : m_Leftover(0), m_Final(0)
|
||||||
|
{
|
||||||
|
memset (m_H, 0, sizeof (m_H));
|
||||||
|
#else
|
||||||
Poly1305(const uint8_t * key) : m_Leftover(0), m_H{0}, m_Final(0)
|
Poly1305(const uint8_t * key) : m_Leftover(0), m_H{0}, m_Final(0)
|
||||||
{
|
{
|
||||||
|
#endif
|
||||||
m_R.PutKey(key);
|
m_R.PutKey(key);
|
||||||
m_Pad.Put(key + 16);
|
m_Pad.Put(key + 16);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user