lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Static Public Member Functions | List of all members
lime::C255 Struct Reference

curve 25519 data types size definition More...

Static Public Member Functions

static constexpr lime::CurveId curveId ()
 the C25519 curve id using the CurveId enumeration More...
 
static constexpr size_t Xsize (lime::Xtype dataType)
 for X25519, public, private and shared secret have the same length: 32 bytes More...
 
static constexpr size_t DSAsize (lime::DSAtype dataType)
 for Ed25519, public and private key have the same length: 32 bytes, signature is 64 bytes long More...
 

Detailed Description

curve 25519 data types size definition

use a 4 chars(C255) to identify it to improve code readability

Member Function Documentation

◆ curveId()

static constexpr lime::CurveId lime::C255::curveId ( )
inlinestatic

the C25519 curve id using the CurveId enumeration

◆ DSAsize()

static constexpr size_t lime::C255::DSAsize ( lime::DSAtype  dataType)
inlinestatic

for Ed25519, public and private key have the same length: 32 bytes, signature is 64 bytes long

◆ Xsize()

static constexpr size_t lime::C255::Xsize ( lime::Xtype  dataType)
inlinestatic

for X25519, public, private and shared secret have the same length: 32 bytes


The documentation for this struct was generated from the following file: