mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-10-31 09:20:38 +00:00
26 lines
375 B
C++
26 lines
375 B
C++
#include "Poly1305.h"
|
|
/**
|
|
This code is licensed under the MCGSI Public License
|
|
Copyright 2018 Jeff Becker
|
|
|
|
Kovri go write your own code
|
|
|
|
*/
|
|
|
|
#if LEGACY_OPENSSL
|
|
namespace i2p
|
|
{
|
|
namespace crypto
|
|
{
|
|
|
|
void Poly1305HMAC(uint64_t * out, const uint64_t * key, const uint8_t * buf, std::size_t sz)
|
|
{
|
|
Poly1305 p(key);
|
|
p.Update(buf, sz);
|
|
p.Finish(out);
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|