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