mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-28 23:55:43 +00:00
1959 lines
70 KiB
C
1959 lines
70 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snimcrypto@snimcrypto@stwofish.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snimcrypto@snimcrypto@stwofish.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef NU32 tyArray__gEFnRB9aCNYsXpRJmdSsCKw[256];
|
|
typedef tyArray__gEFnRB9aCNYsXpRJmdSsCKw tyArray__HwM2Ph10ewA49cc9ac05WIUQ[4];
|
|
typedef NU32 tyArray__0BuyudyzcsRvAXSF9alfatw[40];
|
|
struct tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg {tyArray__HwM2Ph10ewA49cc9ac05WIUQ S;
|
|
tyArray__0BuyudyzcsRvAXSF9alfatw K;
|
|
};
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
typedef NU32 tyArray__FleBT9cC2nxhgiXmSYYnEKA[4];
|
|
typedef NU8 tyArray__cdsir9aPB24hAk6k77P9b9bCA[8];
|
|
typedef tyArray__cdsir9aPB24hAk6k77P9b9bCA tyArray__OEPjp9ab7yvLWLXnzBsB12w[4];
|
|
typedef NU8 tyArray__Cxe6prgo05ftSyAqRHalCw[256];
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, rsMatrixMultiply__WVDrUQIuUtvqUk7c8amDbg)(tyArray__cdsir9aPB24hAk6k77P9b9bCA sd);
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, gfMod__YvGxN39b8rJ17nJOhvV8OMQ)(NU32 t, NU32 modulus);
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, polyMult__xFinGSEQ0hJuaLpEPlldhg)(NU32 a, NU32 b);
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, h__WkrurEasnpZP4CwS8tnrrQ)(NU32 ax, tyArray__FleBT9cC2nxhgiXmSYYnEKA al, NU32 k);
|
|
N_LIB_PRIVATE N_NIMCALL(void, fullKey__0fAZ3ji82cM7NaadPMX9csQ)(tyArray__FleBT9cC2nxhgiXmSYYnEKA al, NI32 k, tyArray__gEFnRB9aCNYsXpRJmdSsCKw* QF);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE TNimType NTI__iigPIJ6JY8ooY2CiyAZvrg_;
|
|
extern TNimType NTI__JrFyJbYm9b5I4hJ9cWDqvfYA_;
|
|
N_LIB_PRIVATE TNimType NTI__gEFnRB9aCNYsXpRJmdSsCKw_;
|
|
N_LIB_PRIVATE TNimType NTI__HwM2Ph10ewA49cc9ac05WIUQ_;
|
|
N_LIB_PRIVATE TNimType NTI__0BuyudyzcsRvAXSF9alfatw_;
|
|
static NIM_CONST tyArray__FleBT9cC2nxhgiXmSYYnEKA TM__bXN875oS53XzDCqaOwRU0w_3 = {((NU32) 0),
|
|
((NU32) 0),
|
|
((NU32) 0),
|
|
((NU32) 0)}
|
|
;
|
|
static NIM_CONST tyArray__cdsir9aPB24hAk6k77P9b9bCA TM__bXN875oS53XzDCqaOwRU0w_4 = {((NU8) 0),
|
|
((NU8) 0),
|
|
((NU8) 0),
|
|
((NU8) 0),
|
|
((NU8) 0),
|
|
((NU8) 0),
|
|
((NU8) 0),
|
|
((NU8) 0)}
|
|
;
|
|
N_LIB_PRIVATE NIM_CONST tyArray__OEPjp9ab7yvLWLXnzBsB12w RS__pyaxnA9b4lpgnN4JgpfMyfw = {{((NU8) 1),
|
|
((NU8) 164),
|
|
((NU8) 85),
|
|
((NU8) 135),
|
|
((NU8) 90),
|
|
((NU8) 88),
|
|
((NU8) 219),
|
|
((NU8) 158)}
|
|
,
|
|
{((NU8) 164),
|
|
((NU8) 86),
|
|
((NU8) 130),
|
|
((NU8) 243),
|
|
((NU8) 30),
|
|
((NU8) 198),
|
|
((NU8) 104),
|
|
((NU8) 229)}
|
|
,
|
|
{((NU8) 2),
|
|
((NU8) 161),
|
|
((NU8) 252),
|
|
((NU8) 193),
|
|
((NU8) 71),
|
|
((NU8) 174),
|
|
((NU8) 61),
|
|
((NU8) 25)}
|
|
,
|
|
{((NU8) 164),
|
|
((NU8) 85),
|
|
((NU8) 135),
|
|
((NU8) 90),
|
|
((NU8) 88),
|
|
((NU8) 219),
|
|
((NU8) 158),
|
|
((NU8) 3)}
|
|
}
|
|
;
|
|
N_LIB_PRIVATE NIM_CONST tyArray__Cxe6prgo05ftSyAqRHalCw Q1__5ufbhcMHaBHyw1BFF9cvwiQ = {((NU8) 117),
|
|
((NU8) 243),
|
|
((NU8) 198),
|
|
((NU8) 244),
|
|
((NU8) 219),
|
|
((NU8) 123),
|
|
((NU8) 251),
|
|
((NU8) 200),
|
|
((NU8) 74),
|
|
((NU8) 211),
|
|
((NU8) 230),
|
|
((NU8) 107),
|
|
((NU8) 69),
|
|
((NU8) 125),
|
|
((NU8) 232),
|
|
((NU8) 75),
|
|
((NU8) 214),
|
|
((NU8) 50),
|
|
((NU8) 216),
|
|
((NU8) 253),
|
|
((NU8) 55),
|
|
((NU8) 113),
|
|
((NU8) 241),
|
|
((NU8) 225),
|
|
((NU8) 48),
|
|
((NU8) 15),
|
|
((NU8) 248),
|
|
((NU8) 27),
|
|
((NU8) 135),
|
|
((NU8) 250),
|
|
((NU8) 6),
|
|
((NU8) 63),
|
|
((NU8) 94),
|
|
((NU8) 186),
|
|
((NU8) 174),
|
|
((NU8) 91),
|
|
((NU8) 138),
|
|
((NU8) 0),
|
|
((NU8) 188),
|
|
((NU8) 157),
|
|
((NU8) 109),
|
|
((NU8) 193),
|
|
((NU8) 177),
|
|
((NU8) 14),
|
|
((NU8) 128),
|
|
((NU8) 93),
|
|
((NU8) 210),
|
|
((NU8) 213),
|
|
((NU8) 160),
|
|
((NU8) 132),
|
|
((NU8) 7),
|
|
((NU8) 20),
|
|
((NU8) 181),
|
|
((NU8) 144),
|
|
((NU8) 44),
|
|
((NU8) 163),
|
|
((NU8) 178),
|
|
((NU8) 115),
|
|
((NU8) 76),
|
|
((NU8) 84),
|
|
((NU8) 146),
|
|
((NU8) 116),
|
|
((NU8) 54),
|
|
((NU8) 81),
|
|
((NU8) 56),
|
|
((NU8) 176),
|
|
((NU8) 189),
|
|
((NU8) 90),
|
|
((NU8) 252),
|
|
((NU8) 96),
|
|
((NU8) 98),
|
|
((NU8) 150),
|
|
((NU8) 108),
|
|
((NU8) 66),
|
|
((NU8) 247),
|
|
((NU8) 16),
|
|
((NU8) 124),
|
|
((NU8) 40),
|
|
((NU8) 39),
|
|
((NU8) 140),
|
|
((NU8) 19),
|
|
((NU8) 149),
|
|
((NU8) 156),
|
|
((NU8) 199),
|
|
((NU8) 36),
|
|
((NU8) 70),
|
|
((NU8) 59),
|
|
((NU8) 112),
|
|
((NU8) 202),
|
|
((NU8) 227),
|
|
((NU8) 133),
|
|
((NU8) 203),
|
|
((NU8) 17),
|
|
((NU8) 208),
|
|
((NU8) 147),
|
|
((NU8) 184),
|
|
((NU8) 166),
|
|
((NU8) 131),
|
|
((NU8) 32),
|
|
((NU8) 255),
|
|
((NU8) 159),
|
|
((NU8) 119),
|
|
((NU8) 195),
|
|
((NU8) 204),
|
|
((NU8) 3),
|
|
((NU8) 111),
|
|
((NU8) 8),
|
|
((NU8) 191),
|
|
((NU8) 64),
|
|
((NU8) 231),
|
|
((NU8) 43),
|
|
((NU8) 226),
|
|
((NU8) 121),
|
|
((NU8) 12),
|
|
((NU8) 170),
|
|
((NU8) 130),
|
|
((NU8) 65),
|
|
((NU8) 58),
|
|
((NU8) 234),
|
|
((NU8) 185),
|
|
((NU8) 228),
|
|
((NU8) 154),
|
|
((NU8) 164),
|
|
((NU8) 151),
|
|
((NU8) 126),
|
|
((NU8) 218),
|
|
((NU8) 122),
|
|
((NU8) 23),
|
|
((NU8) 102),
|
|
((NU8) 148),
|
|
((NU8) 161),
|
|
((NU8) 29),
|
|
((NU8) 61),
|
|
((NU8) 240),
|
|
((NU8) 222),
|
|
((NU8) 179),
|
|
((NU8) 11),
|
|
((NU8) 114),
|
|
((NU8) 167),
|
|
((NU8) 28),
|
|
((NU8) 239),
|
|
((NU8) 209),
|
|
((NU8) 83),
|
|
((NU8) 62),
|
|
((NU8) 143),
|
|
((NU8) 51),
|
|
((NU8) 38),
|
|
((NU8) 95),
|
|
((NU8) 236),
|
|
((NU8) 118),
|
|
((NU8) 42),
|
|
((NU8) 73),
|
|
((NU8) 129),
|
|
((NU8) 136),
|
|
((NU8) 238),
|
|
((NU8) 33),
|
|
((NU8) 196),
|
|
((NU8) 26),
|
|
((NU8) 235),
|
|
((NU8) 217),
|
|
((NU8) 197),
|
|
((NU8) 57),
|
|
((NU8) 153),
|
|
((NU8) 205),
|
|
((NU8) 173),
|
|
((NU8) 49),
|
|
((NU8) 139),
|
|
((NU8) 1),
|
|
((NU8) 24),
|
|
((NU8) 35),
|
|
((NU8) 221),
|
|
((NU8) 31),
|
|
((NU8) 78),
|
|
((NU8) 45),
|
|
((NU8) 249),
|
|
((NU8) 72),
|
|
((NU8) 79),
|
|
((NU8) 242),
|
|
((NU8) 101),
|
|
((NU8) 142),
|
|
((NU8) 120),
|
|
((NU8) 92),
|
|
((NU8) 88),
|
|
((NU8) 25),
|
|
((NU8) 141),
|
|
((NU8) 229),
|
|
((NU8) 152),
|
|
((NU8) 87),
|
|
((NU8) 103),
|
|
((NU8) 127),
|
|
((NU8) 5),
|
|
((NU8) 100),
|
|
((NU8) 175),
|
|
((NU8) 99),
|
|
((NU8) 182),
|
|
((NU8) 254),
|
|
((NU8) 245),
|
|
((NU8) 183),
|
|
((NU8) 60),
|
|
((NU8) 165),
|
|
((NU8) 206),
|
|
((NU8) 233),
|
|
((NU8) 104),
|
|
((NU8) 68),
|
|
((NU8) 224),
|
|
((NU8) 77),
|
|
((NU8) 67),
|
|
((NU8) 105),
|
|
((NU8) 41),
|
|
((NU8) 46),
|
|
((NU8) 172),
|
|
((NU8) 21),
|
|
((NU8) 89),
|
|
((NU8) 168),
|
|
((NU8) 10),
|
|
((NU8) 158),
|
|
((NU8) 110),
|
|
((NU8) 71),
|
|
((NU8) 223),
|
|
((NU8) 52),
|
|
((NU8) 53),
|
|
((NU8) 106),
|
|
((NU8) 207),
|
|
((NU8) 220),
|
|
((NU8) 34),
|
|
((NU8) 201),
|
|
((NU8) 192),
|
|
((NU8) 155),
|
|
((NU8) 137),
|
|
((NU8) 212),
|
|
((NU8) 237),
|
|
((NU8) 171),
|
|
((NU8) 18),
|
|
((NU8) 162),
|
|
((NU8) 13),
|
|
((NU8) 82),
|
|
((NU8) 187),
|
|
((NU8) 2),
|
|
((NU8) 47),
|
|
((NU8) 169),
|
|
((NU8) 215),
|
|
((NU8) 97),
|
|
((NU8) 30),
|
|
((NU8) 180),
|
|
((NU8) 80),
|
|
((NU8) 4),
|
|
((NU8) 246),
|
|
((NU8) 194),
|
|
((NU8) 22),
|
|
((NU8) 37),
|
|
((NU8) 134),
|
|
((NU8) 86),
|
|
((NU8) 85),
|
|
((NU8) 9),
|
|
((NU8) 190),
|
|
((NU8) 145)}
|
|
;
|
|
N_LIB_PRIVATE NIM_CONST tyArray__Cxe6prgo05ftSyAqRHalCw Q0__7LFMkiaXVkoCQjRzO2piNA = {((NU8) 169),
|
|
((NU8) 103),
|
|
((NU8) 179),
|
|
((NU8) 232),
|
|
((NU8) 4),
|
|
((NU8) 253),
|
|
((NU8) 163),
|
|
((NU8) 118),
|
|
((NU8) 154),
|
|
((NU8) 146),
|
|
((NU8) 128),
|
|
((NU8) 120),
|
|
((NU8) 228),
|
|
((NU8) 221),
|
|
((NU8) 209),
|
|
((NU8) 56),
|
|
((NU8) 13),
|
|
((NU8) 198),
|
|
((NU8) 53),
|
|
((NU8) 152),
|
|
((NU8) 24),
|
|
((NU8) 247),
|
|
((NU8) 236),
|
|
((NU8) 108),
|
|
((NU8) 67),
|
|
((NU8) 117),
|
|
((NU8) 55),
|
|
((NU8) 38),
|
|
((NU8) 250),
|
|
((NU8) 19),
|
|
((NU8) 148),
|
|
((NU8) 72),
|
|
((NU8) 242),
|
|
((NU8) 208),
|
|
((NU8) 139),
|
|
((NU8) 48),
|
|
((NU8) 132),
|
|
((NU8) 84),
|
|
((NU8) 223),
|
|
((NU8) 35),
|
|
((NU8) 25),
|
|
((NU8) 91),
|
|
((NU8) 61),
|
|
((NU8) 89),
|
|
((NU8) 243),
|
|
((NU8) 174),
|
|
((NU8) 162),
|
|
((NU8) 130),
|
|
((NU8) 99),
|
|
((NU8) 1),
|
|
((NU8) 131),
|
|
((NU8) 46),
|
|
((NU8) 217),
|
|
((NU8) 81),
|
|
((NU8) 155),
|
|
((NU8) 124),
|
|
((NU8) 166),
|
|
((NU8) 235),
|
|
((NU8) 165),
|
|
((NU8) 190),
|
|
((NU8) 22),
|
|
((NU8) 12),
|
|
((NU8) 227),
|
|
((NU8) 97),
|
|
((NU8) 192),
|
|
((NU8) 140),
|
|
((NU8) 58),
|
|
((NU8) 245),
|
|
((NU8) 115),
|
|
((NU8) 44),
|
|
((NU8) 37),
|
|
((NU8) 11),
|
|
((NU8) 187),
|
|
((NU8) 78),
|
|
((NU8) 137),
|
|
((NU8) 107),
|
|
((NU8) 83),
|
|
((NU8) 106),
|
|
((NU8) 180),
|
|
((NU8) 241),
|
|
((NU8) 225),
|
|
((NU8) 230),
|
|
((NU8) 189),
|
|
((NU8) 69),
|
|
((NU8) 226),
|
|
((NU8) 244),
|
|
((NU8) 182),
|
|
((NU8) 102),
|
|
((NU8) 204),
|
|
((NU8) 149),
|
|
((NU8) 3),
|
|
((NU8) 86),
|
|
((NU8) 212),
|
|
((NU8) 28),
|
|
((NU8) 30),
|
|
((NU8) 215),
|
|
((NU8) 251),
|
|
((NU8) 195),
|
|
((NU8) 142),
|
|
((NU8) 181),
|
|
((NU8) 233),
|
|
((NU8) 207),
|
|
((NU8) 191),
|
|
((NU8) 186),
|
|
((NU8) 234),
|
|
((NU8) 119),
|
|
((NU8) 57),
|
|
((NU8) 175),
|
|
((NU8) 51),
|
|
((NU8) 201),
|
|
((NU8) 98),
|
|
((NU8) 113),
|
|
((NU8) 129),
|
|
((NU8) 121),
|
|
((NU8) 9),
|
|
((NU8) 173),
|
|
((NU8) 36),
|
|
((NU8) 205),
|
|
((NU8) 249),
|
|
((NU8) 216),
|
|
((NU8) 229),
|
|
((NU8) 197),
|
|
((NU8) 185),
|
|
((NU8) 77),
|
|
((NU8) 68),
|
|
((NU8) 8),
|
|
((NU8) 134),
|
|
((NU8) 231),
|
|
((NU8) 161),
|
|
((NU8) 29),
|
|
((NU8) 170),
|
|
((NU8) 237),
|
|
((NU8) 6),
|
|
((NU8) 112),
|
|
((NU8) 178),
|
|
((NU8) 210),
|
|
((NU8) 65),
|
|
((NU8) 123),
|
|
((NU8) 160),
|
|
((NU8) 17),
|
|
((NU8) 49),
|
|
((NU8) 194),
|
|
((NU8) 39),
|
|
((NU8) 144),
|
|
((NU8) 32),
|
|
((NU8) 246),
|
|
((NU8) 96),
|
|
((NU8) 255),
|
|
((NU8) 150),
|
|
((NU8) 92),
|
|
((NU8) 177),
|
|
((NU8) 171),
|
|
((NU8) 158),
|
|
((NU8) 156),
|
|
((NU8) 82),
|
|
((NU8) 27),
|
|
((NU8) 95),
|
|
((NU8) 147),
|
|
((NU8) 10),
|
|
((NU8) 239),
|
|
((NU8) 145),
|
|
((NU8) 133),
|
|
((NU8) 73),
|
|
((NU8) 238),
|
|
((NU8) 45),
|
|
((NU8) 79),
|
|
((NU8) 143),
|
|
((NU8) 59),
|
|
((NU8) 71),
|
|
((NU8) 135),
|
|
((NU8) 109),
|
|
((NU8) 70),
|
|
((NU8) 214),
|
|
((NU8) 62),
|
|
((NU8) 105),
|
|
((NU8) 100),
|
|
((NU8) 42),
|
|
((NU8) 206),
|
|
((NU8) 203),
|
|
((NU8) 47),
|
|
((NU8) 252),
|
|
((NU8) 151),
|
|
((NU8) 5),
|
|
((NU8) 122),
|
|
((NU8) 172),
|
|
((NU8) 127),
|
|
((NU8) 213),
|
|
((NU8) 26),
|
|
((NU8) 75),
|
|
((NU8) 14),
|
|
((NU8) 167),
|
|
((NU8) 90),
|
|
((NU8) 40),
|
|
((NU8) 20),
|
|
((NU8) 63),
|
|
((NU8) 41),
|
|
((NU8) 136),
|
|
((NU8) 60),
|
|
((NU8) 76),
|
|
((NU8) 2),
|
|
((NU8) 184),
|
|
((NU8) 218),
|
|
((NU8) 176),
|
|
((NU8) 23),
|
|
((NU8) 85),
|
|
((NU8) 31),
|
|
((NU8) 138),
|
|
((NU8) 125),
|
|
((NU8) 87),
|
|
((NU8) 199),
|
|
((NU8) 141),
|
|
((NU8) 116),
|
|
((NU8) 183),
|
|
((NU8) 196),
|
|
((NU8) 159),
|
|
((NU8) 114),
|
|
((NU8) 126),
|
|
((NU8) 21),
|
|
((NU8) 34),
|
|
((NU8) 18),
|
|
((NU8) 88),
|
|
((NU8) 7),
|
|
((NU8) 153),
|
|
((NU8) 52),
|
|
((NU8) 110),
|
|
((NU8) 80),
|
|
((NU8) 222),
|
|
((NU8) 104),
|
|
((NU8) 101),
|
|
((NU8) 188),
|
|
((NU8) 219),
|
|
((NU8) 248),
|
|
((NU8) 200),
|
|
((NU8) 168),
|
|
((NU8) 43),
|
|
((NU8) 64),
|
|
((NU8) 220),
|
|
((NU8) 254),
|
|
((NU8) 50),
|
|
((NU8) 164),
|
|
((NU8) 202),
|
|
((NU8) 16),
|
|
((NU8) 33),
|
|
((NU8) 240),
|
|
((NU8) 211),
|
|
((NU8) 93),
|
|
((NU8) 15),
|
|
((NU8) 0),
|
|
((NU8) 111),
|
|
((NU8) 157),
|
|
((NU8) 54),
|
|
((NU8) 66),
|
|
((NU8) 74),
|
|
((NU8) 94),
|
|
((NU8) 193),
|
|
((NU8) 224)}
|
|
;
|
|
N_LIB_PRIVATE NIM_CONST tyArray__Cxe6prgo05ftSyAqRHalCw multEF__Q8hyKIV04gsJp9cFGgVmIOQ = {((NU8) 0),
|
|
((NU8) 239),
|
|
((NU8) 183),
|
|
((NU8) 88),
|
|
((NU8) 7),
|
|
((NU8) 232),
|
|
((NU8) 176),
|
|
((NU8) 95),
|
|
((NU8) 14),
|
|
((NU8) 225),
|
|
((NU8) 185),
|
|
((NU8) 86),
|
|
((NU8) 9),
|
|
((NU8) 230),
|
|
((NU8) 190),
|
|
((NU8) 81),
|
|
((NU8) 28),
|
|
((NU8) 243),
|
|
((NU8) 171),
|
|
((NU8) 68),
|
|
((NU8) 27),
|
|
((NU8) 244),
|
|
((NU8) 172),
|
|
((NU8) 67),
|
|
((NU8) 18),
|
|
((NU8) 253),
|
|
((NU8) 165),
|
|
((NU8) 74),
|
|
((NU8) 21),
|
|
((NU8) 250),
|
|
((NU8) 162),
|
|
((NU8) 77),
|
|
((NU8) 56),
|
|
((NU8) 215),
|
|
((NU8) 143),
|
|
((NU8) 96),
|
|
((NU8) 63),
|
|
((NU8) 208),
|
|
((NU8) 136),
|
|
((NU8) 103),
|
|
((NU8) 54),
|
|
((NU8) 217),
|
|
((NU8) 129),
|
|
((NU8) 110),
|
|
((NU8) 49),
|
|
((NU8) 222),
|
|
((NU8) 134),
|
|
((NU8) 105),
|
|
((NU8) 36),
|
|
((NU8) 203),
|
|
((NU8) 147),
|
|
((NU8) 124),
|
|
((NU8) 35),
|
|
((NU8) 204),
|
|
((NU8) 148),
|
|
((NU8) 123),
|
|
((NU8) 42),
|
|
((NU8) 197),
|
|
((NU8) 157),
|
|
((NU8) 114),
|
|
((NU8) 45),
|
|
((NU8) 194),
|
|
((NU8) 154),
|
|
((NU8) 117),
|
|
((NU8) 112),
|
|
((NU8) 159),
|
|
((NU8) 199),
|
|
((NU8) 40),
|
|
((NU8) 119),
|
|
((NU8) 152),
|
|
((NU8) 192),
|
|
((NU8) 47),
|
|
((NU8) 126),
|
|
((NU8) 145),
|
|
((NU8) 201),
|
|
((NU8) 38),
|
|
((NU8) 121),
|
|
((NU8) 150),
|
|
((NU8) 206),
|
|
((NU8) 33),
|
|
((NU8) 108),
|
|
((NU8) 131),
|
|
((NU8) 219),
|
|
((NU8) 52),
|
|
((NU8) 107),
|
|
((NU8) 132),
|
|
((NU8) 220),
|
|
((NU8) 51),
|
|
((NU8) 98),
|
|
((NU8) 141),
|
|
((NU8) 213),
|
|
((NU8) 58),
|
|
((NU8) 101),
|
|
((NU8) 138),
|
|
((NU8) 210),
|
|
((NU8) 61),
|
|
((NU8) 72),
|
|
((NU8) 167),
|
|
((NU8) 255),
|
|
((NU8) 16),
|
|
((NU8) 79),
|
|
((NU8) 160),
|
|
((NU8) 248),
|
|
((NU8) 23),
|
|
((NU8) 70),
|
|
((NU8) 169),
|
|
((NU8) 241),
|
|
((NU8) 30),
|
|
((NU8) 65),
|
|
((NU8) 174),
|
|
((NU8) 246),
|
|
((NU8) 25),
|
|
((NU8) 84),
|
|
((NU8) 187),
|
|
((NU8) 227),
|
|
((NU8) 12),
|
|
((NU8) 83),
|
|
((NU8) 188),
|
|
((NU8) 228),
|
|
((NU8) 11),
|
|
((NU8) 90),
|
|
((NU8) 181),
|
|
((NU8) 237),
|
|
((NU8) 2),
|
|
((NU8) 93),
|
|
((NU8) 178),
|
|
((NU8) 234),
|
|
((NU8) 5),
|
|
((NU8) 224),
|
|
((NU8) 15),
|
|
((NU8) 87),
|
|
((NU8) 184),
|
|
((NU8) 231),
|
|
((NU8) 8),
|
|
((NU8) 80),
|
|
((NU8) 191),
|
|
((NU8) 238),
|
|
((NU8) 1),
|
|
((NU8) 89),
|
|
((NU8) 182),
|
|
((NU8) 233),
|
|
((NU8) 6),
|
|
((NU8) 94),
|
|
((NU8) 177),
|
|
((NU8) 252),
|
|
((NU8) 19),
|
|
((NU8) 75),
|
|
((NU8) 164),
|
|
((NU8) 251),
|
|
((NU8) 20),
|
|
((NU8) 76),
|
|
((NU8) 163),
|
|
((NU8) 242),
|
|
((NU8) 29),
|
|
((NU8) 69),
|
|
((NU8) 170),
|
|
((NU8) 245),
|
|
((NU8) 26),
|
|
((NU8) 66),
|
|
((NU8) 173),
|
|
((NU8) 216),
|
|
((NU8) 55),
|
|
((NU8) 111),
|
|
((NU8) 128),
|
|
((NU8) 223),
|
|
((NU8) 48),
|
|
((NU8) 104),
|
|
((NU8) 135),
|
|
((NU8) 214),
|
|
((NU8) 57),
|
|
((NU8) 97),
|
|
((NU8) 142),
|
|
((NU8) 209),
|
|
((NU8) 62),
|
|
((NU8) 102),
|
|
((NU8) 137),
|
|
((NU8) 196),
|
|
((NU8) 43),
|
|
((NU8) 115),
|
|
((NU8) 156),
|
|
((NU8) 195),
|
|
((NU8) 44),
|
|
((NU8) 116),
|
|
((NU8) 155),
|
|
((NU8) 202),
|
|
((NU8) 37),
|
|
((NU8) 125),
|
|
((NU8) 146),
|
|
((NU8) 205),
|
|
((NU8) 34),
|
|
((NU8) 122),
|
|
((NU8) 149),
|
|
((NU8) 144),
|
|
((NU8) 127),
|
|
((NU8) 39),
|
|
((NU8) 200),
|
|
((NU8) 151),
|
|
((NU8) 120),
|
|
((NU8) 32),
|
|
((NU8) 207),
|
|
((NU8) 158),
|
|
((NU8) 113),
|
|
((NU8) 41),
|
|
((NU8) 198),
|
|
((NU8) 153),
|
|
((NU8) 118),
|
|
((NU8) 46),
|
|
((NU8) 193),
|
|
((NU8) 140),
|
|
((NU8) 99),
|
|
((NU8) 59),
|
|
((NU8) 212),
|
|
((NU8) 139),
|
|
((NU8) 100),
|
|
((NU8) 60),
|
|
((NU8) 211),
|
|
((NU8) 130),
|
|
((NU8) 109),
|
|
((NU8) 53),
|
|
((NU8) 218),
|
|
((NU8) 133),
|
|
((NU8) 106),
|
|
((NU8) 50),
|
|
((NU8) 221),
|
|
((NU8) 168),
|
|
((NU8) 71),
|
|
((NU8) 31),
|
|
((NU8) 240),
|
|
((NU8) 175),
|
|
((NU8) 64),
|
|
((NU8) 24),
|
|
((NU8) 247),
|
|
((NU8) 166),
|
|
((NU8) 73),
|
|
((NU8) 17),
|
|
((NU8) 254),
|
|
((NU8) 161),
|
|
((NU8) 78),
|
|
((NU8) 22),
|
|
((NU8) 249),
|
|
((NU8) 180),
|
|
((NU8) 91),
|
|
((NU8) 3),
|
|
((NU8) 236),
|
|
((NU8) 179),
|
|
((NU8) 92),
|
|
((NU8) 4),
|
|
((NU8) 235),
|
|
((NU8) 186),
|
|
((NU8) 85),
|
|
((NU8) 13),
|
|
((NU8) 226),
|
|
((NU8) 189),
|
|
((NU8) 82),
|
|
((NU8) 10),
|
|
((NU8) 229)}
|
|
;
|
|
N_LIB_PRIVATE NIM_CONST tyArray__Cxe6prgo05ftSyAqRHalCw mult5B__0MnJ9aQxoV0PTUzLuzZqKjw = {((NU8) 0),
|
|
((NU8) 91),
|
|
((NU8) 182),
|
|
((NU8) 237),
|
|
((NU8) 5),
|
|
((NU8) 94),
|
|
((NU8) 179),
|
|
((NU8) 232),
|
|
((NU8) 10),
|
|
((NU8) 81),
|
|
((NU8) 188),
|
|
((NU8) 231),
|
|
((NU8) 15),
|
|
((NU8) 84),
|
|
((NU8) 185),
|
|
((NU8) 226),
|
|
((NU8) 20),
|
|
((NU8) 79),
|
|
((NU8) 162),
|
|
((NU8) 249),
|
|
((NU8) 17),
|
|
((NU8) 74),
|
|
((NU8) 167),
|
|
((NU8) 252),
|
|
((NU8) 30),
|
|
((NU8) 69),
|
|
((NU8) 168),
|
|
((NU8) 243),
|
|
((NU8) 27),
|
|
((NU8) 64),
|
|
((NU8) 173),
|
|
((NU8) 246),
|
|
((NU8) 40),
|
|
((NU8) 115),
|
|
((NU8) 158),
|
|
((NU8) 197),
|
|
((NU8) 45),
|
|
((NU8) 118),
|
|
((NU8) 155),
|
|
((NU8) 192),
|
|
((NU8) 34),
|
|
((NU8) 121),
|
|
((NU8) 148),
|
|
((NU8) 207),
|
|
((NU8) 39),
|
|
((NU8) 124),
|
|
((NU8) 145),
|
|
((NU8) 202),
|
|
((NU8) 60),
|
|
((NU8) 103),
|
|
((NU8) 138),
|
|
((NU8) 209),
|
|
((NU8) 57),
|
|
((NU8) 98),
|
|
((NU8) 143),
|
|
((NU8) 212),
|
|
((NU8) 54),
|
|
((NU8) 109),
|
|
((NU8) 128),
|
|
((NU8) 219),
|
|
((NU8) 51),
|
|
((NU8) 104),
|
|
((NU8) 133),
|
|
((NU8) 222),
|
|
((NU8) 80),
|
|
((NU8) 11),
|
|
((NU8) 230),
|
|
((NU8) 189),
|
|
((NU8) 85),
|
|
((NU8) 14),
|
|
((NU8) 227),
|
|
((NU8) 184),
|
|
((NU8) 90),
|
|
((NU8) 1),
|
|
((NU8) 236),
|
|
((NU8) 183),
|
|
((NU8) 95),
|
|
((NU8) 4),
|
|
((NU8) 233),
|
|
((NU8) 178),
|
|
((NU8) 68),
|
|
((NU8) 31),
|
|
((NU8) 242),
|
|
((NU8) 169),
|
|
((NU8) 65),
|
|
((NU8) 26),
|
|
((NU8) 247),
|
|
((NU8) 172),
|
|
((NU8) 78),
|
|
((NU8) 21),
|
|
((NU8) 248),
|
|
((NU8) 163),
|
|
((NU8) 75),
|
|
((NU8) 16),
|
|
((NU8) 253),
|
|
((NU8) 166),
|
|
((NU8) 120),
|
|
((NU8) 35),
|
|
((NU8) 206),
|
|
((NU8) 149),
|
|
((NU8) 125),
|
|
((NU8) 38),
|
|
((NU8) 203),
|
|
((NU8) 144),
|
|
((NU8) 114),
|
|
((NU8) 41),
|
|
((NU8) 196),
|
|
((NU8) 159),
|
|
((NU8) 119),
|
|
((NU8) 44),
|
|
((NU8) 193),
|
|
((NU8) 154),
|
|
((NU8) 108),
|
|
((NU8) 55),
|
|
((NU8) 218),
|
|
((NU8) 129),
|
|
((NU8) 105),
|
|
((NU8) 50),
|
|
((NU8) 223),
|
|
((NU8) 132),
|
|
((NU8) 102),
|
|
((NU8) 61),
|
|
((NU8) 208),
|
|
((NU8) 139),
|
|
((NU8) 99),
|
|
((NU8) 56),
|
|
((NU8) 213),
|
|
((NU8) 142),
|
|
((NU8) 160),
|
|
((NU8) 251),
|
|
((NU8) 22),
|
|
((NU8) 77),
|
|
((NU8) 165),
|
|
((NU8) 254),
|
|
((NU8) 19),
|
|
((NU8) 72),
|
|
((NU8) 170),
|
|
((NU8) 241),
|
|
((NU8) 28),
|
|
((NU8) 71),
|
|
((NU8) 175),
|
|
((NU8) 244),
|
|
((NU8) 25),
|
|
((NU8) 66),
|
|
((NU8) 180),
|
|
((NU8) 239),
|
|
((NU8) 2),
|
|
((NU8) 89),
|
|
((NU8) 177),
|
|
((NU8) 234),
|
|
((NU8) 7),
|
|
((NU8) 92),
|
|
((NU8) 190),
|
|
((NU8) 229),
|
|
((NU8) 8),
|
|
((NU8) 83),
|
|
((NU8) 187),
|
|
((NU8) 224),
|
|
((NU8) 13),
|
|
((NU8) 86),
|
|
((NU8) 136),
|
|
((NU8) 211),
|
|
((NU8) 62),
|
|
((NU8) 101),
|
|
((NU8) 141),
|
|
((NU8) 214),
|
|
((NU8) 59),
|
|
((NU8) 96),
|
|
((NU8) 130),
|
|
((NU8) 217),
|
|
((NU8) 52),
|
|
((NU8) 111),
|
|
((NU8) 135),
|
|
((NU8) 220),
|
|
((NU8) 49),
|
|
((NU8) 106),
|
|
((NU8) 156),
|
|
((NU8) 199),
|
|
((NU8) 42),
|
|
((NU8) 113),
|
|
((NU8) 153),
|
|
((NU8) 194),
|
|
((NU8) 47),
|
|
((NU8) 116),
|
|
((NU8) 150),
|
|
((NU8) 205),
|
|
((NU8) 32),
|
|
((NU8) 123),
|
|
((NU8) 147),
|
|
((NU8) 200),
|
|
((NU8) 37),
|
|
((NU8) 126),
|
|
((NU8) 240),
|
|
((NU8) 171),
|
|
((NU8) 70),
|
|
((NU8) 29),
|
|
((NU8) 245),
|
|
((NU8) 174),
|
|
((NU8) 67),
|
|
((NU8) 24),
|
|
((NU8) 250),
|
|
((NU8) 161),
|
|
((NU8) 76),
|
|
((NU8) 23),
|
|
((NU8) 255),
|
|
((NU8) 164),
|
|
((NU8) 73),
|
|
((NU8) 18),
|
|
((NU8) 228),
|
|
((NU8) 191),
|
|
((NU8) 82),
|
|
((NU8) 9),
|
|
((NU8) 225),
|
|
((NU8) 186),
|
|
((NU8) 87),
|
|
((NU8) 12),
|
|
((NU8) 238),
|
|
((NU8) 181),
|
|
((NU8) 88),
|
|
((NU8) 3),
|
|
((NU8) 235),
|
|
((NU8) 176),
|
|
((NU8) 93),
|
|
((NU8) 6),
|
|
((NU8) 216),
|
|
((NU8) 131),
|
|
((NU8) 110),
|
|
((NU8) 53),
|
|
((NU8) 221),
|
|
((NU8) 134),
|
|
((NU8) 107),
|
|
((NU8) 48),
|
|
((NU8) 210),
|
|
((NU8) 137),
|
|
((NU8) 100),
|
|
((NU8) 63),
|
|
((NU8) 215),
|
|
((NU8) 140),
|
|
((NU8) 97),
|
|
((NU8) 58),
|
|
((NU8) 204),
|
|
((NU8) 151),
|
|
((NU8) 122),
|
|
((NU8) 33),
|
|
((NU8) 201),
|
|
((NU8) 146),
|
|
((NU8) 127),
|
|
((NU8) 36),
|
|
((NU8) 198),
|
|
((NU8) 157),
|
|
((NU8) 112),
|
|
((NU8) 43),
|
|
((NU8) 195),
|
|
((NU8) 152),
|
|
((NU8) 117),
|
|
((NU8) 46)}
|
|
;
|
|
extern TNimType* nimTypeRoot;
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (a == ((NI) (IL64(-9223372036854775807) - IL64(1)))); if (!(T3_)) goto LA4_;
|
|
|
|
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
T3_ = (b == ((NI) -1)); LA4_: ;
|
|
if (!T3_) goto LA5_;
|
|
|
|
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
result = NIM_TRUE; }
|
|
goto LA1_;
|
|
LA5_: ;
|
|
{
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
|
|
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
|
|
(*res) = (NI)(a / b); }
|
|
LA1_: ;
|
|
return result;}
|
|
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, gfMod__YvGxN39b8rJ17nJOhvV8OMQ)(NU32 t, NU32 modulus) { NU32 result; NU32 vmodulus; result = (NU32)0;
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
vmodulus = (NU32)((NU64)(modulus) << (NU64)(((NI) 7)));
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
result = t; { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU32 tt; NI TM__bXN875oS53XzDCqaOwRU0w_15;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 8))) goto LA3;
|
|
|
|
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
i = i_2;
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
tt = (NU32)(result ^ vmodulus);
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (!((NU32)(tt) < (NU32)(result))) goto LA6_;
|
|
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
result = tt; }
|
|
LA6_: ;
|
|
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
vmodulus = (NU32)((NU32)(vmodulus) >> (NU64)(((NI) 1)));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_15)) { raiseOverflow(); }; i_2 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_15); } LA3: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, polyMult__xFinGSEQ0hJuaLpEPlldhg)(NU32 a, NU32 b) { NU32 result; NU32 va; NU32 vb; result = (NU32)0;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
result = ((NU32) 0);
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
va = a;
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
vb = b; {
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
while (1) {
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (!!((va == ((NU32) 0)))) goto LA2;
|
|
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (!!(((NU32)(va & ((NU32) 1)) == ((NU32) 0)))) goto LA5_;
|
|
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
result = (NU32)(result ^ vb); }
|
|
LA5_: ;
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
vb = (NU32)((NU64)(vb) << (NU64)(((NI) 1)));
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
va = (NU32)((NU32)(va) >> (NU64)(((NI) 1))); } LA2: ;
|
|
}
|
|
return result;}
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, rsMatrixMultiply__WVDrUQIuUtvqUk7c8amDbg)(tyArray__cdsir9aPB24hAk6k77P9b9bCA sd) { NU32 result; tyArray__FleBT9cC2nxhgiXmSYYnEKA res; result = (NU32)0; nimZeroMem((void*)res, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA));
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
nimCopyMem((void*)res, (NIM_CONST void*)TM__bXN875oS53XzDCqaOwRU0w_3, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA)); { NI j; NI i; j = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU32 t; NI TM__bXN875oS53XzDCqaOwRU0w_17; NI TM__bXN875oS53XzDCqaOwRU0w_18;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i < ((NI) 4))) goto LA3;
|
|
|
|
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
j = i;
|
|
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
t = ((NU32) 0); { NI k; NI i_2; k = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU32 T7_; NU32 T8_; NI TM__bXN875oS53XzDCqaOwRU0w_16;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 8))) goto LA6;
|
|
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
k = i_2;
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if ((NU)(j) > (NU)(3)){ raiseIndexError2(j, 3); } if ((NU)(k) > (NU)(7)){ raiseIndexError2(k, 7); } if ((NU)(k) > (NU)(7)){ raiseIndexError2(k, 7); }
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T7_ = (NU32)0; T7_ = polyMult__xFinGSEQ0hJuaLpEPlldhg(((NU32) (RS__pyaxnA9b4lpgnN4JgpfMyfw[(j)- 0][(k)- 0])), ((NU32) (sd[(k)- 0])));
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T8_ = (NU32)0; T8_ = gfMod__YvGxN39b8rJ17nJOhvV8OMQ(T7_, ((NU32) 333)); t = (NU32)(t ^ T8_);
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_16)) { raiseOverflow(); }; i_2 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_16); } LA6: ;
|
|
}
|
|
}
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimSubInt(((NI) 3), j, &TM__bXN875oS53XzDCqaOwRU0w_17)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_17)) > (NU)(3)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_17), 3); }
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
res[((NI)(TM__bXN875oS53XzDCqaOwRU0w_17))- 0] = t;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_18)) { raiseOverflow(); }; i = (NI)(TM__bXN875oS53XzDCqaOwRU0w_18); } LA3: ;
|
|
}
|
|
}
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
result = (NU32)((NU32)((NU32)((NU32)((NU64)(((NU32) (res[(((NI) 0))- 0]))) << (NU64)(((NI) 24))) ^ (NU32)((NU64)(((NU32) (res[(((NI) 1))- 0]))) << (NU64)(((NI) 16)))) ^ (NU32)((NU64)(((NU32) (res[(((NI) 2))- 0]))) << (NU64)(((NI) 8)))) ^ ((NU32) (res[(((NI) 3))- 0]))); return result;}
|
|
|
|
#line 230 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NU32, h__WkrurEasnpZP4CwS8tnrrQ)(NU32 ax, tyArray__FleBT9cC2nxhgiXmSYYnEKA al, NU32 k) { NU32 result; NU8 y0; NU8 y1; NU8 y2; NU8 y3; NU8 z0; NU8 z1; NU8 z2; NU8 z3; result = (NU32)0;
|
|
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = ((NU8) (ax));
|
|
#line 232 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = ((NU8) ((NU32)((NU32)(ax) >> (NU64)(((NI) 8)))));
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = ((NU8) ((NU32)((NU32)(ax) >> (NU64)(((NI) 16)))));
|
|
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = ((NU8) ((NU32)((NU32)(ax) >> (NU64)(((NI) 24)))));
|
|
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{
|
|
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (!(k == ((NU32) 4))) goto LA3_;
|
|
|
|
#line 237 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 237 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y0)- 0] ^ ((NU8) (al[(((NI) 3))- 0])));
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y1)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 3))- 0]) >> (NU64)(((NI) 8))))));
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y2)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 3))- 0]) >> (NU64)(((NI) 16))))));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y3)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 3))- 0]) >> (NU64)(((NI) 24)))))); }
|
|
LA3_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{ NIM_BOOL T7_;
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T7_ = (NIM_BOOL)0;
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T7_ = (k == ((NU32) 4)); if (T7_) goto LA8_;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T7_ = (k == ((NU32) 3)); LA8_: ;
|
|
if (!T7_) goto LA9_;
|
|
|
|
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y0)- 0] ^ ((NU8) (al[(((NI) 2))- 0])));
|
|
#line 243 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 243 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y1)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 2))- 0]) >> (NU64)(((NI) 8))))));
|
|
#line 244 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 244 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y2)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 2))- 0]) >> (NU64)(((NI) 16))))));
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y3)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 2))- 0]) >> (NU64)(((NI) 24)))))); }
|
|
LA9_: ;
|
|
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{ NIM_BOOL T13_; NIM_BOOL T14_;
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T13_ = (NIM_BOOL)0;
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T14_ = (NIM_BOOL)0;
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T14_ = (k == ((NU32) 4)); if (T14_) goto LA15_;
|
|
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T14_ = (k == ((NU32) 3)); LA15_: ;
|
|
T13_ = T14_; if (T13_) goto LA16_;
|
|
|
|
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T13_ = (k == ((NU32) 2)); LA16_: ;
|
|
if (!T13_) goto LA17_;
|
|
|
|
#line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y0)- 0] ^ ((NU8) (al[(((NI) 1))- 0]))))- 0] ^ ((NU8) (al[(((NI) 0))- 0]))))- 0];
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y1)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 1))- 0]) >> (NU64)(((NI) 8)))))))- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 0))- 0]) >> (NU64)(((NI) 8)))))))- 0];
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y2)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 1))- 0]) >> (NU64)(((NI) 16)))))))- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 0))- 0]) >> (NU64)(((NI) 16)))))))- 0];
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y3)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 1))- 0]) >> (NU64)(((NI) 24)))))))- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 0))- 0]) >> (NU64)(((NI) 24)))))))- 0]; }
|
|
LA17_: ;
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
z0 = (NU8)((NU8)((NU8)(multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y0)- 0] ^ y1) ^ multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y2)- 0]) ^ mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y3)- 0]);
|
|
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
z1 = (NU8)((NU8)((NU8)(multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y0)- 0] ^ mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y1)- 0]) ^ y2) ^ multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y3)- 0]);
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
z2 = (NU8)((NU8)((NU8)(mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y0)- 0] ^ multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y1)- 0]) ^ multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y2)- 0]) ^ y3);
|
|
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
z3 = (NU8)((NU8)((NU8)(y0 ^ multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y1)- 0]) ^ mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y2)- 0]) ^ mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y3)- 0]);
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
result = (NU32)((NU32)((NU32)((NU32)((NU64)(((NU32) (z0))) << (NU64)(((NI) 24))) ^ (NU32)((NU64)(((NU32) (z1))) << (NU64)(((NI) 16)))) ^ (NU32)((NU64)(((NU32) (z2))) << (NU64)(((NI) 8)))) ^ ((NU32) (z3))); return result;}
|
|
|
|
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, fullKey__0fAZ3ji82cM7NaadPMX9csQ)(tyArray__FleBT9cC2nxhgiXmSYYnEKA al, NI32 k, tyArray__gEFnRB9aCNYsXpRJmdSsCKw* QF) { { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU8 y0; NU8 y1; NU8 y2; NU8 y3; NI TM__bXN875oS53XzDCqaOwRU0w_32;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 256))) goto LA3;
|
|
|
|
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
i = i_2;
|
|
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = ((NU8) (i));
|
|
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = ((NU8) (i));
|
|
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = ((NU8) (i));
|
|
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = ((NU8) (i));
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{
|
|
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (!(k == ((NI32) 4))) goto LA6_;
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y0)- 0] ^ ((NU8) (al[(((NI) 3))- 0])));
|
|
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y1)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 3))- 0]) >> (NU64)(((NI) 8))))));
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y2)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 3))- 0]) >> (NU64)(((NI) 16))))));
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y3)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 3))- 0]) >> (NU64)(((NI) 24)))))); }
|
|
LA6_: ;
|
|
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{ NIM_BOOL T10_;
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T10_ = (NIM_BOOL)0;
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T10_ = (k == ((NI32) 4)); if (T10_) goto LA11_;
|
|
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T10_ = (k == ((NI32) 3)); LA11_: ;
|
|
if (!T10_) goto LA12_;
|
|
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 273 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y0)- 0] ^ ((NU8) (al[(((NI) 2))- 0])));
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = (NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y1)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 2))- 0]) >> (NU64)(((NI) 8))))));
|
|
#line 275 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 275 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y2)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 2))- 0]) >> (NU64)(((NI) 16))))));
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = (NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y3)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 2))- 0]) >> (NU64)(((NI) 24)))))); }
|
|
LA12_: ;
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
{ NIM_BOOL T16_; NIM_BOOL T17_;
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T16_ = (NIM_BOOL)0;
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T17_ = (NIM_BOOL)0;
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T17_ = (k == ((NI32) 4)); if (T17_) goto LA18_;
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T17_ = (k == ((NI32) 3)); LA18_: ;
|
|
T16_ = T17_; if (T16_) goto LA19_;
|
|
|
|
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T16_ = (k == ((NI32) 2)); LA19_: ;
|
|
if (!T16_) goto LA20_;
|
|
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y0 = Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y0)- 0] ^ ((NU8) (al[(((NI) 1))- 0]))))- 0] ^ ((NU8) (al[(((NI) 0))- 0]))))- 0];
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y1 = Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y1)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 1))- 0]) >> (NU64)(((NI) 8)))))))- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 0))- 0]) >> (NU64)(((NI) 8)))))))- 0];
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y2 = Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q0__7LFMkiaXVkoCQjRzO2piNA[(y2)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 1))- 0]) >> (NU64)(((NI) 16)))))))- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 0))- 0]) >> (NU64)(((NI) 16)))))))- 0];
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
y3 = Q0__7LFMkiaXVkoCQjRzO2piNA[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[((NU8)(Q1__5ufbhcMHaBHyw1BFF9cvwiQ[(y3)- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 1))- 0]) >> (NU64)(((NI) 24)))))))- 0] ^ ((NU8) ((NU32)((NU32)(al[(((NI) 0))- 0]) >> (NU64)(((NI) 24)))))))- 0]; }
|
|
LA20_: ;
|
|
if ((NU)(i) > (NU)(255)){ raiseIndexError2(i, 255); }
|
|
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 284 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 284 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
QF[(((NI) 0))- 0][(i)- 0] = (NU32)((NU32)((NU32)((NU32)((NU64)(((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y0)- 0]))) << (NU64)(((NI) 24))) | (NU32)((NU64)(((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y0)- 0]))) << (NU64)(((NI) 16)))) | (NU32)((NU64)(((NU32) (mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y0)- 0]))) << (NU64)(((NI) 8)))) | ((NU32) (y0))); if ((NU)(i) > (NU)(255)){ raiseIndexError2(i, 255); }
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
QF[(((NI) 1))- 0][(i)- 0] = (NU32)((NU32)((NU32)((NU32)((NU32)(((NU32) (y1))) << (NU32)(((NU32) 24))) | (NU32)((NU64)(((NU32) (mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y1)- 0]))) << (NU64)(((NI) 16)))) | (NU32)((NU64)(((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y1)- 0]))) << (NU64)(((NI) 8)))) | ((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y1)- 0]))); if ((NU)(i) > (NU)(255)){ raiseIndexError2(i, 255); }
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 292 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
QF[(((NI) 2))- 0][(i)- 0] = (NU32)((NU32)((NU32)((NU32)((NU64)(((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y2)- 0]))) << (NU64)(((NI) 24))) | (NU32)((NU64)(((NU32) (y2))) << (NU64)(((NI) 16)))) | (NU32)((NU64)(((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y2)- 0]))) << (NU64)(((NI) 8)))) | ((NU32) (mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y2)- 0]))); if ((NU)(i) > (NU)(255)){ raiseIndexError2(i, 255); }
|
|
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 296 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
QF[(((NI) 3))- 0][(i)- 0] = (NU32)((NU32)((NU32)((NU32)((NU64)(((NU32) (mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y3)- 0]))) << (NU64)(((NI) 24))) | (NU32)((NU64)(((NU32) (multEF__Q8hyKIV04gsJp9cFGgVmIOQ[(y3)- 0]))) << (NU64)(((NI) 16)))) | (NU32)((NU64)(((NU32) (y3))) << (NU64)(((NI) 8)))) | ((NU32) (mult5B__0MnJ9aQxoV0PTUzLuzZqKjw[(y3)- 0])));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_32)) { raiseOverflow(); }; i_2 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_32); } LA3: ;
|
|
}
|
|
}
|
|
}
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, initTwofishContext__GdOcVkGSJxVIvDm4ZRdwVA)(tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg* ctx, NI N, NU8* key_0, NI key_0Len_0) { NU32 A; NU32 B; tyArray__FleBT9cC2nxhgiXmSYYnEKA Mo; tyArray__FleBT9cC2nxhgiXmSYYnEKA Me; tyArray__FleBT9cC2nxhgiXmSYYnEKA S; tyArray__cdsir9aPB24hAk6k77P9b9bCA vector; NI k; NI TM__bXN875oS53XzDCqaOwRU0w_5; NI TM__bXN875oS53XzDCqaOwRU0w_6; A = (NU32)0; B = (NU32)0; nimZeroMem((void*)Mo, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA));
|
|
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
nimCopyMem((void*)Mo, (NIM_CONST void*)TM__bXN875oS53XzDCqaOwRU0w_3, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA)); nimZeroMem((void*)Me, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA));
|
|
#line 384 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
nimCopyMem((void*)Me, (NIM_CONST void*)TM__bXN875oS53XzDCqaOwRU0w_3, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA)); nimZeroMem((void*)S, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA));
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
nimCopyMem((void*)S, (NIM_CONST void*)TM__bXN875oS53XzDCqaOwRU0w_3, sizeof(tyArray__FleBT9cC2nxhgiXmSYYnEKA)); nimZeroMem((void*)vector, sizeof(tyArray__cdsir9aPB24hAk6k77P9b9bCA));
|
|
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
nimCopyMem((void*)vector, (NIM_CONST void*)TM__bXN875oS53XzDCqaOwRU0w_4, sizeof(tyArray__cdsir9aPB24hAk6k77P9b9bCA));
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimAddInt(N, ((NI) 63), &TM__bXN875oS53XzDCqaOwRU0w_5)) { raiseOverflow(); }; if (((NI) 64) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_5), ((NI) 64), &TM__bXN875oS53XzDCqaOwRU0w_6)) { raiseOverflow(); }; k = (NI)(TM__bXN875oS53XzDCqaOwRU0w_6); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU32 pX60gensym150035433_; NI TM__bXN875oS53XzDCqaOwRU0w_7; NU32 pX60gensym150045443_; NI TM__bXN875oS53XzDCqaOwRU0w_8; NI TM__bXN875oS53XzDCqaOwRU0w_9; NI TM__bXN875oS53XzDCqaOwRU0w_10;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < k)) goto LA3;
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
i = i_2; if ((NU)(i) > (NU)(3)){ raiseIndexError2(i, 3); }
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
|
|
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 8), i, &TM__bXN875oS53XzDCqaOwRU0w_7)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_7)) >= (NU)(key_0Len_0)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_7),key_0Len_0-1); } pX60gensym150035433_ = (*((NU32*) ((&key_0[(NI)(TM__bXN875oS53XzDCqaOwRU0w_7)])))); Me[(i)- 0] = pX60gensym150035433_; if ((NU)(i) > (NU)(3)){ raiseIndexError2(i, 3); }
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 343 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
|
|
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 8), i, &TM__bXN875oS53XzDCqaOwRU0w_8)) { raiseOverflow(); }; if (nimAddInt(((NI) 4), (NI)(TM__bXN875oS53XzDCqaOwRU0w_8), &TM__bXN875oS53XzDCqaOwRU0w_9)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_9)) >= (NU)(key_0Len_0)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_9),key_0Len_0-1); } pX60gensym150045443_ = (*((NU32*) ((&key_0[(NI)(TM__bXN875oS53XzDCqaOwRU0w_9)])))); Mo[(i)- 0] = pX60gensym150045443_;
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_10)) { raiseOverflow(); }; i_2 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_10); } LA3: ;
|
|
}
|
|
}
|
|
{ NI i_3; NI i_4; i_3 = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_4 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__bXN875oS53XzDCqaOwRU0w_13; NI TM__bXN875oS53XzDCqaOwRU0w_14; NI TM__bXN875oS53XzDCqaOwRU0w_19;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_4 < k)) goto LA6;
|
|
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
i_3 = i_4; { NI j; NI i_5; j = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_5 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__bXN875oS53XzDCqaOwRU0w_11; NI TM__bXN875oS53XzDCqaOwRU0w_12;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_5 < ((NI) 4))) goto LA9;
|
|
|
|
#line 394 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
j = i_5; if ((NU)(j) > (NU)(7)){ raiseIndexError2(j, 7); }
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if ((NU)(i_3) > (NU)(3)){ raiseIndexError2(i_3, 3); }
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
vector[(j)- 0] = ((NU8) ((NU32)((NU32)((NU32)(Me[(i_3)- 0]) >> (NU32)((NU32)((NU32)(((NU32) (j))) * (NU32)(((NU32) 8))))) & ((NU32) 255))));
|
|
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimAddInt(j, ((NI) 4), &TM__bXN875oS53XzDCqaOwRU0w_11)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_11)) > (NU)(7)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_11), 7); }
|
|
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if ((NU)(i_3) > (NU)(3)){ raiseIndexError2(i_3, 3); }
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
vector[((NI)(TM__bXN875oS53XzDCqaOwRU0w_11))- 0] = ((NU8) ((NU32)((NU32)((NU32)(Mo[(i_3)- 0]) >> (NU32)((NU32)((NU32)(((NU32) (j))) * (NU32)(((NU32) 8))))) & ((NU32) 255))));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_5, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_12)) { raiseOverflow(); }; i_5 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_12); } LA9: ;
|
|
}
|
|
}
|
|
|
|
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimSubInt(k, i_3, &TM__bXN875oS53XzDCqaOwRU0w_13)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_13), ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_14)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_14)) > (NU)(3)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_14), 3); }
|
|
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
S[((NI)(TM__bXN875oS53XzDCqaOwRU0w_14))- 0] = rsMatrixMultiply__WVDrUQIuUtvqUk7c8amDbg(vector);
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_4, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_19)) { raiseOverflow(); }; i_4 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_19); } LA6: ;
|
|
}
|
|
}
|
|
{ NI i_6; NI i_7; i_6 = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_7 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__bXN875oS53XzDCqaOwRU0w_20; NI TM__bXN875oS53XzDCqaOwRU0w_21; NI TM__bXN875oS53XzDCqaOwRU0w_22; NI TM__bXN875oS53XzDCqaOwRU0w_23; NI TM__bXN875oS53XzDCqaOwRU0w_24; NU32 T13_; NI TM__bXN875oS53XzDCqaOwRU0w_25; NI TM__bXN875oS53XzDCqaOwRU0w_26; NI TM__bXN875oS53XzDCqaOwRU0w_27; NU32 T14_; NI TM__bXN875oS53XzDCqaOwRU0w_28; NI TM__bXN875oS53XzDCqaOwRU0w_29; NI TM__bXN875oS53XzDCqaOwRU0w_30; NI TM__bXN875oS53XzDCqaOwRU0w_31;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_7 < ((NI) 20))) goto LA12;
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
i_6 = i_7;
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 2), i_6, &TM__bXN875oS53XzDCqaOwRU0w_20)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_20), ((NI) 16843009), &TM__bXN875oS53XzDCqaOwRU0w_21)) { raiseOverflow(); };
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
A = h__WkrurEasnpZP4CwS8tnrrQ(((NU32) ((NI)(TM__bXN875oS53XzDCqaOwRU0w_21))), Me, ((NU32) (k)));
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 2), i_6, &TM__bXN875oS53XzDCqaOwRU0w_22)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_22), ((NI) 16843009), &TM__bXN875oS53XzDCqaOwRU0w_23)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_23), ((NI) 16843009), &TM__bXN875oS53XzDCqaOwRU0w_24)) { raiseOverflow(); };
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T13_ = (NU32)0; T13_ = h__WkrurEasnpZP4CwS8tnrrQ(((NU32) ((NI)(TM__bXN875oS53XzDCqaOwRU0w_24))), Mo, ((NU32) (k)));
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 2), i_6, &TM__bXN875oS53XzDCqaOwRU0w_25)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_25), ((NI) 16843009), &TM__bXN875oS53XzDCqaOwRU0w_26)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_26), ((NI) 16843009), &TM__bXN875oS53XzDCqaOwRU0w_27)) { raiseOverflow(); };
|
|
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
T14_ = (NU32)0; T14_ = h__WkrurEasnpZP4CwS8tnrrQ(((NU32) ((NI)(TM__bXN875oS53XzDCqaOwRU0w_27))), Mo, ((NU32) (k))); B = (NU32)((NU32)((NU32)(T13_) << (NU32)(((NU32) 8))) | (NU32)((NU32)(T14_) >> (NU32)(((NU32) 24))));
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 2), i_6, &TM__bXN875oS53XzDCqaOwRU0w_28)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_28)) > (NU)(39)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_28), 39); }
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
(*ctx).K[((NI)(TM__bXN875oS53XzDCqaOwRU0w_28))- 0] = (NU32)((NU32)(A) + (NU32)(B));
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if (nimMulInt(((NI) 2), i_6, &TM__bXN875oS53XzDCqaOwRU0w_29)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__bXN875oS53XzDCqaOwRU0w_29), ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_30)) { raiseOverflow(); }; if ((NU)((NI)(TM__bXN875oS53XzDCqaOwRU0w_30)) > (NU)(39)){ raiseIndexError2((NI)(TM__bXN875oS53XzDCqaOwRU0w_30), 39); }
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
(*ctx).K[((NI)(TM__bXN875oS53XzDCqaOwRU0w_30))- 0] = (NU32)((NU32)((NU32)((NU32)((NU32)(A) + (NU32)((NU32)((NU32)(((NU32) 2)) * (NU32)(B))))) << (NU32)(((NU32) 9))) | (NU32)((NU32)((NU32)((NU32)(A) + (NU32)((NU32)((NU32)(((NU32) 2)) * (NU32)(B))))) >> (NU32)(((NU32) 23))));
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_7, ((NI) 1), &TM__bXN875oS53XzDCqaOwRU0w_31)) { raiseOverflow(); }; i_7 = (NI)(TM__bXN875oS53XzDCqaOwRU0w_31); } LA12: ;
|
|
}
|
|
}
|
|
|
|
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
if ((k) < ((NI32) (-2147483647 -1)) || (k) > ((NI32) 2147483647)){ raiseRangeErrorI(k, ((NI32) (-2147483647 -1)), ((NI32) 2147483647)); }
|
|
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/twofish.nim"
|
|
fullKey__0fAZ3ji82cM7NaadPMX9csQ(S, ((NI32) (k)), (*ctx).S);
|
|
}
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimcrypto_twofishDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__bXN875oS53XzDCqaOwRU0w_2_2[2];
|
|
static TNimNode TM__bXN875oS53XzDCqaOwRU0w_0[3];NTI__iigPIJ6JY8ooY2CiyAZvrg_.size = sizeof(tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg);
|
|
NTI__iigPIJ6JY8ooY2CiyAZvrg_.kind = 18;
|
|
NTI__iigPIJ6JY8ooY2CiyAZvrg_.base = 0;
|
|
NTI__iigPIJ6JY8ooY2CiyAZvrg_.flags = 3;
|
|
NTI__iigPIJ6JY8ooY2CiyAZvrg_.name = "twofish256";
|
|
NTI__iigPIJ6JY8ooY2CiyAZvrg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__iigPIJ6JY8ooY2CiyAZvrg_;
|
|
TM__bXN875oS53XzDCqaOwRU0w_2_2[0] = &TM__bXN875oS53XzDCqaOwRU0w_0[1];
|
|
NTI__gEFnRB9aCNYsXpRJmdSsCKw_.size = sizeof(tyArray__gEFnRB9aCNYsXpRJmdSsCKw);
|
|
NTI__gEFnRB9aCNYsXpRJmdSsCKw_.kind = 16;
|
|
NTI__gEFnRB9aCNYsXpRJmdSsCKw_.base = (&NTI__JrFyJbYm9b5I4hJ9cWDqvfYA_);
|
|
NTI__gEFnRB9aCNYsXpRJmdSsCKw_.flags = 3;
|
|
NTI__gEFnRB9aCNYsXpRJmdSsCKw_.name = "array[0..255, uint32]";
|
|
NTI__gEFnRB9aCNYsXpRJmdSsCKw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__gEFnRB9aCNYsXpRJmdSsCKw_;
|
|
NTI__HwM2Ph10ewA49cc9ac05WIUQ_.size = sizeof(tyArray__HwM2Ph10ewA49cc9ac05WIUQ);
|
|
NTI__HwM2Ph10ewA49cc9ac05WIUQ_.kind = 16;
|
|
NTI__HwM2Ph10ewA49cc9ac05WIUQ_.base = (&NTI__gEFnRB9aCNYsXpRJmdSsCKw_);
|
|
NTI__HwM2Ph10ewA49cc9ac05WIUQ_.flags = 3;
|
|
NTI__HwM2Ph10ewA49cc9ac05WIUQ_.name = "array[0..3, array[0..255, uint32]]";
|
|
NTI__HwM2Ph10ewA49cc9ac05WIUQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__HwM2Ph10ewA49cc9ac05WIUQ_;
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[1].kind = 1;
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[1].offset = offsetof(tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg, S);
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[1].typ = (&NTI__HwM2Ph10ewA49cc9ac05WIUQ_);
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[1].name = "S";
|
|
TM__bXN875oS53XzDCqaOwRU0w_2_2[1] = &TM__bXN875oS53XzDCqaOwRU0w_0[2];
|
|
NTI__0BuyudyzcsRvAXSF9alfatw_.size = sizeof(tyArray__0BuyudyzcsRvAXSF9alfatw);
|
|
NTI__0BuyudyzcsRvAXSF9alfatw_.kind = 16;
|
|
NTI__0BuyudyzcsRvAXSF9alfatw_.base = (&NTI__JrFyJbYm9b5I4hJ9cWDqvfYA_);
|
|
NTI__0BuyudyzcsRvAXSF9alfatw_.flags = 3;
|
|
NTI__0BuyudyzcsRvAXSF9alfatw_.name = "array[0..39, uint32]";
|
|
NTI__0BuyudyzcsRvAXSF9alfatw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__0BuyudyzcsRvAXSF9alfatw_;
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[2].kind = 1;
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[2].offset = offsetof(tyObject_TwofishContext__iigPIJ6JY8ooY2CiyAZvrg, K);
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[2].typ = (&NTI__0BuyudyzcsRvAXSF9alfatw_);
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[2].name = "K";
|
|
TM__bXN875oS53XzDCqaOwRU0w_0[0].len = 2; TM__bXN875oS53XzDCqaOwRU0w_0[0].kind = 2; TM__bXN875oS53XzDCqaOwRU0w_0[0].sons = &TM__bXN875oS53XzDCqaOwRU0w_2_2[0];
|
|
NTI__iigPIJ6JY8ooY2CiyAZvrg_.node = &TM__bXN875oS53XzDCqaOwRU0w_0[0];
|
|
}
|
|
|