MOTION  0.01
Framework for mixed-protocol multi-party computation
Namespaces | Enumerations | Variables
constants.h File Reference
#include <iostream>
#include <limits>
#include <string>
#include "config.h"
#include "typedefs.h"
Include dependency graph for constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 encrypto
 
 encrypto::motion
 

Enumerations

enum  encrypto::motion::FiberStackAllocator { encrypto::motion::FiberStackAllocator::kFixedSize, encrypto::motion::FiberStackAllocator::kPooledFixedSize, encrypto::motion::FiberStackAllocator::kProtectedFixedSize }
 

Variables

constexpr std::string_view encrypto::motion::kFrameworkName {"MOTION"}
 
constexpr std::size_t encrypto::motion::kMb {1024 * 1024}
 
constexpr bool encrypto::motion::kVerboseDebugWish {false}
 
constexpr bool encrypto::motion::kVerboseDebug {kDebug && kVerboseDebugWish}
 
constexpr std::size_t encrypto::motion::kAesKeySize {16}
 
constexpr std::size_t encrypto::motion::kAesBlockSize {16}
 
constexpr std::size_t encrypto::motion::kAesIvSize {kAesBlockSize / 2}
 
constexpr std::size_t encrypto::motion::kMessageSizeBytelen {sizeof(std::uint32_t)}
 
constexpr std::uint32_t encrypto::motion::kMaxMessageSize {std::numeric_limits<std::uint32_t>::max() / 2}
 
constexpr std::size_t encrypto::motion::kKappa {128}
 
constexpr std::size_t encrypto::motion::kFiberStackSize = kDebug ? 32 * 1024 : 14 * 1024
 
constexpr FiberStackAllocator encrypto::motion::kFiberStackAllocator {FiberStackAllocator::kFixedSize}