mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
46ad8d4058
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use - shuffled around some cmake linking to simplify dependency graph - superfluous files removed
23 lines
831 B
C++
23 lines
831 B
C++
#pragma once
|
|
|
|
#include <libntrup/ntru.h>
|
|
|
|
#include <cstdint>
|
|
|
|
static constexpr uint32_t PUBKEYSIZE = 32;
|
|
static constexpr uint32_t SECKEYSIZE = 64;
|
|
static constexpr uint32_t NONCESIZE = 24;
|
|
static constexpr uint32_t SHAREDKEYSIZE = 32;
|
|
static constexpr uint32_t HASHSIZE = 64;
|
|
static constexpr uint32_t SHORTHASHSIZE = 32;
|
|
static constexpr uint32_t HMACSECSIZE = 32;
|
|
static constexpr uint32_t SIGSIZE = 64;
|
|
static constexpr uint32_t TUNNONCESIZE = 32;
|
|
static constexpr uint32_t HMACSIZE = 32;
|
|
static constexpr uint32_t PATHIDSIZE = 16;
|
|
|
|
static constexpr uint32_t PQ_CIPHERTEXTSIZE = crypto_kem_CIPHERTEXTBYTES;
|
|
static constexpr uint32_t PQ_PUBKEYSIZE = crypto_kem_PUBLICKEYBYTES;
|
|
static constexpr uint32_t PQ_SECRETKEYSIZE = crypto_kem_SECRETKEYBYTES;
|
|
static constexpr uint32_t PQ_KEYPAIRSIZE = (PQ_SECRETKEYSIZE + PQ_PUBKEYSIZE);
|