31 #define FLAGS(x) ((uint8_t)((x) & 0xFF)), ((uint8_t)(((x) >> 8) & 0xFF))
44 static uint8_t
const noise_pattern_N[] = {
67 static uint8_t
const noise_pattern_K[] = {
92 static uint8_t
const noise_pattern_X[] = {
116 static uint8_t
const noise_pattern_NN[] = {
140 static uint8_t
const noise_pattern_NK[] = {
165 static uint8_t
const noise_pattern_NX[] = {
191 static uint8_t
const noise_pattern_XN[] = {
220 static uint8_t
const noise_pattern_XK[] = {
250 static uint8_t
const noise_pattern_XX[] = {
281 static uint8_t
const noise_pattern_KN[] = {
309 static uint8_t
const noise_pattern_KK[] = {
340 static uint8_t
const noise_pattern_KX[] = {
368 static uint8_t
const noise_pattern_IN[] = {
395 static uint8_t
const noise_pattern_IK[] = {
424 static uint8_t
const noise_pattern_IX[] = {
454 static uint8_t
const noise_pattern_XXfallback[] = {
483 static uint8_t
const noise_pattern_Xnoidh[] = {
507 static uint8_t
const noise_pattern_NXnoidh[] = {
533 static uint8_t
const noise_pattern_XXnoidh[] = {
564 static uint8_t
const noise_pattern_KXnoidh[] = {
594 static uint8_t
const noise_pattern_IKnoidh[] = {
623 static uint8_t
const noise_pattern_IXnoidh[] = {
651 static uint8_t
const noise_pattern_NNhfs[] = {
680 static uint8_t
const noise_pattern_NKhfs[] = {
710 static uint8_t
const noise_pattern_NXhfs[] = {
741 static uint8_t
const noise_pattern_XNhfs[] = {
775 static uint8_t
const noise_pattern_XKhfs[] = {
810 static uint8_t
const noise_pattern_XXhfs[] = {
846 static uint8_t
const noise_pattern_KNhfs[] = {
879 static uint8_t
const noise_pattern_KKhfs[] = {
915 static uint8_t
const noise_pattern_KXhfs[] = {
948 static uint8_t
const noise_pattern_INhfs[] = {
980 static uint8_t
const noise_pattern_IKhfs[] = {
1014 static uint8_t
const noise_pattern_IXhfs[] = {
1049 static uint8_t
const noise_pattern_XXfallback_hfs[] = {
1082 static uint8_t
const noise_pattern_NXnoidh_hfs[] = {
1113 static uint8_t
const noise_pattern_XXnoidh_hfs[] = {
1149 static uint8_t
const noise_pattern_KXnoidh_hfs[] = {
1184 static uint8_t
const noise_pattern_IKnoidh_hfs[] = {
1218 static uint8_t
const noise_pattern_IXnoidh_hfs[] = {
1308 return ((flags >> 8) & 0x00FF) | ((flags << 8) & 0xFF00);
#define NOISE_PATTERN_XX
Handshake pattern identifier for "XX".
#define NOISE_PAT_FLAG_LOCAL_EPHEMERAL
#define NOISE_PATTERN_NX_NOIDH_HFS
#define NOISE_PATTERN_NX_HFS
#define NOISE_PATTERN_KX
Handshake pattern identifier for "KX".
#define NOISE_PATTERN_KX_NOIDH
Handshake pattern identifier for "KXnoidh".
#define NOISE_PATTERN_KX_HFS
#define NOISE_PAT_FLAG_REMOTE_HYBRID_REQ
#define NOISE_PATTERN_IK_HFS
#define NOISE_PATTERN_IK
Handshake pattern identifier for "IK".
#define NOISE_PAT_FLAG_LOCAL_REQUIRED
#define NOISE_PATTERN_IX
Handshake pattern identifier for "IX".
#define NOISE_PATTERN_NN_HFS
#define NOISE_PATTERN_XN
Handshake pattern identifier for "XN".
#define NOISE_PATTERN_KK_HFS
#define NOISE_PATTERN_XK
Handshake pattern identifier for "XK".
#define NOISE_PATTERN_NK
Handshake pattern identifier for "NK".
NoisePatternFlags_t noise_pattern_reverse_flags(NoisePatternFlags_t flags)
Reverses the local and remote flags for a pattern.
#define NOISE_PATTERN_XN_HFS
#define NOISE_PAT_FLAG_LOCAL_STATIC
#define NOISE_PATTERN_XK_HFS
#define NOISE_PAT_FLAG_REMOTE_STATIC
#define NOISE_PATTERN_KK
Handshake pattern identifier for "KK".
#define NOISE_PATTERN_NK_HFS
#define NOISE_PAT_FLAG_REMOTE_HYBRID
#define NOISE_PAT_FLAG_REMOTE_EPHEMERAL
#define NOISE_PAT_FLAG_REMOTE_EPHEM_REQ
#define NOISE_PAT_FLAG_REMOTE_REQUIRED
#define NOISE_PATTERN_NX_NOIDH
Handshake pattern identifier for "NXnoidh".
const uint8_t * noise_pattern_lookup(int id)
Looks up a specific handshake pattern.
#define NOISE_TOKEN_FLIP_DIR
#define NOISE_PATTERN_K
Handshake pattern identifier for "K".
#define NOISE_PATTERN_IX_NOIDH_HFS
#define NOISE_PATTERN_IN
Handshake pattern identifier for "IN".
Internal definitions for the library.
#define NOISE_PATTERN_IN_HFS
#define NOISE_PATTERN_IK_NOIDH
Handshake pattern identifier for "IKnoidh".
#define NOISE_PATTERN_NX
Handshake pattern identifier for "NX".
#define NOISE_PATTERN_KN_HFS
#define NOISE_PATTERN_XX_HFS
#define NOISE_PATTERN_NN
Handshake pattern identifier for "NN".
#define NOISE_PATTERN_IX_HFS
#define NOISE_PATTERN_XX_FALLBACK
Handshake pattern identifier for "XXfallback".
#define NOISE_PATTERN_XX_NOIDH
Handshake pattern identifier for "XXnoidh".
#define NOISE_PATTERN_N
Handshake pattern identifier for "N".
#define NOISE_PATTERN_KN
Handshake pattern identifier for "KN".
#define NOISE_PATTERN_X_NOIDH
Handshake pattern identifier for "Xnoidh".
#define NOISE_PATTERN_IK_NOIDH_HFS
#define NOISE_PATTERN_XX_FALLBACK_HFS
#define NOISE_PATTERN_KX_NOIDH_HFS
#define NOISE_PAT_FLAG_LOCAL_HYBRID
#define NOISE_PATTERN_XX_NOIDH_HFS
#define NOISE_PATTERN_IX_NOIDH
Handshake pattern identifier for "IXnoidh".
#define NOISE_PATTERN_X
Handshake pattern identifier for "X".