libcryptosec
Classes | Macros
SecretSharer.cpp File Reference
#include <libcryptosec/SecretSharer.h>

Classes

struct  splitContext
 
struct  assembleContext
 

Macros

#define VDL(arguments)   /* empty */
 
#define isEven(x)   (((x) & 0x01) == 0)
 
#define isOdd(x)   ((x) & 0x01)
 
#define swap(x, y)   (x ^= y, y ^= x, x ^= y)
 
#define PRIME   (65521ul)
 
#define PARTS_LIMIT   (PRIME)
 
#define THRESHOLD_LIMIT   (PRIME - 1)
 
#define IMAGIC   0x8a31
 
#define DMAGIC   0x1347
 

Macro Definition Documentation

◆ DMAGIC

#define DMAGIC   0x1347

◆ IMAGIC

#define IMAGIC   0x8a31

◆ isEven

#define isEven (   x)    (((x) & 0x01) == 0)

◆ isOdd

#define isOdd (   x)    ((x) & 0x01)

◆ PARTS_LIMIT

#define PARTS_LIMIT   (PRIME)

◆ PRIME

#define PRIME   (65521ul)

◆ swap

#define swap (   x,
 
)    (x ^= y, y ^= x, x ^= y)

◆ THRESHOLD_LIMIT

#define THRESHOLD_LIMIT   (PRIME - 1)

◆ VDL

#define VDL (   arguments)    /* empty */