mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
added static constexpr back because I got it working and assuming it's preferred
This commit is contained in:
parent
f49bd89a42
commit
9e502a5beb
2 changed files with 2 additions and 2 deletions
|
@ -10,6 +10,8 @@ namespace llarp
|
||||||
{
|
{
|
||||||
struct EncryptedFrame : public Encrypted
|
struct EncryptedFrame : public Encrypted
|
||||||
{
|
{
|
||||||
|
static constexpr size_t OverheadSize =
|
||||||
|
PUBKEYSIZE + TUNNONCESIZE + SHORTHASHSIZE;
|
||||||
EncryptedFrame() = default;
|
EncryptedFrame() = default;
|
||||||
EncryptedFrame(byte_t* buf, size_t sz) : Encrypted(buf, sz)
|
EncryptedFrame(byte_t* buf, size_t sz) : Encrypted(buf, sz)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#include <llarp/encrypted_frame.hpp>
|
#include <llarp/encrypted_frame.hpp>
|
||||||
#include "logger.hpp"
|
#include "logger.hpp"
|
||||||
|
|
||||||
#define OverheadSize (PUBKEYSIZE + TUNNONCESIZE + SHORTHASHSIZE)
|
|
||||||
|
|
||||||
namespace llarp
|
namespace llarp
|
||||||
{
|
{
|
||||||
Encrypted::Encrypted(const byte_t* buf, size_t sz)
|
Encrypted::Encrypted(const byte_t* buf, size_t sz)
|
||||||
|
|
Loading…
Reference in a new issue