20 #ifndef lime_defines_hpp
21 #define lime_defines_hpp
37 using limeRandomSeedCallback = std::function<bool(const bool get, std::shared_ptr<std::vector<uint8_t>> &randomSeed)>;
constexpr size_t DRMessageKeySize
DR Message Key are composed of a 32 bytes key and 16 bytes of IV.
Definition: lime_defines.hpp:62
const std::string hkdf_randomSeed_info
Definition: lime_defines.hpp:77
constexpr uint16_t DBInactiveUserBit
Definition: lime_defines.hpp:96
constexpr uint16_t DBCurveIdByte
Definition: lime_defines.hpp:97
constexpr int DBuserVersion
Definition: lime_defines.hpp:95
const std::string hkdf_DRChainKey_info
String used as info in the root key derivation.
Definition: lime_defines.hpp:59
constexpr size_t DRMessageIVSize
DR Message Key are composed of a 32 bytes key and 16 bytes of IV.
Definition: lime_defines.hpp:64
std::function< bool(const bool get, std::shared_ptr< std::vector< uint8_t >> &randomSeed)> limeRandomSeedCallback
define a callback function type used to get or set the random seed when performing multiple encryptio...
Definition: lime_defines.hpp:37
const std::string X3DH_AD_info
used to generate a shared AD based on Ik and deviceID
Definition: lime_defines.hpp:108
constexpr uint8_t DBInvalidIk
Definition: lime_defines.hpp:98
constexpr size_t DRrandomSeedSize
Definition: lime_defines.hpp:71
constexpr size_t DRMessageAuthTagSize
AEAD generates tag 16 bytes long.
Definition: lime_defines.hpp:84
const std::string X3DH_SK_info
shall be an ASCII string identifying the application (X3DH spec section 2.1)
Definition: lime_defines.hpp:106
constexpr size_t DRChainKeySize
Sending, Receiving and Root key chain use 32 bytes keys (spec 3.2)
Definition: lime_defines.hpp:57
constexpr size_t DRPkIndexSize
Definition: lime_defines.hpp:81