2021-03-09 23:24:35 +01:00
|
|
|
#pragma once
|
2019-01-13 17:30:07 +01:00
|
|
|
|
2019-07-31 01:42:13 +02:00
|
|
|
#include <cstdint>
|
2019-01-13 17:30:07 +01:00
|
|
|
|
2023-01-09 18:47:41 +01:00
|
|
|
#include <llarp/crypto/ntru/ntru.h>
|
2019-01-13 17:30:07 +01:00
|
|
|
|
2020-04-07 20:38:56 +02:00
|
|
|
static constexpr uint32_t PUBKEYSIZE = 32;
|
|
|
|
static constexpr uint32_t SECKEYSIZE = 64;
|
|
|
|
static constexpr uint32_t NONCESIZE = 24;
|
2019-01-13 17:30:07 +01:00
|
|
|
static constexpr uint32_t SHAREDKEYSIZE = 32;
|
2020-04-07 20:38:56 +02:00
|
|
|
static constexpr uint32_t HASHSIZE = 64;
|
2019-01-13 17:30:07 +01:00
|
|
|
static constexpr uint32_t SHORTHASHSIZE = 32;
|
2020-04-07 20:38:56 +02:00
|
|
|
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;
|
2019-01-13 17:30:07 +01:00
|
|
|
|
|
|
|
static constexpr uint32_t PQ_CIPHERTEXTSIZE = crypto_kem_CIPHERTEXTBYTES;
|
2020-04-07 20:38:56 +02:00
|
|
|
static constexpr uint32_t PQ_PUBKEYSIZE = crypto_kem_PUBLICKEYBYTES;
|
|
|
|
static constexpr uint32_t PQ_SECRETKEYSIZE = crypto_kem_SECRETKEYBYTES;
|
2019-01-13 17:30:07 +01:00
|
|
|
static constexpr uint32_t PQ_KEYPAIRSIZE = (PQ_SECRETKEYSIZE + PQ_PUBKEYSIZE);
|