mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-25 22:53:44 +02:00
Build fixes.
This commit is contained in:
parent
12e7546ebc
commit
91556d0c55
5 changed files with 10 additions and 9 deletions
|
@ -15,6 +15,7 @@
|
|||
#define ZT_FCV_HPP
|
||||
|
||||
#include "Constants.hpp"
|
||||
#include "Utils.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
|
|
|
@ -32,7 +32,8 @@ class MAC : public TriviallyCopyable {
|
|||
}
|
||||
|
||||
ZT_INLINE
|
||||
MAC(const uint8_t a, const uint8_t b, const uint8_t c, const uint8_t d, const uint8_t e, const uint8_t f) noexcept
|
||||
MAC(const uint8_t a, const uint8_t b, const uint8_t c, const uint8_t d, const uint8_t e, const uint8_t f)
|
||||
noexcept
|
||||
: m_mac(
|
||||
(((uint64_t)a) << 40U) | (((uint64_t)b) << 32U) | (((uint64_t)c) << 24U) | (((uint64_t)d) << 16U)
|
||||
| (((uint64_t)e) << 8U) | ((uint64_t)f))
|
||||
|
|
|
@ -6,13 +6,10 @@ Public domain.
|
|||
|
||||
// Small modifications have been made for ZeroTier, but this code remains in the public domain.
|
||||
|
||||
#include "Poly1305.hpp"
|
||||
|
||||
#include "Constants.hpp"
|
||||
#include "Poly1305.hpp"
|
||||
#include "Utils.hpp"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#pragma warning(disable : 4146)
|
||||
#endif
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#ifndef ZT_POLY1305_HPP
|
||||
#define ZT_POLY1305_HPP
|
||||
|
||||
#include "Constants.hpp"
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
#define ZT_POLY1305_KEY_SIZE 32
|
||||
|
|
Loading…
Add table
Reference in a new issue