mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
273270916e
This commit reflects changes to clang-format rules. Unfortunately, these rule changes create a massive change to the codebase, which causes an apparent rewrite of git history. Git blame's --ignore-rev flag can be used to ignore this commit when attempting to `git blame` some code.
26 lines
896 B
C++
26 lines
896 B
C++
#ifndef LLARP_CRYPTO_CONSTANTS_HPP
|
|
#define LLARP_CRYPTO_CONSTANTS_HPP
|
|
|
|
#include <cstdint>
|
|
|
|
#include <libntrup/ntru.h>
|
|
|
|
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);
|
|
|
|
#endif
|