nwaku/nimcache/release/chat2/@m..@s..@svendor@snim-libp2p@slibp2p@scrypto@scrypto.nim.c

4197 lines
309 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 -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/examples/v2 -o nimcache/release/chat2/@m..@s..@svendor@snim-libp2p@slibp2p@scrypto@scrypto.nim.c.o nimcache/release/chat2/@m..@s..@svendor@snim-libp2p@slibp2p@scrypto@scrypto.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#include "bearssl_hash.h"
#include "bearssl_rsa.h"
#include "bearssl_ec.h"
#include "bearssl_rand.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_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ;
typedef struct tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw;
typedef struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA;
typedef struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w;
typedef struct tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA;
typedef struct tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg;
typedef struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA;
typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA;
typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ;
typedef struct tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q;
typedef struct tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ;
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
typedef struct tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA;
typedef struct tyObject_Result__SyOVenwKrVcTdMbQDaxDXw tyObject_Result__SyOVenwKrVcTdMbQDaxDXw;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA;
typedef struct tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ;
typedef struct tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg;
typedef struct tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA;
typedef struct tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q;
typedef struct tyObject_Result__GHr33y09csHqF4YgilqXCeA tyObject_Result__GHr33y09csHqF4YgilqXCeA;
typedef struct tyObject_Result__fBI8BlURc7uRx2jML3oTSg tyObject_Result__fBI8BlURc7uRx2jML3oTSg;
typedef struct tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q;
typedef struct tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA;
typedef struct tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw;
typedef struct tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w;
typedef struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw tyObject_MDigest__law9ct65KplMYBvtmjCQxbw;
typedef struct tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ;
typedef struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA;
typedef struct tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg;
typedef struct tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ;
typedef struct tyObject_MHash__OxIffpYaxIua3k1C6do2Ew tyObject_MHash__OxIffpYaxIua3k1C6do2Ew;
typedef struct tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw;
typedef struct tySequence__1wSar3PFU59aNKLVhJL28FA tySequence__1wSar3PFU59aNKLVhJL28FA;
typedef struct tyTuple__9bln9aS7ibrNUp7yyUHGeBtg tyTuple__9bln9aS7ibrNUp7yyUHGeBtg;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyObject_Result__iS17NtK7ldheyAdSzroSMA tyObject_Result__iS17NtK7ldheyAdSzroSMA;
typedef struct tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw;
typedef struct tyObject_Result__aacdVUZDJjOWP9bH69asqFVg tyObject_Result__aacdVUZDJjOWP9bH69asqFVg;
typedef struct tyObject_Result__ZGY78kIl5s9a88zIUpvwquA tyObject_Result__ZGY78kIl5s9a88zIUpvwquA;
typedef struct tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew;
typedef struct tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA;
typedef struct tyObject_Result__vm9bv0BbPQozNnmqQASeyww tyObject_Result__vm9bv0BbPQozNnmqQASeyww;
typedef struct tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg;
typedef struct tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ;
typedef struct tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow;
typedef struct tyObject_Result__Wf60IuU9b2deDkGInMnfWDg tyObject_Result__Wf60IuU9b2deDkGInMnfWDg;
typedef struct tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg;
typedef struct tyObject_secp256k1_ecdsa_signature__9abCoFG0e9awROn9bWeoOX9aEA tyObject_secp256k1_ecdsa_signature__9abCoFG0e9awROn9bWeoOX9aEA;
typedef struct tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg;
typedef struct tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA;
typedef struct tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg;
typedef struct tyObject_MDigest__izzRLOKFx5icZ5e3JAI6Yw tyObject_MDigest__izzRLOKFx5icZ5e3JAI6Yw;
typedef struct tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg;
typedef struct tyObject_Result__TWeunZr265YV9at4HdxXCTg tyObject_Result__TWeunZr265YV9at4HdxXCTg;
typedef struct tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q;
typedef struct tyObject_Result__u0fcthTTawEzl2AgeDsDpg tyObject_Result__u0fcthTTawEzl2AgeDsDpg;
typedef struct tyObject_Result__oOsFQPbY2q7ayTTSab5TvA tyObject_Result__oOsFQPbY2q7ayTTSab5TvA;
typedef NU8 tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg;
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
};
struct tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ {tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme;
union{
struct {tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* rsakey;
} _scheme_1;
struct {tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA edkey;
} _scheme_2;
struct {tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w skkey;
} _scheme_3;
struct {tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* eckey;
} _scheme_4;
};
};
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;
};
struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
};
struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data;
};
struct tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA {tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme;
union{
struct {tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* rsakey;
} _scheme_1;
struct {tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA edkey;
} _scheme_2;
struct {tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA skkey;
} _scheme_3;
struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* eckey;
} _scheme_4;
};
};
typedef NU8 tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw;
struct tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* v;
} _o_2;
};
};
typedef NU8 tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA;
struct tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA {tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA options;
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
NI offset;
NI length;
};
typedef NU8 tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g;
struct tyObject_Result__SyOVenwKrVcTdMbQDaxDXw {NIM_BOOL o;
union{
struct {tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g e;
} _o_1;
struct {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* v;
} _o_2;
};
};
typedef struct {
N_NIMCALL_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, ClP_0) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0, void* ClE_0);
void* ClE_0;
} tyProc__kKn0QCjhpXK864DViBgFRw;
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_10) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_12) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0, void* ClE_0);
typedef NU8 tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA;
struct tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA {NIM_BOOL o;
union{
struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e;
} _o_1;
struct {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* v;
} _o_2;
};
};
typedef struct {
N_NIMCALL_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, ClP_0) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
void* ClE_0;
} tyProc__Jjvoj1trXh7UZw5ZTn8fww;
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_14) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_16) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
typedef NU8 tyArray__1S3PkXs1i9a3odYVGYxTIlQ[33];
typedef NU8 tyEnum_ProtoError__mWP6pHyhcb4SJ8Wo5U9bwfg;
struct tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ {NIM_BOOL o;
union{
struct {tyEnum_ProtoError__mWP6pHyhcb4SJ8Wo5U9bwfg e;
} _o_1;
struct {NIM_BOOL v;
} _o_2;
};
};
typedef NU8 tySet_tyInt8__chXunH2dwinSkhpA6JnsXw[32];
typedef NU8 tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA;
struct tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg {NIM_BOOL o;
union{
struct {tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA e;
} _o_1;
};
};
struct tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA {NIM_BOOL o;
union{
struct {NCSTRING e;
} _o_1;
};
};
struct tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA v;
} _o_2;
};
};
struct tyObject_Result__GHr33y09csHqF4YgilqXCeA {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* v;
} _o_2;
};
};
struct tyObject_Result__fBI8BlURc7uRx2jML3oTSg {NIM_BOOL o;
union{
struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e;
} _o_1;
struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_21) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_23) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
struct tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
};
struct tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA {NI ivsize;
NI keysize;
NI macsize;
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
};
struct tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {NI v;
} _o_2;
};
};
typedef NU32 tyArray__JlnxiR65D9cjJpwi6uBZRtA[2];
typedef NU32 tyArray__MpWsq9bBH14GsDQQ59cgyxAQ[8];
struct tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w {tyArray__JlnxiR65D9cjJpwi6uBZRtA count;
tyArray__MpWsq9bBH14GsDQQ59cgyxAQ state;
tyArray__w5VB8h5K8DB3oWrO5U2wqg buffer;
};
struct tyObject_MDigest__law9ct65KplMYBvtmjCQxbw {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
};
struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
NI offset;
};
struct tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ {tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA data;
NI mcodec;
NI size;
NI dpos;
};
struct tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ v;
} _o_2;
};
};
typedef struct {
N_NIMCALL_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, ClP_0) (NCSTRING x_0, void* ClE_0);
void* ClE_0;
} tyProc__bloIU7gvEU4cm2XwldKKnA;
struct tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ {NIM_BOOL o;
union{
struct {NCSTRING e;
} _o_1;
struct {tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_30) (NCSTRING x_0);
typedef N_NIMCALL_PTR(void, tyProc__9cL305EV0XpKoyjxVFPza4w) (NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
struct tyObject_MHash__OxIffpYaxIua3k1C6do2Ew {NI mcodec;
NI size;
tyProc__9cL305EV0XpKoyjxVFPza4w coder;
};
struct tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw {tySequence__1wSar3PFU59aNKLVhJL28FA* data;
NI counter;
};
struct tyTuple__9bln9aS7ibrNUp7yyUHGeBtg {
NI Field0;
NI Field1;
tyObject_MHash__OxIffpYaxIua3k1C6do2Ew Field2;
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_32) (NCSTRING x_0, void* ClE_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_33) (NCSTRING x_0, void* ClE_0);
struct tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw {tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* seckey;
tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* pubkey;
};
struct tyObject_Result__iS17NtK7ldheyAdSzroSMA {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw v;
} _o_2;
};
};
typedef NU8 tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw;
struct tyObject_Result__aacdVUZDJjOWP9bH69asqFVg {NIM_BOOL o;
union{
struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e;
} _o_1;
struct {tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_41) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_42) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_43) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_44) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
struct tyObject_Result__ZGY78kIl5s9a88zIUpvwquA {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q v;
} _o_2;
};
};
struct tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* v;
} _o_2;
};
};
struct tyObject_Result__vm9bv0BbPQozNnmqQASeyww {NIM_BOOL o;
union{
struct {tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g e;
} _o_1;
struct {tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_47) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_48) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0, void* ClE_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_49) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0, void* ClE_0);
struct tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
struct tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* v;
} _o_2;
};
};
struct tyObject_Result__Wf60IuU9b2deDkGInMnfWDg {NIM_BOOL o;
union{
struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e;
} _o_1;
struct {tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_50) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_51) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_52) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
struct tyObject_secp256k1_ecdsa_signature__9abCoFG0e9awROn9bWeoOX9aEA {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
struct tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg {tyObject_secp256k1_ecdsa_signature__9abCoFG0e9awROn9bWeoOX9aEA data;
};
struct tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
};
typedef unsigned char tyArray__A1SHJCPZVISPTujoygIPEQ[64];
typedef NU32 tyArray__FleBT9cC2nxhgiXmSYYnEKA[4];
typedef NU32 tyArray__xsE8WL1yT5DKfrMdYB89bYA[5];
typedef unsigned char tyArray__9bf43xCSmpsReI1l9ct3f6Sw[128];
typedef NU64 tyArray__9cHI9ce3NOVpqam1bGmXg5vw[8];
typedef N_CDECL_PTR(NU32, tyProc__MTudHD1eHvpluWGLmHxDCA) (unsigned char* x_0, NI xlen_0, unsigned char* hash_oid, NI hash_len, br_rsa_public_key* pk, unsigned char* hash_out);
typedef N_CDECL_PTR(void, tyProc__bF2JFxTs1q6Lq365NU79a2Q) (br_hash_class** ctx);
typedef N_CDECL_PTR(void, tyProc__Dc9br5a6SHw9cxie3cas0KTA) (br_hash_class** ctx, void* data_0, NI len_0);
typedef N_CDECL_PTR(void, tyProc__JETfgzvEnx6Tz9bYRct9a51g) (br_hash_class** ctx, void* dst);
typedef N_CDECL_PTR(NU64, tyProc__e9bd9aJH2sCZh75q9aAcv7ylg) (br_hash_class** ctx, void* dst);
typedef N_CDECL_PTR(void, tyProc__g9c2vH2tlPaPmvfTZ3PeWQQ) (br_hash_class** ctx, void* stb, NU64 count_0);
typedef NU8 tyArray__aczTGVLbkjaI8GxGYP6HtA[10];
struct tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
br_rsa_public_key key;
};
typedef NU8 tySet_tyInt__0Qsu6ykZBzpuXoFSXQGViA[8192];
typedef NU8 tyArray__5fET4L16EkHaikTXaOXHsQ[145];
struct tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q {tyArray__5fET4L16EkHaikTXaOXHsQ buffer;
br_ec_public_key key;
};
struct tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
};
typedef NU8 tySet_tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ;
struct tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg {tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w mdctx;
tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w opadctx;
tyArray__w5VB8h5K8DB3oWrO5U2wqg ipad;
tyArray__w5VB8h5K8DB3oWrO5U2wqg opad;
};
typedef NU64 tyArray__NzKR9bw29cLPrd712Xt6Liiw[2];
typedef NU8 tyArray__Zu7UusKTJ9auYSy2NZNrWFg[128];
struct tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg {tyArray__NzKR9bw29cLPrd712Xt6Liiw count;
tyArray__9cHI9ce3NOVpqam1bGmXg5vw state;
tyArray__Zu7UusKTJ9auYSy2NZNrWFg buffer;
};
struct tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA {tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg mdctx;
tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg opadctx;
tyArray__Zu7UusKTJ9auYSy2NZNrWFg ipad;
tyArray__Zu7UusKTJ9auYSy2NZNrWFg opad;
};
struct tyObject_MDigest__izzRLOKFx5icZ5e3JAI6Yw {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
typedef N_CDECL_PTR(int, tyProc__8515EaYVeX8ph3fGJmTq3w) (br_prng_class** ctx);
struct tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ v;
} _o_2;
};
};
struct tyObject_Result__TWeunZr265YV9at4HdxXCTg {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* v;
} _o_2;
};
};
struct tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q {NIM_BOOL o;
union{
struct {tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g e;
} _o_1;
struct {tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_90) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_91) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0, void* ClE_0);
struct tyObject_Result__u0fcthTTawEzl2AgeDsDpg {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* v;
} _o_2;
};
};
struct tyObject_Result__oOsFQPbY2q7ayTTSab5TvA {NIM_BOOL o;
union{
struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e;
} _o_1;
struct {tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* v;
} _o_2;
};
};
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_92) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0);
typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_93) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0);
typedef N_CDECL_PTR(unsigned char*, tyProc__RsQCUDkcFU21gYyx1MQoag) (int curve_0, NI* len_0);
typedef N_CDECL_PTR(NI, tyProc__2OHt7ggxoJzA8VYxj1IhNw) (int curve_0, NI* len_0);
typedef N_CDECL_PTR(NU32, tyProc__pzE688NyvZUoJzv9c4TeD5g) (unsigned char* g, NI glen, unsigned char* x_0, NI xlen_0, int curve_0);
typedef N_CDECL_PTR(NI, tyProc__kqSrq59bmV4RJ6UmQwOrn2g) (unsigned char* r, unsigned char* x_0, NI xlen_0, int curve_0);
typedef N_CDECL_PTR(NU32, tyProc__uplriG9a1p3SVKDigTAcMTQ) (unsigned char* a, unsigned char* b, NI len_0, unsigned char* x_0, NI xlen_0, unsigned char* y_0, NI ylen, int curve_0);
typedef N_CDECL_PTR(void, tyProc__3qI9bVHqiq07sTQRU9bkkkYQ) (br_prng_class** ctx, void* params, void* seed, NI seedLen);
typedef N_CDECL_PTR(void, tyProc__hquUwNr88w4T5ldt8BqLLQ) (br_prng_class** ctx, void* out_0, NI len_0);
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__1wSar3PFU59aNKLVhJL28FA { TGenericSeq Sup; tyTuple__9bln9aS7ibrNUp7yyUHGeBtg data[SEQ_DECL_SIZE];};struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(void, initProtoBuffer__WvyuU9b9b5JbJrzKXmuwx4ng)(tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA options, tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* Result);
N_LIB_PRIVATE N_NIMCALL(void, write__WL2qD4LleS3p9aN3TKfkYKQ)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb, NI field, NU64 value_0);
N_LIB_PRIVATE N_NIMCALL(void, write__4tkJJWHqmkKO9cj2FvJ9cDoQ)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb, NI field, NU8* value_0, NI value_0Len_0);
N_LIB_PRIVATE N_NIMCALL(void, getRawBytes__4eZxdwajU59aqY5fR5EvlLg_2)(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result);
static N_INLINE(void, mapErr__zcq3hamysjIzyTCudgpGzAresults)(tyObject_Result__SyOVenwKrVcTdMbQDaxDXw self, tyProc__kKn0QCjhpXK864DViBgFRw f, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result);
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest_0, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, getBytes__kJn7zWGJC57vhkb2K4XDbA)(tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* key_0, tyObject_Result__SyOVenwKrVcTdMbQDaxDXw* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___2czw7qMHNUX79bO3UKwiuxw)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym69380203_);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__w9c3PujD1NnOUmRBWXx5M9aw)(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA* key_0);
static N_INLINE(void, mapErr__wr43OoOBavEdVpXEjadAXgresults)(tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result);
N_LIB_PRIVATE N_NIMCALL(void, getBytes__9coFnXXweAFsWW2RRW9bjCeg)(tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* pubkey, tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___5iL8wNe5LcR1qA9bzrUKWyw)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69415203_);
static N_INLINE(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__9ct9ceLYMrJxbjf9baEI79cNDQsecp)(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* key_0);
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_LIB_PRIVATE N_NIMCALL(void, toRawCompressed__NtS562jLQhl9aFXEELIlWEw)(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* pubkey, tyArray__1S3PkXs1i9a3odYVGYxTIlQ Result);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest_0, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, finish__1rmuOyUuHHnrDPgEOlTQaw)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb);
N_LIB_PRIVATE N_NIMCALL(void, initProtoBuffer__fbykHZzk6a9bvfYMmTBqn3Q)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data_0, NI offset, tySet_tyEnum_ProtoFlags__34NlqR9bQ2hXegI29bJO9bfbA options, tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* Result);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, at___FKhCG9aXnVoTuyjERVXzd2g)(NU8* a, NI aLen_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ, getField__8sxzYRABPUDPXJWyD0d7Mg)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* data_0, NI field, NU64* output);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ, getField__TmmAJk0OXMd3CniSvMNDvQ)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* data_0, NI field, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** output);
static N_INLINE(NIM_BOOL, get__s81otJuqBWqYQyderjqGnwresults)(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ self);
N_LIB_PRIVATE N_NOINLINE(void, raiseResultDefect__Z3pb1x8uKhrSVPCjH9bDTfg)(NimStringDesc* m, tyEnum_ProtoError__mWP6pHyhcb4SJ8Wo5U9bwfg v) __attribute__((noreturn));
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg, init__mXwAENevF24h9aSvFdn1k9cQ)(tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg** key_0, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, init__p9aAz4VOacQhfmT9aJ5GZU6Q)(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA* key_0, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg, init__7YQ9cuZgaQ7VdIDGdMHy1gA)(tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q** pubkey, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA, init__VK9anPmPg8GD2pJILFR8EeQ)(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* key_0, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg*, getKey__cfVOJ9aZzO18vUXesNDNxaQ)(tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* key_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA, getKey__lDJkUWDdHXO6NjMEdY4Dfw)(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA* key_0);
static N_INLINE(void, mapErr__kpMEnkNrMmIAQHGaA5eUygresults)(tyObject_Result__fBI8BlURc7uRx2jML3oTSg self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__GHr33y09csHqF4YgilqXCeA* Result);
N_LIB_PRIVATE N_NIMCALL(void, getKey__uMuHGMfLCEJnKjbrz3jSbA)(tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* seckey, tyObject_Result__fBI8BlURc7uRx2jML3oTSg* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___9b2T10Sv8AQy0dkuhtLZ9blA)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69095203_);
N_LIB_PRIVATE N_NIMCALL(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA, getKey__7VH9bAvjjfeIpx8OODXp0kw)(tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w* key_0);
N_LIB_PRIVATE N_NIMCALL(void, write__6wmnKg6f3Ejtxp6wcA1yTA)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb, NI field, NIM_CHAR* value_0, NI value_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ, getField__2Rtuow0zf7uoG9cOp7O2MfQ)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* data_0, NI field, NimStringDesc** output);
static N_INLINE(void, init__C8fXqRtxb2ILgkwYRN3qiQsha2)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx);
static N_INLINE(void, update__JVKV5lsc6z00iHHbNwyg9bAsha2)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(void, sha256Transform__BJNBQtWr9bJwzqbyfKXd38Q)(NU32* state_0, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw, finish__x70ALeeaQ1ry9a63hdOCQWA)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx);
static N_INLINE(void, mapErr__9byGS0pCJuOqQbsGVT9cC27Qresults)(tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ* self, tyProc__bloIU7gvEU4cm2XwldKKnA f, tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg* Result);
static N_INLINE(void, init__sH9alXqNXtBL6AnEitBk6rwmultihash)(NI hashcode, tyObject_MDigest__law9ct65KplMYBvtmjCQxbw* mdigest, tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ* Result);
N_LIB_PRIVATE N_NIMCALL(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew, getOrDefault__4bQAzN75zxubDUvHhrIO5A)(tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw t, NI key_0);
N_LIB_PRIVATE N_NIMCALL(void, blake2Bhash__e7KIKwGHAJHimtl2bxkbUg)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha1hash__e7KIKwGHAJHimtl2bxkbUg_2)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha2256hash__e7KIKwGHAJHimtl2bxkbUg_3)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha2512hash__e7KIKwGHAJHimtl2bxkbUg_4)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha3512hash__e7KIKwGHAJHimtl2bxkbUg_5)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha3384hash__e7KIKwGHAJHimtl2bxkbUg_6)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha3256hash__e7KIKwGHAJHimtl2bxkbUg_7)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, sha3224hash__e7KIKwGHAJHimtl2bxkbUg_8)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, shake128hash__e7KIKwGHAJHimtl2bxkbUg_9)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, shake256hash__e7KIKwGHAJHimtl2bxkbUg_10)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, keccak224hash__e7KIKwGHAJHimtl2bxkbUg_11)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, keccak256hash__e7KIKwGHAJHimtl2bxkbUg_12)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, keccak384hash__e7KIKwGHAJHimtl2bxkbUg_13)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, keccak512hash__e7KIKwGHAJHimtl2bxkbUg_14)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, dblsha2256hash__e7KIKwGHAJHimtl2bxkbUg_16)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, identhash__e7KIKwGHAJHimtl2bxkbUg_17)(NU8* data_0, NI data_0Len_0, NU8* output, NI outputLen_0);
N_LIB_PRIVATE N_NIMCALL(void, digestImplWithoutHash__9c8VNSxvivnCseokNdjN9aHA)(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew hash_0, NU8* data_0, NI data_0Len_0, tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___J3DXJXPkwGR3QaMI39a9cJGw)(NCSTRING _X60gensym70410048_);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___n2dKp9a3cfBzTLD7cY9aS9abg)(NCSTRING _X60gensym70445246_);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitString)(NimStringDesc* s, NimStringDesc* sep, NI maxsplit);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(void, ephemeral__VlmLCHAWYOJGIjwKOlTpvQ)(tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw scheme, br_hmac_drbg_context* rng_0, tyObject_Result__iS17NtK7ldheyAdSzroSMA* Result);
static N_INLINE(void, mapErr__ke0p5rU4K7rIdxYKH1QWbgresults)(tyObject_Result__aacdVUZDJjOWP9bH69asqFVg self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__iS17NtK7ldheyAdSzroSMA* Result);
N_LIB_PRIVATE N_NIMCALL(void, random__bxw51vYxkPGA3LT5r0LgoQ)(tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw kind, br_hmac_drbg_context* rng_0, tyObject_Result__aacdVUZDJjOWP9bH69asqFVg* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___9a2r1nnwJbE2MBaiqFBDKjw)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym70300048_);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___IsDi8pVjaamYRKPmxMdYBg)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym70330417_);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___PpiLA9aDOPac9aFHIfkRSvRg)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym70340417_);
static N_INLINE(void, mapErr__hcee8oWfLT9aUNY331X8PLQresults)(tyObject_Result__vm9bv0BbPQozNnmqQASeyww self, tyProc__kKn0QCjhpXK864DViBgFRw f, tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA* Result);
N_LIB_PRIVATE N_NIMCALL(void, sign__4k6nHv7zWsk9coW9akFBqkYw)(tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* key_0, NU8* message, NI messageLen_0, tyObject_Result__vm9bv0BbPQozNnmqQASeyww* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___bFwX9ai9czYU3Y8KWQJKFdeQ)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym69675093_);
N_LIB_PRIVATE N_NIMCALL(void, getBytes__A5V7F9bb7wp1dEuIaTAjvLw)(tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* sig, tyObject_Result__SyOVenwKrVcTdMbQDaxDXw* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___gOc5Wuz1faOJTrT7BQLZtw)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym69710204_);
N_LIB_PRIVATE N_NIMCALL(tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg, sign__iBnnfgUrHHvjhAm9bAL0FcA)(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA* key_0, NU8* message, NI messageLen_0);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__2pKl6o1m8Xe2JD9blcK3fIg)(tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg* sig);
static N_INLINE(void, mapErr__9cwDo60l2rPtKHGSmYvM9cIAresults)(tyObject_Result__Wf60IuU9b2deDkGInMnfWDg self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow* Result);
N_LIB_PRIVATE N_NIMCALL(void, sign__TXG5E7oieiOricLieQhPSw)(tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* seckey, NU8* message, NI messageLen_0, tyObject_Result__Wf60IuU9b2deDkGInMnfWDg* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___ojfTouHt5efyucv1L4i9awQ)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69805033_);
N_LIB_PRIVATE N_NIMCALL(void, getBytes__N1HyE1kJiiveR7UXV0wuIg)(tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* sig, tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___EWCpaXN7kFZEEmCvo2kSlA)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69840204_);
N_LIB_PRIVATE N_NIMCALL(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg, sign__Jt5e1e9csSJNU0jboRIzhNA)(tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w* key_0, NU8* msg, NI msgLen_0);
static N_INLINE(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__t8atNm5VYwVSAfc2InWNOQsecp)(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg* sig);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, newSeq__DpCWN7DIBuAjgoeQ9c29blYQ)(NI len_0);
N_LIB_PRIVATE N_NIMCALL(NI, toBytes__1NK8vJrh39b6JoXQBBDT8uQ)(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg* sig, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg, init__LnEotsoeFzalPDV9bXoz7UA)(tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew** sig, NU8* data_0, NI data_0Len_0);
static N_INLINE(NIM_BOOL, verify__7tLWQjT2L7K3z30inFSYCgrsa)(tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* sig, NU8* message, NI messageLen_0, tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* pubkey);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, init__Cx2WiLXW1J9c1w9cYaBKf9aYw)(tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg* sig, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, verify__Wz7RmGaWX2V2M0HbKDHm9bA)(tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg* sig, NU8* message, NI messageLen_0, tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA* key_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg, init__eLagp5Mgogj8PMx6p8nlXw)(tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ** sig, NU8* data_0, NI data_0Len_0);
static N_INLINE(NIM_BOOL, verify__VR6GolRYhl9bZNOBUzoTmHAecnist)(tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* sig, NU8* message, NI messageLen_0, tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* pubkey);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA, init__IJ5bHaao1Z0BXchwyWOQvw)(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg* sig, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, verify__XezXbAB6sAtFe9av5pTAYrg)(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg* sig, NU8* msg, NI msgLen_0, tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* key_0);
static N_INLINE(NimStringDesc*, toHex__TfeJ361pglyJR5Hz15wCJQutils)(NU8* a, NI aLen_0, NIM_BOOL lowercase);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NIMCALL(NI, bytesToHex__TSuuVF9b8JuBk8cjfFOyavA)(NU8* src, NI srcLen_0, NIM_CHAR* dst, NI dstLen_0, tySet_tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ flags_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___xOuBvsnLXQ9bkjxzJzLbVOg)(tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* key_0);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___ow3jZvdi9bWgj0hBh6lNeOw)(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA* key_0);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___5jm8WKXafk9ct9b0HSMcmfDw)(tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* pubkey);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___UZLv9bWh4FQL2sXrO2H5GEA)(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* x_0);
N_LIB_PRIVATE N_NIMCALL(void, init__XO79cz0G5x9bYWx3NREUG23g)(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg* hmctx, NU8* key_0, NI key_0Len_0);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError)(void);
static N_INLINE(void, update__JlxQJoHy4ZmcjsPUc3vq1ghmac)(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg* hmctx, NIM_CHAR* data_0, NI data_0Len_0);
static N_INLINE(void, update__ac5kVNZW9auoLXYeatlPm9cgsha2)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx, NIM_CHAR* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_MDigest__law9ct65KplMYBvtmjCQxbw, finish__cp8Ckr7vep0RujvudVTNTg)(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg* hmctx);
static N_INLINE(void, update__JDQKL6F3d4BVGKvrNMc9bmghmac)(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg* hmctx, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(void, init__t9byvLEulypdqdOXTkNC4cA)(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA* hmctx, NU8* key_0, NI key_0Len_0);
static N_INLINE(void, update__OQvFXqS0Zr8oG23st9aanUghmac)(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA* hmctx, NIM_CHAR* data_0, NI data_0Len_0);
static N_INLINE(void, update__QORhLA8TYIPFuQZY4hwZowsha2)(tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg* ctx, NIM_CHAR* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(void, sha512Transform__d4P1X7sPV8KvC9aZQp9b36cw)(NU64* state_0, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_MDigest__izzRLOKFx5icZ5e3JAI6Yw, finish__5MZWHB5jfxA9b4lVZnMyk7w)(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA* hmctx);
static N_INLINE(void, update__P8Hx9cwSAuFGMTp7c7Ov5Qghmac)(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA* hmctx, NU8* data_0, NI data_0Len_0);
static N_INLINE(void, update__89bzCSJW3tR9bSg6RN2NtA4Qsha2)(tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg* ctx, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, mapErr__c8AiFYfbMgd29cbNkSe8t9cwresults)(tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q self, tyProc__kKn0QCjhpXK864DViBgFRw f, tyObject_Result__TWeunZr265YV9at4HdxXCTg* Result);
N_LIB_PRIVATE N_NIMCALL(void, random__Vw7k5y0bn4JKQKAWFNxc9cg)(br_hmac_drbg_context* rng_0, NI bits, NU32 pubexp, tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___CGQz2Tea9c86fSDE9a29a9a9aow)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym170075063_);
N_LIB_PRIVATE N_NIMCALL(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA, random__fre8nO7fEzVfLbpNoz4Hsg)(br_hmac_drbg_context* rng_0);
static N_INLINE(void, mapErr__w649bWMHIiXq54RHtXetwagresults)(tyObject_Result__oOsFQPbY2q7ayTTSab5TvA self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__u0fcthTTawEzl2AgeDsDpg* Result);
N_LIB_PRIVATE N_NIMCALL(void, random__w4Y1PVu9bvsQJnqSLoGMCCQ)(tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw kind, br_hmac_drbg_context* rng_0, tyObject_Result__oOsFQPbY2q7ayTTSab5TvA* Result);
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___5fs3SRoeeTcp2T2NcnZzqw)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym170150211_);
N_LIB_PRIVATE N_NIMCALL(tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w, random__kzA2SHQcyEn69cF9ccOjTRHA)(br_hmac_drbg_context* rng_0);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, init__ZFrj29apZJPaB79ca09cGOStw)(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0, NU8* data_0, NI data_0Len_0);
N_LIB_PRIVATE TNimType NTI__GSDbMQxBVd3KO4qBUjzPKQ_;
N_LIB_PRIVATE TNimType NTI__GeN4EiKxd9aXAvv5y1lfmHg_;
TNimNode* NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[5];
extern TNimType NTI__YsrjeG6VWJ0XFJD22jLsWA_;
extern TNimType NTI__KumOofCUWyjlYLnvXlcIJA_;
extern TNimType NTI__aKiBFtqo69b60sWLnM5A9c3w_;
extern TNimType NTI__NRNhelyAfMGuaaXZlYQPFA_;
N_LIB_PRIVATE TNimType NTI__mVKS59bRpscItosS0oN9a4zA_;
TNimNode* NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[5];
extern TNimType NTI__2OoLEoAqWG9c1IoFZfCQ23Q_;
extern TNimType NTI__fCTHNrLwOTcb1HatTDTAEA_;
extern TNimType NTI__YxxaGK7KOKaWCOaZ44rHMA_;
extern TNimType NTI__y9abboQL8NPsqWIoJZmI9aiw_;
N_LIB_PRIVATE TNimType NTI__Z6S5YnPavFcXanJgC9cU1uw_;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_8, "\'v\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_9, "\'e\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_11, "\'rsakey\' is not accessible using discriminant \'scheme\' of type "
"\'PublicKey\'", 74);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_13, "\'edkey\' is not accessible using discriminant \'scheme\' of type \'"
"PublicKey\'", 73);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_15, "\'eckey\' is not accessible using discriminant \'scheme\' of type \'"
"PublicKey\'", 73);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_17, "\'skkey\' is not accessible using discriminant \'scheme\' of type \'"
"PublicKey\'", 73);
extern TNimType NTI__wI9bduJs1m4ktObREEZ9adiQ_;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_18, "Trying to access value with err Result", 38);
N_LIB_PRIVATE NIM_CONST tySet_tyInt8__chXunH2dwinSkhpA6JnsXw SupportedSchemesInt__Jaea0VKLt2XxrDDynwA9bFA = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_19, "\'rsakey\' is not accessible using discriminant \'scheme\' of type "
"\'PrivateKey\'", 75);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_20, "\'edkey\' is not accessible using discriminant \'scheme\' of type \'"
"PrivateKey\'", 74);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_22, "\'eckey\' is not accessible using discriminant \'scheme\' of type \'"
"PrivateKey\'", 74);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_24, "\'skkey\' is not accessible using discriminant \'scheme\' of type \'"
"PrivateKey\'", 74);
N_LIB_PRIVATE TNimType NTI__CGRrBG2C4jqyNkskN9acy8Q_;
N_LIB_PRIVATE TNimType NTI__w1fK9a9cXYbXeecISdPerXxA_;
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
extern TNimType NTI__1wSar3PFU59aNKLVhJL28FA_;
static NIM_CONST tyTuple__9bln9aS7ibrNUp7yyUHGeBtg TM__wBH5hWbN4O4UxUgzOozgCA_31 = {((NI) 0),
((NI) 0),
{((NI) 0), ((NI) 0), NIM_NIL}
}
;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_36, ",", 1);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_38, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/system/iterators.nim(189, 11) `len(a) == L` the l"
"ength of the seq changed while iterating over it", 175);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_40, "P-256", 5);
extern TNimType NTI__iS17NtK7ldheyAdSzroSMA_;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_45, "P-384", 5);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_46, "P-521", 5);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_53, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/cr"
"ypto/rsa.nim(780, 11) `(not isNil(sig)) and (not isNil(pubkey))`"
" ", 128);
extern NIM_CONST tyArray__aczTGVLbkjaI8GxGYP6HtA RsaOidSha256__VqXLeDO8slrNfg9a8360VIA;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_54, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/cr"
"ypto/ecnist.nim(970, 11) `(not isNil(sig)) and (not isNil(pubkey"
"))` ", 131);
extern NIM_CONST tySet_tyInt__0Qsu6ykZBzpuXoFSXQGViA EcSupportedCurvesCint__ETyWsKcb5WNIIYTvgxxraA;
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_55, "ed25519 key (", 13);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_56, ")", 1);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_57, "secp256r1 key (", 15);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_58, "secp256k1 key (", 15);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_59, "AES-128", 7);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_60, "AES-256", 7);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_61, "TwofishCTR", 10);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_62, "key expansion", 13);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_66, "SHA256", 6);
STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_76, "SHA512", 6);
extern TNimType NTI__RuNvFuo5ptASsihINNteSw_;
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 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__zcq3hamysjIzyTCudgpGzAresults)(tyObject_Result__SyOVenwKrVcTdMbQDaxDXw self, tyProc__kKn0QCjhpXK864DViBgFRw f, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&(*Result)._o_2.v), self._o_2.v, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_10)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___2czw7qMHNUX79bO3UKwiuxw)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym69380203_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__wr43OoOBavEdVpXEjadAXgresults)(tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&(*Result)._o_2.v), self._o_2.v, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_14)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___5iL8wNe5LcR1qA9bzrUKWyw)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69415203_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 377 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
static N_INLINE(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__9ct9ceLYMrJxbjf9baEI79cNDQsecp)(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA* key_0) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyArray__1S3PkXs1i9a3odYVGYxTIlQ T1_; NI T2_; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) newSeq((&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), 33);
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
nimZeroMem((void*)T1_, sizeof(tyArray__1S3PkXs1i9a3odYVGYxTIlQ)); toRawCompressed__NtS562jLQhl9aFXEELIlWEw(key_0, T1_);
T2_ = (NI)0; for (T2_ = 0; T2_ < 33; T2_++) { result->data[T2_] = T1_[T2_]; }
return result;}
#line 361 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, getRawBytes__4eZxdwajU59aqY5fR5EvlLg_2)(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 362 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch ((*key_0).scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{ tyObject_Result__SyOVenwKrVcTdMbQDaxDXw T2_; tyProc__kKn0QCjhpXK864DViBgFRw T3_;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((1 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_11)); }
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T2_), sizeof(tyObject_Result__SyOVenwKrVcTdMbQDaxDXw)); getBytes__kJn7zWGJC57vhkb2K4XDbA((*key_0)._scheme_1.rsakey, (&T2_));
nimZeroMem((void*)(&T3_), sizeof(tyProc__kKn0QCjhpXK864DViBgFRw)); T3_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_12) (colonanonymous___2czw7qMHNUX79bO3UKwiuxw)); T3_.ClE_0 = NIM_NIL;
#line 367 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__zcq3hamysjIzyTCudgpGzAresults(T2_, T3_, Result);
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE;
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((2 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_13)); }
#line 372 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
unsureAsgnRef((void**) (&(*Result)._o_2.v), getBytes__w9c3PujD1NnOUmRBWXx5M9aw((&(*key_0)._scheme_2.edkey))); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{ tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA T6_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T7_;
#line 377 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 377 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((8 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_15)); }
#line 377 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T6_), sizeof(tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA)); getBytes__9coFnXXweAFsWW2RRW9bjCeg((*key_0)._scheme_4.eckey, (&T6_));
nimZeroMem((void*)(&T7_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T7_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_16) (colonanonymous___5iL8wNe5LcR1qA9bzrUKWyw)); T7_.ClE_0 = NIM_NIL;
#line 377 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__wr43OoOBavEdVpXEjadAXgresults(T6_, T7_, Result);
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE;
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((4 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_17)); }
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
unsureAsgnRef((void**) (&(*Result)._o_2.v), getBytes__9ct9ceLYMrJxbjf9baEI79cNDQsecp((&(*key_0)._scheme_3.skkey))); }
break;
}
}
#line 431 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, getBytes__4eZxdwajU59aqY5fR5EvlLg)(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0, tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ* Result) { tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA msg; tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ vX60gensym69495042_;{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&msg), sizeof(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA));
#line 434 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 434 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
initProtoBuffer__WvyuU9b9b5JbJrzKXmuwx4ng(0, (&msg));
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__WL2qD4LleS3p9aN3TKfkYKQ((&msg), ((NI) 1), ((NU64) ((*key_0).scheme)));
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym69495042_), sizeof(tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
getRawBytes__4eZxdwajU59aqY5fR5EvlLg_2(key_0, (&vX60gensym69495042_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym69495042_.o)) goto LA3_;
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
genericAssign((void*)Result, (void*)(&vX60gensym69495042_), (&NTI__wI9bduJs1m4ktObREEZ9adiQ_)); goto BeforeRet_;
}
LA3_: ;
if (!(((2 &(1U<<((NU)(vX60gensym69495042_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); }
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__4tkJJWHqmkKO9cj2FvJ9cDoQ((&msg), ((NI) 2), vX60gensym69495042_._o_2.v->data, (vX60gensym69495042_._o_2.v ? vX60gensym69495042_._o_2.v->Sup.len : 0));
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
finish__1rmuOyUuHHnrDPgEOlTQaw((&msg));
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericSeqAssign((&(*Result)._o_2.v), msg.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }BeforeRet_: ;
}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(NIM_BOOL, get__s81otJuqBWqYQyderjqGnwresults)(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ self) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 286 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(self.o)) goto LA3_;
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); }
#line 288 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
raiseResultDefect__Z3pb1x8uKhrSVPCjH9bDTfg(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_18), self._o_1.e);
}
LA3_: ;
if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } result = self._o_2.v; return result;}
#line 444 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, init__ZFrj29apZJPaB79ca09cGOStw)(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0, NU8* data_0, NI data_0Len_0) { NIM_BOOL result; NU64 id; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer; result = (NIM_BOOL)0;
#line 445 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
id = (NU64)0; buffer = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(data_0Len_0 <= ((NI) 0))) goto LA3_;
result = NIM_FALSE; }
goto LA1_;
LA3_: ;
{ tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA pb; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* T6_; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r1; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r2; nimZeroMem((void*)(&pb), sizeof(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA));
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T6_ = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; T6_ = at___FKhCG9aXnVoTuyjERVXzd2g(data_0, data_0Len_0);
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
initProtoBuffer__fbykHZzk6a9bvfYMmTBqn3Q(T6_, ((NI) 0), 0, (&pb));
#line 455 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 455 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r1 = getField__8sxzYRABPUDPXJWyD0d7Mg((&pb), ((NI) 1), (&id));
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r2 = getField__TmmAJk0OXMd3CniSvMNDvQ((&pb), ((NI) 2), (&buffer));
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NIM_BOOL T9_; NIM_BOOL T10_; NIM_BOOL T11_;
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T9_ = (NIM_BOOL)0;
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T10_ = (NIM_BOOL)0;
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T11_ = (NIM_BOOL)0; T11_ = r1.o; if (!(T11_)) goto LA12_;
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T11_ = get__s81otJuqBWqYQyderjqGnwresults(r1); LA12_: ;
T10_ = T11_; if (!(T10_)) goto LA13_;
T10_ = r2.o; LA13_: ;
T9_ = T10_; if (!(T9_)) goto LA14_;
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T9_ = get__s81otJuqBWqYQyderjqGnwresults(r2); LA14_: ;
if (!!(T9_)) goto LA15_;
result = NIM_FALSE; }
goto LA7_;
LA15_: ;
{
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NIM_BOOL T20_; NI T22_;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T20_ = (NIM_BOOL)0;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T20_ = !(((SupportedSchemesInt__Jaea0VKLt2XxrDDynwA9bFA[(NU)((((NI8) (id))- -128))>>3] &(1U<<((NU)((((NI8) (id))- -128))&7U)))!=0)); if (T20_) goto LA21_;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T22_ = (buffer ? buffer->Sup.len : 0); T20_ = (T22_ <= ((NI) 0)); LA21_: ;
if (!T20_) goto LA23_;
result = NIM_FALSE; }
goto LA18_;
LA23_: ;
{ tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme; tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA nkey;
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
scheme = ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) (((NI8) (id)))); nimZeroMem((void*)(&nkey), sizeof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA));
#line 467 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
chckNil((void*)(&nkey)); nimZeroMem((void*)(&nkey), sizeof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA)); nkey.scheme = scheme;
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch (scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg T29_;
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((1 &(1U<<((NU)(nkey.scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_11)); }
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T29_ = init__mXwAENevF24h9aSvFdn1k9cQ(&nkey._scheme_1.rsakey, buffer->data, (buffer ? buffer->Sup.len : 0)); if (!T29_.o) goto LA30_;
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
genericAssign((void*)(&(*key_0)), (void*)(&nkey), (&NTI__mVKS59bRpscItosS0oN9a4zA_)); result = NIM_TRUE; }
goto LA27_;
LA30_: ;
{ result = NIM_FALSE; }
LA27_: ;
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NIM_BOOL T36_;
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((2 &(1U<<((NU)(nkey.scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_13)); }
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T36_ = (NIM_BOOL)0; T36_ = init__p9aAz4VOacQhfmT9aJ5GZU6Q((&nkey._scheme_2.edkey), buffer->data, (buffer ? buffer->Sup.len : 0)); if (!T36_) goto LA37_;
#line 481 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
genericAssign((void*)(&(*key_0)), (void*)(&nkey), (&NTI__mVKS59bRpscItosS0oN9a4zA_)); result = NIM_TRUE; }
goto LA34_;
LA37_: ;
{ result = NIM_FALSE; }
LA34_: ;
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{
#line 489 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg T43_;
#line 489 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((8 &(1U<<((NU)(nkey.scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_15)); }
#line 489 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T43_ = init__7YQ9cuZgaQ7VdIDGdMHy1gA(&nkey._scheme_4.eckey, buffer->data, (buffer ? buffer->Sup.len : 0)); if (!T43_.o) goto LA44_;
#line 490 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
genericAssign((void*)(&(*key_0)), (void*)(&nkey), (&NTI__mVKS59bRpscItosS0oN9a4zA_)); result = NIM_TRUE; }
goto LA41_;
LA44_: ;
{ result = NIM_FALSE; }
LA41_: ;
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{
#line 498 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA T50_;
#line 498 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((4 &(1U<<((NU)(nkey.scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_17)); }
#line 498 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T50_ = init__VK9anPmPg8GD2pJILFR8EeQ((&nkey._scheme_3.skkey), buffer->data, (buffer ? buffer->Sup.len : 0)); if (!T50_.o) goto LA51_;
#line 499 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
genericAssign((void*)(&(*key_0)), (void*)(&nkey), (&NTI__mVKS59bRpscItosS0oN9a4zA_)); result = NIM_TRUE; }
goto LA48_;
LA51_: ;
{ result = NIM_FALSE; }
LA48_: ;
}
break;
}
}
LA18_: ;
}
LA7_: ;
}
LA1_: ;
return result;}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__kpMEnkNrMmIAQHGaA5eUygresults)(tyObject_Result__fBI8BlURc7uRx2jML3oTSg self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__GHr33y09csHqF4YgilqXCeA* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } unsureAsgnRef((void**) (&(*Result)._o_2.v), self._o_2.v); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_21)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___9b2T10Sv8AQy0dkuhtLZ9blA)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69095203_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 305 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, getKey__BjB2ThDklmRLi5zxNp1MMg)(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* key_0, tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q* Result) { NI T1_; NI T2_;{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T1_ = (NI)0; for (T1_ = 0; T1_ < 32; T1_++) { (*Result)._o_2.v._scheme_2.edkey.data[T1_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T2_ = (NI)0; for (T2_ = 0; T2_ < 64; T2_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T2_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0;
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch ((*key_0).scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{ tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* rsakey; NI T4_; NI T5_; NI T6_; NI T7_;
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((1 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_19)); }
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
rsakey = getKey__cfVOJ9aZzO18vUXesNDNxaQ((*key_0)._scheme_1.rsakey); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T4_ = (NI)0; for (T4_ = 0; T4_ < 32; T4_++) { (*Result)._o_2.v._scheme_2.edkey.data[T4_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T5_ = (NI)0; for (T5_ = 0; T5_ < 64; T5_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T5_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T6_ = (NI)0; for (T6_ = 0; T6_ < 32; T6_++) { (*Result)._o_2.v._scheme_2.edkey.data[T6_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T7_ = (NI)0; for (T7_ = 0; T7_ < 64; T7_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T7_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0); unsureAsgnRef((void**) (&(*Result)._o_2.v._scheme_1.rsakey), rsakey); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{ tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA edkey; NI T9_; NI T10_; NI T11_; NI T12_;
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((2 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_20)); }
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
edkey = getKey__lDJkUWDdHXO6NjMEdY4Dfw((&(*key_0)._scheme_2.edkey)); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T9_ = (NI)0; for (T9_ = 0; T9_ < 32; T9_++) { (*Result)._o_2.v._scheme_2.edkey.data[T9_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T10_ = (NI)0; for (T10_ = 0; T10_ < 64; T10_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T10_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T11_ = (NI)0; for (T11_ = 0; T11_ < 32; T11_++) { (*Result)._o_2.v._scheme_2.edkey.data[T11_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T12_ = (NI)0; for (T12_ = 0; T12_ < 64; T12_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T12_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1); (*Result)._o_2.v._scheme_2.edkey = edkey; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{ tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* eckey; tyObject_Result__GHr33y09csHqF4YgilqXCeA vX60gensym69120034_; tyObject_Result__fBI8BlURc7uRx2jML3oTSg T14_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T15_; NI T22_; NI T23_; NI T24_; NI T25_;
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym69120034_), sizeof(tyObject_Result__GHr33y09csHqF4YgilqXCeA));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((8 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_22)); }
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T14_), sizeof(tyObject_Result__fBI8BlURc7uRx2jML3oTSg)); getKey__uMuHGMfLCEJnKjbrz3jSbA((*key_0)._scheme_4.eckey, (&T14_));
nimZeroMem((void*)(&T15_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T15_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_23) (colonanonymous___9b2T10Sv8AQy0dkuhtLZ9blA)); T15_.ClE_0 = NIM_NIL;
#line 322 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__kpMEnkNrMmIAQHGaA5eUygresults(T14_, T15_, (&vX60gensym69120034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ NI T20_; NI T21_;
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym69120034_.o)) goto LA18_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T20_ = (NI)0; for (T20_ = 0; T20_ < 32; T20_++) { (*Result)._o_2.v._scheme_2.edkey.data[T20_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T21_ = (NI)0; for (T21_ = 0; T21_ < 64; T21_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T21_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym69120034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym69120034_._o_1.e; goto BeforeRet_;
}
LA18_: ;
if (!(((2 &(1U<<((NU)(vX60gensym69120034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } eckey = vX60gensym69120034_._o_2.v; chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T22_ = (NI)0; for (T22_ = 0; T22_ < 32; T22_++) { (*Result)._o_2.v._scheme_2.edkey.data[T22_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T23_ = (NI)0; for (T23_ = 0; T23_ < 64; T23_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T23_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T24_ = (NI)0; for (T24_ = 0; T24_ < 32; T24_++) { (*Result)._o_2.v._scheme_2.edkey.data[T24_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T25_ = (NI)0; for (T25_ = 0; T25_ < 64; T25_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T25_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3); unsureAsgnRef((void**) (&(*Result)._o_2.v._scheme_4.eckey), eckey); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{ tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA skkey; NI T27_; NI T28_; NI T29_; NI T30_;
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((4 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_24)); }
#line 328 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
skkey = getKey__7VH9bAvjjfeIpx8OODXp0kw((&(*key_0)._scheme_3.skkey)); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T27_ = (NI)0; for (T27_ = 0; T27_ < 32; T27_++) { (*Result)._o_2.v._scheme_2.edkey.data[T27_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T28_ = (NI)0; for (T28_ = 0; T28_ < 64; T28_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T28_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T29_ = (NI)0; for (T29_ = 0; T29_ < 32; T29_++) { (*Result)._o_2.v._scheme_2.edkey.data[T29_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T30_ = (NI)0; for (T30_ = 0; T30_ < 64; T30_++) { (*Result)._o_2.v._scheme_3.skkey.data.data[T30_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2); (*Result)._o_2.v._scheme_3.skkey = skkey; }
break;
}
}BeforeRet_: ;
}
#line 932 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, createProposal__H77QupSVNLJySA9cX9cLXQfw)(NU8* nonce_0, NI nonce_0Len_0, NU8* pubkey, NI pubkeyLen_0, NimStringDesc* exchanges, NimStringDesc* ciphers, NimStringDesc* hashes_0) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA msg; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 934 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&msg), sizeof(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA));
#line 938 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 938 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
initProtoBuffer__WvyuU9b9b5JbJrzKXmuwx4ng(2, (&msg));
#line 939 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 939 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__4tkJJWHqmkKO9cj2FvJ9cDoQ((&msg), ((NI) 1), nonce_0, nonce_0Len_0);
#line 940 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 940 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__4tkJJWHqmkKO9cj2FvJ9cDoQ((&msg), ((NI) 2), pubkey, pubkeyLen_0);
#line 941 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 941 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__6wmnKg6f3Ejtxp6wcA1yTA((&msg), ((NI) 3), exchanges->data, (exchanges ? exchanges->Sup.len : 0));
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 942 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__6wmnKg6f3Ejtxp6wcA1yTA((&msg), ((NI) 4), ciphers->data, (ciphers ? ciphers->Sup.len : 0));
#line 943 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 943 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__6wmnKg6f3Ejtxp6wcA1yTA((&msg), ((NI) 5), hashes_0->data, (hashes_0 ? hashes_0->Sup.len : 0));
#line 944 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 944 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
finish__1rmuOyUuHHnrDPgEOlTQaw((&msg));
genericSeqAssign((&result), msg.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); return result;}
#line 947 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, decodeProposal__usPxSkdt33tx9cA9ai9cH5Ztw)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* message, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** nonce_0, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** pubkey, NimStringDesc** exchanges, NimStringDesc** ciphers, NimStringDesc** hashes_0) { NIM_BOOL result; tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA pb; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r1; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r2; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r3; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r4; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r5; NIM_BOOL T1_; NIM_BOOL T2_; NIM_BOOL T3_; NIM_BOOL T4_; NIM_BOOL T5_; NIM_BOOL T6_; NIM_BOOL T7_; NIM_BOOL T8_; NIM_BOOL T9_; result = (NIM_BOOL)0;
#line 949 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&pb), sizeof(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA));
#line 955 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 955 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
initProtoBuffer__fbykHZzk6a9bvfYMmTBqn3Q(message, ((NI) 0), 0, (&pb));
#line 956 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 956 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r1 = getField__TmmAJk0OXMd3CniSvMNDvQ((&pb), ((NI) 1), nonce_0);
#line 957 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 957 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r2 = getField__TmmAJk0OXMd3CniSvMNDvQ((&pb), ((NI) 2), pubkey);
#line 958 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 958 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r3 = getField__2Rtuow0zf7uoG9cOp7O2MfQ((&pb), ((NI) 3), exchanges);
#line 959 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 959 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r4 = getField__2Rtuow0zf7uoG9cOp7O2MfQ((&pb), ((NI) 4), ciphers);
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 960 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r5 = getField__2Rtuow0zf7uoG9cOp7O2MfQ((&pb), ((NI) 5), hashes_0);
#line 964 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T1_ = (NIM_BOOL)0;
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T2_ = (NIM_BOOL)0;
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T3_ = (NIM_BOOL)0;
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T4_ = (NIM_BOOL)0;
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T5_ = (NIM_BOOL)0;
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T6_ = (NIM_BOOL)0;
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T7_ = (NIM_BOOL)0;
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T8_ = (NIM_BOOL)0;
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T9_ = (NIM_BOOL)0; T9_ = r1.o; if (!(T9_)) goto LA10_;
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T9_ = get__s81otJuqBWqYQyderjqGnwresults(r1); LA10_: ;
T8_ = T9_; if (!(T8_)) goto LA11_;
T8_ = r2.o; LA11_: ;
T7_ = T8_; if (!(T7_)) goto LA12_;
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 962 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T7_ = get__s81otJuqBWqYQyderjqGnwresults(r2); LA12_: ;
T6_ = T7_; if (!(T6_)) goto LA13_;
T6_ = r3.o; LA13_: ;
T5_ = T6_; if (!(T5_)) goto LA14_;
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T5_ = get__s81otJuqBWqYQyderjqGnwresults(r3); LA14_: ;
T4_ = T5_; if (!(T4_)) goto LA15_;
T4_ = r4.o; LA15_: ;
T3_ = T4_; if (!(T3_)) goto LA16_;
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T3_ = get__s81otJuqBWqYQyderjqGnwresults(r4); LA16_: ;
T2_ = T3_; if (!(T2_)) goto LA17_;
T2_ = r5.o; LA17_: ;
T1_ = T2_; if (!(T1_)) goto LA18_;
#line 964 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 964 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T1_ = get__s81otJuqBWqYQyderjqGnwresults(r5); LA18_: ;
result = T1_; return result;}
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
static N_INLINE(void, init__C8fXqRtxb2ILgkwYRN3qiQsha2)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx) {
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 0))- 0] = ((NU32) 0);
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 1))- 0] = ((NU32) 0);
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 0))- 0] = ((NU32) 1779033703);
#line 148 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 1))- 0] = ((NU32) IL64(3144134277));
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 2))- 0] = ((NU32) 1013904242);
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 3))- 0] = ((NU32) IL64(2773480762));
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 4))- 0] = ((NU32) 1359893119);
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 5))- 0] = ((NU32) IL64(2600822924));
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 6))- 0] = ((NU32) 528734635);
#line 154 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).state[(((NI) 7))- 0] = ((NU32) 1541459225);}
#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 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimCopyMem(dest, source, size);
}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
static N_INLINE(void, update__JVKV5lsc6z00iHHbNwyg9bAsha2)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx, NU8* data_0, NI data_0Len_0) { NI pos; NI length;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
pos = ((NI) 0);
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
length = data_0Len_0; {
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
while (1) { NI offset; NI size; NI TM__wBH5hWbN4O4UxUgzOozgCA_26; NI TM__wBH5hWbN4O4UxUgzOozgCA_27; NI TM__wBH5hWbN4O4UxUgzOozgCA_28; NI TM__wBH5hWbN4O4UxUgzOozgCA_29;
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!(((NI) 0) < length)) goto LA2;
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
offset = ((NI) ((NU32)((*ctx).count[(((NI) 0))- 0] & ((NU32) 63))));
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(((NI) 64), offset, &TM__wBH5hWbN4O4UxUgzOozgCA_26)) { raiseOverflow(); }; size = (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_26) <= length) ? (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_26) : length);
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(offset) > (NU)(63)){ raiseIndexError2(offset, 63); } if ((NU)(pos) >= (NU)(data_0Len_0)){ raiseIndexError2(pos,data_0Len_0-1); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimMulInt(size, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_27)) { raiseOverflow(); }; if (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_27)) < ((NI) 0) || ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_27)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_27), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*ctx).buffer[(offset)- 0]))), ((void*) ((&data_0[pos]))), ((NI) ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_27))));
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimAddInt(pos, size, &TM__wBH5hWbN4O4UxUgzOozgCA_28)) { raiseOverflow(); }; pos = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_28);
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(length, size, &TM__wBH5hWbN4O4UxUgzOozgCA_29)) { raiseOverflow(); }; length = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_29);
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 0))- 0] = (NU32)((NU32)((*ctx).count[(((NI) 0))- 0]) + (NU32)(((NU32) (size))));
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU32)((*ctx).count[(((NI) 0))- 0]) < (NU32)(((NU32) (size))))) goto LA5_;
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 1))- 0] = (NU32)((NU32)((*ctx).count[(((NI) 1))- 0]) + (NU32)(((NU32) 1))); }
LA5_: ;
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU32)((*ctx).count[(((NI) 0))- 0] & ((NU32) 63)) == ((NU32) 0))) goto LA9_;
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
sha256Transform__BJNBQtWr9bJwzqbyfKXd38Q((*ctx).state, (*ctx).buffer, 64);
}
LA9_: ;
} LA2: ;
}
}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__9byGS0pCJuOqQbsGVT9cC27Qresults)(tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ* self, tyProc__bloIU7gvEU4cm2XwldKKnA f, tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!(*self).o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)((*self).o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&(*Result)._o_2.v.data.buffer), (*self)._o_2.v.data.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); (*Result)._o_2.v.data.offset = (*self)._o_2.v.data.offset; (*Result)._o_2.v.mcodec = (*self)._o_2.v.mcodec; (*Result)._o_2.v.size = (*self)._o_2.v.size; (*Result)._o_2.v.dpos = (*self)._o_2.v.dpos; }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)((*self).o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0((*self)._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_30)(f.ClP_0))((*self)._o_1.e); }
LA1_: ;
}
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
static N_INLINE(void, init__sH9alXqNXtBL6AnEitBk6rwmultihash)(NI hashcode, tyObject_MDigest__law9ct65KplMYBvtmjCQxbw* mdigest, tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ* Result) { tyObject_MHash__OxIffpYaxIua3k1C6do2Ew hash_1; tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw T1_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T2_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T3_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T4_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T5_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T6_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T7_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T8_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T9_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T10_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T11_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T12_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T13_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T14_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T15_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T16_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T17_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T18_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T19_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T20_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T21_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T22_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T23_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T24_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T25_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T26_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T27_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T28_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T29_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T30_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T31_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T32_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T33_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T34_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T35_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T36_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T37_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T38_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T39_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T40_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T41_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T42_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T43_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T44_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T45_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T46_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T47_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T48_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T49_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T50_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T51_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T52_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T53_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T54_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T55_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T56_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T57_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T58_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T59_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T60_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T61_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T62_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T63_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T64_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T65_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T66_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T67_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T68_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T69_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T70_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T71_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T72_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T73_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T74_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T75_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T76_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T77_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T78_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T79_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T80_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T81_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T82_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T83_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T84_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T85_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T86_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T87_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T88_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T89_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T90_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T91_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T92_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T93_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T94_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T95_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T96_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T97_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T98_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T99_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T100_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T101_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T102_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T103_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T104_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T105_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T106_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T107_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T108_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T109_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T110_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T111_; tyObject_MHash__OxIffpYaxIua3k1C6do2Ew T112_; chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = NIM_NIL; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0;
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
nimZeroMem((void*)(&T1_), sizeof(tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw)); nimZeroMem((void*)(&T1_), sizeof(tyObject_Table__y5hBwsv9bmGc3wD8pDEO2Tw)); T1_.data = (tySequence__1wSar3PFU59aNKLVhJL28FA*) newSeq((&NTI__1wSar3PFU59aNKLVhJL28FA_), 256); T1_.data->data[0] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[1].Field0 = ((NI) 45569); T1_.data->data[1].Field1 = ((NI) 45569); nimZeroMem((void*)(&T2_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T2_.mcodec = ((NI) 45569); T2_.size = ((NI) 1); T2_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[1].Field2 = T2_; T1_.data->data[2].Field0 = ((NI) 45570); T1_.data->data[2].Field1 = ((NI) 45570); nimZeroMem((void*)(&T3_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T3_.mcodec = ((NI) 45570); T3_.size = ((NI) 2); T3_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[2].Field2 = T3_; T1_.data->data[3].Field0 = ((NI) 45571); T1_.data->data[3].Field1 = ((NI) 45571); nimZeroMem((void*)(&T4_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T4_.mcodec = ((NI) 45571); T4_.size = ((NI) 3); T4_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[3].Field2 = T4_; T1_.data->data[4].Field0 = ((NI) 45572); T1_.data->data[4].Field1 = ((NI) 45572); nimZeroMem((void*)(&T5_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T5_.mcodec = ((NI) 45572); T5_.size = ((NI) 4); T5_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[4].Field2 = T5_; T1_.data->data[5].Field0 = ((NI) 45573); T1_.data->data[5].Field1 = ((NI) 45573); nimZeroMem((void*)(&T6_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T6_.mcodec = ((NI) 45573); T6_.size = ((NI) 5); T6_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[5].Field2 = T6_; T1_.data->data[6].Field0 = ((NI) 45574); T1_.data->data[6].Field1 = ((NI) 45574); nimZeroMem((void*)(&T7_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T7_.mcodec = ((NI) 45574); T7_.size = ((NI) 6); T7_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[6].Field2 = T7_; T1_.data->data[7].Field0 = ((NI) 45575); T1_.data->data[7].Field1 = ((NI) 45575); nimZeroMem((void*)(&T8_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T8_.mcodec = ((NI) 45575); T8_.size = ((NI) 7); T8_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[7].Field2 = T8_; T1_.data->data[8].Field0 = ((NI) 45576); T1_.data->data[8].Field1 = ((NI) 45576); nimZeroMem((void*)(&T9_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T9_.mcodec = ((NI) 45576); T9_.size = ((NI) 8); T9_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[8].Field2 = T9_; T1_.data->data[9].Field0 = ((NI) 45577); T1_.data->data[9].Field1 = ((NI) 45577); nimZeroMem((void*)(&T10_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T10_.mcodec = ((NI) 45577); T10_.size = ((NI) 9); T10_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[9].Field2 = T10_; T1_.data->data[10].Field0 = ((NI) 45578); T1_.data->data[10].Field1 = ((NI) 45578); nimZeroMem((void*)(&T11_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T11_.mcodec = ((NI) 45578); T11_.size = ((NI) 10); T11_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[10].Field2 = T11_; T1_.data->data[11].Field0 = ((NI) 45579); T1_.data->data[11].Field1 = ((NI) 45579); nimZeroMem((void*)(&T12_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T12_.mcodec = ((NI) 45579); T12_.size = ((NI) 11); T12_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[11].Field2 = T12_; T1_.data->data[12].Field0 = ((NI) 45580); T1_.data->data[12].Field1 = ((NI) 45580); nimZeroMem((void*)(&T13_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T13_.mcodec = ((NI) 45580); T13_.size = ((NI) 12); T13_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[12].Field2 = T13_; T1_.data->data[13].Field0 = ((NI) 45581); T1_.data->data[13].Field1 = ((NI) 45581); nimZeroMem((void*)(&T14_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T14_.mcodec = ((NI) 45581); T14_.size = ((NI) 13); T14_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[13].Field2 = T14_; T1_.data->data[14].Field0 = ((NI) 45582); T1_.data->data[14].Field1 = ((NI) 45582); nimZeroMem((void*)(&T15_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T15_.mcodec = ((NI) 45582); T15_.size = ((NI) 14); T15_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[14].Field2 = T15_; T1_.data->data[15].Field0 = ((NI) 45583); T1_.data->data[15].Field1 = ((NI) 45583); nimZeroMem((void*)(&T16_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T16_.mcodec = ((NI) 45583); T16_.size = ((NI) 15); T16_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[15].Field2 = T16_; T1_.data->data[16].Field0 = ((NI) 45584); T1_.data->data[16].Field1 = ((NI) 45584); nimZeroMem((void*)(&T17_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T17_.mcodec = ((NI) 45584); T17_.size = ((NI) 16); T17_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[16].Field2 = T17_; T1_.data->data[17].Field0 = ((NI) 17); T1_.data->data[17].Field1 = ((NI) 17); nimZeroMem((void*)(&T18_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T18_.mcodec = ((NI) 17); T18_.size = ((NI) 20); T18_.coder = sha1hash__e7KIKwGHAJHimtl2bxkbUg_2; T1_.data->data[17].Field2 = T18_; T1_.data->data[18].Field0 = ((NI) 18); T1_.data->data[18].Field1 = ((NI) 18); nimZeroMem((void*)(&T19_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T19_.mcodec = ((NI) 18); T19_.size = ((NI) 32); T19_.coder = sha2256hash__e7KIKwGHAJHimtl2bxkbUg_3; T1_.data->data[18].Field2 = T19_; T1_.data->data[19].Field0 = ((NI) 19); T1_.data->data[19].Field1 = ((NI) 19); nimZeroMem((void*)(&T20_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T20_.mcodec = ((NI) 19); T20_.size = ((NI) 64); T20_.coder = sha2512hash__e7KIKwGHAJHimtl2bxkbUg_4; T1_.data->data[19].Field2 = T20_; T1_.data->data[20].Field0 = ((NI) 20); T1_.data->data[20].Field1 = ((NI) 20); nimZeroMem((void*)(&T21_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T21_.mcodec = ((NI) 20); T21_.size = ((NI) 64); T21_.coder = sha3512hash__e7KIKwGHAJHimtl2bxkbUg_5; T1_.data->data[20].Field2 = T21_; T1_.data->data[21].Field0 = ((NI) 21); T1_.data->data[21].Field1 = ((NI) 21); nimZeroMem((void*)(&T22_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T22_.mcodec = ((NI) 21); T22_.size = ((NI) 48); T22_.coder = sha3384hash__e7KIKwGHAJHimtl2bxkbUg_6; T1_.data->data[21].Field2 = T22_; T1_.data->data[22].Field0 = ((NI) 22); T1_.data->data[22].Field1 = ((NI) 22); nimZeroMem((void*)(&T23_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T23_.mcodec = ((NI) 22); T23_.size = ((NI) 32); T23_.coder = sha3256hash__e7KIKwGHAJHimtl2bxkbUg_7; T1_.data->data[22].Field2 = T23_; T1_.data->data[23].Field0 = ((NI) 23); T1_.data->data[23].Field1 = ((NI) 23); nimZeroMem((void*)(&T24_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T24_.mcodec = ((NI) 23); T24_.size = ((NI) 28); T24_.coder = sha3224hash__e7KIKwGHAJHimtl2bxkbUg_8; T1_.data->data[23].Field2 = T24_; T1_.data->data[24].Field0 = ((NI) 24); T1_.data->data[24].Field1 = ((NI) 24); nimZeroMem((void*)(&T25_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T25_.mcodec = ((NI) 24); T25_.size = ((NI) 32); T25_.coder = shake128hash__e7KIKwGHAJHimtl2bxkbUg_9; T1_.data->data[24].Field2 = T25_; T1_.data->data[25].Field0 = ((NI) 25); T1_.data->data[25].Field1 = ((NI) 25); nimZeroMem((void*)(&T26_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T26_.mcodec = ((NI) 25); T26_.size = ((NI) 64); T26_.coder = shake256hash__e7KIKwGHAJHimtl2bxkbUg_10; T1_.data->data[25].Field2 = T26_; T1_.data->data[26].Field0 = ((NI) 26); T1_.data->data[26].Field1 = ((NI) 26); nimZeroMem((void*)(&T27_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T27_.mcodec = ((NI) 26); T27_.size = ((NI) 28); T27_.coder = keccak224hash__e7KIKwGHAJHimtl2bxkbUg_11; T1_.data->data[26].Field2 = T27_; T1_.data->data[27].Field0 = ((NI) 27); T1_.data->data[27].Field1 = ((NI) 27); nimZeroMem((void*)(&T28_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T28_.mcodec = ((NI) 27); T28_.size = ((NI) 32); T28_.coder = keccak256hash__e7KIKwGHAJHimtl2bxkbUg_12; T1_.data->data[27].Field2 = T28_; T1_.data->data[28].Field0 = ((NI) 28); T1_.data->data[28].Field1 = ((NI) 28); nimZeroMem((void*)(&T29_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T29_.mcodec = ((NI) 28); T29_.size = ((NI) 48); T29_.coder = keccak384hash__e7KIKwGHAJHimtl2bxkbUg_13; T1_.data->data[28].Field2 = T29_; T1_.data->data[29].Field0 = ((NI) 29); T1_.data->data[29].Field1 = ((NI) 29); nimZeroMem((void*)(&T30_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T30_.mcodec = ((NI) 29); T30_.size = ((NI) 64); T30_.coder = keccak512hash__e7KIKwGHAJHimtl2bxkbUg_14; T1_.data->data[29].Field2 = T30_; T1_.data->data[30].Field0 = ((NI) 45585); T1_.data->data[30].Field1 = ((NI) 45585); nimZeroMem((void*)(&T31_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T31_.mcodec = ((NI) 45585); T31_.size = ((NI) 17); T31_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[30].Field2 = T31_; T1_.data->data[31].Field0 = ((NI) 45586); T1_.data->data[31].Field1 = ((NI) 45586); nimZeroMem((void*)(&T32_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T32_.mcodec = ((NI) 45586); T32_.size = ((NI) 18); T32_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[31].Field2 = T32_; T1_.data->data[32].Field0 = ((NI) 45587); T1_.data->data[32].Field1 = ((NI) 45587); nimZeroMem((void*)(&T33_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T33_.mcodec = ((NI) 45587); T33_.size = ((NI) 19); T33_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[32].Field2 = T33_; T1_.data->data[33].Field0 = ((NI) 45588); T1_.data->data[33].Field1 = ((NI) 45588); nimZeroMem((void*)(&T34_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T34_.mcodec = ((NI) 45588); T34_.size = ((NI) 20); T34_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[33].Field2 = T34_; T1_.data->data[34].Field0 = ((NI) 45589); T1_.data->data[34].Field1 = ((NI) 45589); nimZeroMem((void*)(&T35_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T35_.mcodec = ((NI) 45589); T35_.size = ((NI) 21); T35_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[34].Field2 = T35_; T1_.data->data[35].Field0 = ((NI) 45590); T1_.data->data[35].Field1 = ((NI) 45590); nimZeroMem((void*)(&T36_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T36_.mcodec = ((NI) 45590); T36_.size = ((NI) 22); T36_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[35].Field2 = T36_; T1_.data->data[36].Field0 = ((NI) 45591); T1_.data->data[36].Field1 = ((NI) 45591); nimZeroMem((void*)(&T37_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T37_.mcodec = ((NI) 45591); T37_.size = ((NI) 23); T37_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[36].Field2 = T37_; T1_.data->data[37].Field0 = ((NI) 45592); T1_.data->data[37].Field1 = ((NI) 45592); nimZeroMem((void*)(&T38_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T38_.mcodec = ((NI) 45592); T38_.size = ((NI) 24); T38_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[37].Field2 = T38_; T1_.data->data[38].Field0 = ((NI) 45593); T1_.data->data[38].Field1 = ((NI) 45593); nimZeroMem((void*)(&T39_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T39_.mcodec = ((NI) 45593); T39_.size = ((NI) 25); T39_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[38].Field2 = T39_; T1_.data->data[39].Field0 = ((NI) 45594); T1_.data->data[39].Field1 = ((NI) 45594); nimZeroMem((void*)(&T40_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T40_.mcodec = ((NI) 45594); T40_.size = ((NI) 26); T40_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[39].Field2 = T40_; T1_.data->data[40].Field0 = ((NI) 45595); T1_.data->data[40].Field1 = ((NI) 45595); nimZeroMem((void*)(&T41_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T41_.mcodec = ((NI) 45595); T41_.size = ((NI) 27); T41_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[40].Field2 = T41_; T1_.data->data[41].Field0 = ((NI) 45596); T1_.data->data[41].Field1 = ((NI) 45596); nimZeroMem((void*)(&T42_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T42_.mcodec = ((NI) 45596); T42_.size = ((NI) 28); T42_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[41].Field2 = T42_; T1_.data->data[42].Field0 = ((NI) 45597); T1_.data->data[42].Field1 = ((NI) 45597); nimZeroMem((void*)(&T43_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T43_.mcodec = ((NI) 45597); T43_.size = ((NI) 29); T43_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[42].Field2 = T43_; T1_.data->data[43].Field0 = ((NI) 45598); T1_.data->data[43].Field1 = ((NI) 45598); nimZeroMem((void*)(&T44_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T44_.mcodec = ((NI) 45598); T44_.size = ((NI) 30); T44_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[43].Field2 = T44_; T1_.data->data[44].Field0 = ((NI) 45599); T1_.data->data[44].Field1 = ((NI) 45599); nimZeroMem((void*)(&T45_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T45_.mcodec = ((NI) 45599); T45_.size = ((NI) 31); T45_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[44].Field2 = T45_; T1_.data->data[45].Field0 = ((NI) 45600); T1_.data->data[45].Field1 = ((NI) 45600); nimZeroMem((void*)(&T46_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T46_.mcodec = ((NI) 45600); T46_.size = ((NI) 32); T46_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[45].Field2 = T46_; T1_.data->data[46].Field0 = ((NI) 45601); T1_.data->data[46].Field1 = ((NI) 45601); nimZeroMem((void*)(&T47_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T47_.mcodec = ((NI) 45601); T47_.size = ((NI) 33); T47_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[46].Field2 = T47_; T1_.data->data[47].Field0 = ((NI) 45602); T1_.data->data[47].Field1 = ((NI) 45602); nimZeroMem((void*)(&T48_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T48_.mcodec = ((NI) 45602); T48_.size = ((NI) 34); T48_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[47].Field2 = T48_; T1_.data->data[48].Field0 = ((NI) 45603); T1_.data->data[48].Field1 = ((NI) 45603); nimZeroMem((void*)(&T49_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T49_.mcodec = ((NI) 45603); T49_.size = ((NI) 35); T49_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[48].Field2 = T49_; T1_.data->data[49].Field0 = ((NI) 45604); T1_.data->data[49].Field1 = ((NI) 45604); nimZeroMem((void*)(&T50_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T50_.mcodec = ((NI) 45604); T50_.size = ((NI) 36); T50_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[49].Field2 = T50_; T1_.data->data[50].Field0 = ((NI) 45605); T1_.data->data[50].Field1 = ((NI) 45605); nimZeroMem((void*)(&T51_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T51_.mcodec = ((NI) 45605); T51_.size = ((NI) 37); T51_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[50].Field2 = T51_; T1_.data->data[51].Field0 = ((NI) 45606); T1_.data->data[51].Field1 = ((NI) 45606); nimZeroMem((void*)(&T52_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T52_.mcodec = ((NI) 45606); T52_.size = ((NI) 38); T52_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[51].Field2 = T52_; T1_.data->data[52].Field0 = ((NI) 45607); T1_.data->data[52].Field1 = ((NI) 45607); nimZeroMem((void*)(&T53_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T53_.mcodec = ((NI) 45607); T53_.size = ((NI) 39); T53_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[52].Field2 = T53_; T1_.data->data[53].Field0 = ((NI) 45608); T1_.data->data[53].Field1 = ((NI) 45608); nimZeroMem((void*)(&T54_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T54_.mcodec = ((NI) 45608); T54_.size = ((NI) 40); T54_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[53].Field2 = T54_; T1_.data->data[54].Field0 = ((NI) 45609); T1_.data->data[54].Field1 = ((NI) 45609); nimZeroMem((void*)(&T55_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T55_.mcodec = ((NI) 45609); T55_.size = ((NI) 41); T55_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[54].Field2 = T55_; T1_.data->data[55].Field0 = ((NI) 45610); T1_.data->data[55].Field1 = ((NI) 45610); nimZeroMem((void*)(&T56_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T56_.mcodec = ((NI) 45610); T56_.size = ((NI) 42); T56_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[55].Field2 = T56_; T1_.data->data[56].Field0 = ((NI) 45611); T1_.data->data[56].Field1 = ((NI) 45611); nimZeroMem((void*)(&T57_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T57_.mcodec = ((NI) 45611); T57_.size = ((NI) 43); T57_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[56].Field2 = T57_; T1_.data->data[57].Field0 = ((NI) 45612); T1_.data->data[57].Field1 = ((NI) 45612); nimZeroMem((void*)(&T58_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T58_.mcodec = ((NI) 45612); T58_.size = ((NI) 44); T58_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[57].Field2 = T58_; T1_.data->data[58].Field0 = ((NI) 45613); T1_.data->data[58].Field1 = ((NI) 45613); nimZeroMem((void*)(&T59_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T59_.mcodec = ((NI) 45613); T59_.size = ((NI) 45); T59_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[58].Field2 = T59_; T1_.data->data[59].Field0 = ((NI) 45614); T1_.data->data[59].Field1 = ((NI) 45614); nimZeroMem((void*)(&T60_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T60_.mcodec = ((NI) 45614); T60_.size = ((NI) 46); T60_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[59].Field2 = T60_; T1_.data->data[60].Field0 = ((NI) 45615); T1_.data->data[60].Field1 = ((NI) 45615); nimZeroMem((void*)(&T61_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T61_.mcodec = ((NI) 45615); T61_.size = ((NI) 47); T61_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[60].Field2 = T61_; T1_.data->data[61].Field0 = ((NI) 45616); T1_.data->data[61].Field1 = ((NI) 45616); nimZeroMem((void*)(&T62_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T62_.mcodec = ((NI) 45616); T62_.size = ((NI) 48); T62_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[61].Field2 = T62_; T1_.data->data[62].Field0 = ((NI) 45617); T1_.data->data[62].Field1 = ((NI) 45617); nimZeroMem((void*)(&T63_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T63_.mcodec = ((NI) 45617); T63_.size = ((NI) 49); T63_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[62].Field2 = T63_; T1_.data->data[63].Field0 = ((NI) 45618); T1_.data->data[63].Field1 = ((NI) 45618); nimZeroMem((void*)(&T64_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T64_.mcodec = ((NI) 45618); T64_.size = ((NI) 50); T64_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[63].Field2 = T64_; T1_.data->data[64].Field0 = ((NI) 45619); T1_.data->data[64].Field1 = ((NI) 45619); nimZeroMem((void*)(&T65_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T65_.mcodec = ((NI) 45619); T65_.size = ((NI) 51); T65_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[64].Field2 = T65_; T1_.data->data[65].Field0 = ((NI) 45620); T1_.data->data[65].Field1 = ((NI) 45620); nimZeroMem((void*)(&T66_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T66_.mcodec = ((NI) 45620); T66_.size = ((NI) 52); T66_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[65].Field2 = T66_; T1_.data->data[66].Field0 = ((NI) 45621); T1_.data->data[66].Field1 = ((NI) 45621); nimZeroMem((void*)(&T67_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T67_.mcodec = ((NI) 45621); T67_.size = ((NI) 53); T67_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[66].Field2 = T67_; T1_.data->data[67].Field0 = ((NI) 45622); T1_.data->data[67].Field1 = ((NI) 45622); nimZeroMem((void*)(&T68_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T68_.mcodec = ((NI) 45622); T68_.size = ((NI) 54); T68_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[67].Field2 = T68_; T1_.data->data[68].Field0 = ((NI) 45623); T1_.data->data[68].Field1 = ((NI) 45623); nimZeroMem((void*)(&T69_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T69_.mcodec = ((NI) 45623); T69_.size = ((NI) 55); T69_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[68].Field2 = T69_; T1_.data->data[69].Field0 = ((NI) 45624); T1_.data->data[69].Field1 = ((NI) 45624); nimZeroMem((void*)(&T70_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T70_.mcodec = ((NI) 45624); T70_.size = ((NI) 56); T70_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[69].Field2 = T70_; T1_.data->data[70].Field0 = ((NI) 45625); T1_.data->data[70].Field1 = ((NI) 45625); nimZeroMem((void*)(&T71_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T71_.mcodec = ((NI) 45625); T71_.size = ((NI) 57); T71_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[70].Field2 = T71_; T1_.data->data[71].Field0 = ((NI) 45626); T1_.data->data[71].Field1 = ((NI) 45626); nimZeroMem((void*)(&T72_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T72_.mcodec = ((NI) 45626); T72_.size = ((NI) 58); T72_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[71].Field2 = T72_; T1_.data->data[72].Field0 = ((NI) 45627); T1_.data->data[72].Field1 = ((NI) 45627); nimZeroMem((void*)(&T73_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T73_.mcodec = ((NI) 45627); T73_.size = ((NI) 59); T73_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[72].Field2 = T73_; T1_.data->data[73].Field0 = ((NI) 45628); T1_.data->data[73].Field1 = ((NI) 45628); nimZeroMem((void*)(&T74_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T74_.mcodec = ((NI) 45628); T74_.size = ((NI) 60); T74_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[73].Field2 = T74_; T1_.data->data[74].Field0 = ((NI) 45629); T1_.data->data[74].Field1 = ((NI) 45629); nimZeroMem((void*)(&T75_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T75_.mcodec = ((NI) 45629); T75_.size = ((NI) 61); T75_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[74].Field2 = T75_; T1_.data->data[75].Field0 = ((NI) 45630); T1_.data->data[75].Field1 = ((NI) 45630); nimZeroMem((void*)(&T76_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T76_.mcodec = ((NI) 45630); T76_.size = ((NI) 62); T76_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[75].Field2 = T76_; T1_.data->data[76].Field0 = ((NI) 45631); T1_.data->data[76].Field1 = ((NI) 45631); nimZeroMem((void*)(&T77_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T77_.mcodec = ((NI) 45631); T77_.size = ((NI) 63); T77_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[76].Field2 = T77_; T1_.data->data[77].Field0 = ((NI) 45632); T1_.data->data[77].Field1 = ((NI) 45632); nimZeroMem((void*)(&T78_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T78_.mcodec = ((NI) 45632); T78_.size = ((NI) 64); T78_.coder = blake2Bhash__e7KIKwGHAJHimtl2bxkbUg; T1_.data->data[77].Field2 = T78_; T1_.data->data[78].Field0 = ((NI) 45633); T1_.data->data[78].Field1 = ((NI) 45633); nimZeroMem((void*)(&T79_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T79_.mcodec = ((NI) 45633); T79_.size = ((NI) 1); T79_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[78].Field2 = T79_; T1_.data->data[79].Field0 = ((NI) 45634); T1_.data->data[79].Field1 = ((NI) 45634); nimZeroMem((void*)(&T80_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T80_.mcodec = ((NI) 45634); T80_.size = ((NI) 2); T80_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[79].Field2 = T80_; T1_.data->data[80].Field0 = ((NI) 45635); T1_.data->data[80].Field1 = ((NI) 45635); nimZeroMem((void*)(&T81_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T81_.mcodec = ((NI) 45635); T81_.size = ((NI) 3); T81_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[80].Field2 = T81_; T1_.data->data[81].Field0 = ((NI) 45636); T1_.data->data[81].Field1 = ((NI) 45636); nimZeroMem((void*)(&T82_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T82_.mcodec = ((NI) 45636); T82_.size = ((NI) 4); T82_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[81].Field2 = T82_; T1_.data->data[82].Field0 = ((NI) 45637); T1_.data->data[82].Field1 = ((NI) 45637); nimZeroMem((void*)(&T83_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T83_.mcodec = ((NI) 45637); T83_.size = ((NI) 5); T83_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[82].Field2 = T83_; T1_.data->data[83].Field0 = ((NI) 45638); T1_.data->data[83].Field1 = ((NI) 45638); nimZeroMem((void*)(&T84_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T84_.mcodec = ((NI) 45638); T84_.size = ((NI) 6); T84_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[83].Field2 = T84_; T1_.data->data[84].Field0 = ((NI) 45639); T1_.data->data[84].Field1 = ((NI) 45639); nimZeroMem((void*)(&T85_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T85_.mcodec = ((NI) 45639); T85_.size = ((NI) 7); T85_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[84].Field2 = T85_; T1_.data->data[85].Field0 = ((NI) 45640); T1_.data->data[85].Field1 = ((NI) 45640); nimZeroMem((void*)(&T86_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T86_.mcodec = ((NI) 45640); T86_.size = ((NI) 8); T86_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[85].Field2 = T86_; T1_.data->data[86].Field0 = ((NI) 86); T1_.data->data[86].Field1 = ((NI) 86); nimZeroMem((void*)(&T87_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T87_.mcodec = ((NI) 86); T87_.size = ((NI) 32); T87_.coder = dblsha2256hash__e7KIKwGHAJHimtl2bxkbUg_16; T1_.data->data[86].Field2 = T87_; T1_.data->data[87].Field0 = ((NI) 45641); T1_.data->data[87].Field1 = ((NI) 45641); nimZeroMem((void*)(&T88_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T88_.mcodec = ((NI) 45641); T88_.size = ((NI) 9); T88_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[87].Field2 = T88_; T1_.data->data[88].Field0 = ((NI) 45642); T1_.data->data[88].Field1 = ((NI) 45642); nimZeroMem((void*)(&T89_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T89_.mcodec = ((NI) 45642); T89_.size = ((NI) 10); T89_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[88].Field2 = T89_; T1_.data->data[89].Field0 = ((NI) 45643); T1_.data->data[89].Field1 = ((NI) 45643); nimZeroMem((void*)(&T90_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T90_.mcodec = ((NI) 45643); T90_.size = ((NI) 11); T90_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[89].Field2 = T90_; T1_.data->data[90].Field0 = ((NI) 45644); T1_.data->data[90].Field1 = ((NI) 45644); nimZeroMem((void*)(&T91_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T91_.mcodec = ((NI) 45644); T91_.size = ((NI) 12); T91_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[90].Field2 = T91_; T1_.data->data[91].Field0 = ((NI) 45645); T1_.data->data[91].Field1 = ((NI) 45645); nimZeroMem((void*)(&T92_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T92_.mcodec = ((NI) 45645); T92_.size = ((NI) 13); T92_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[91].Field2 = T92_; T1_.data->data[92].Field0 = ((NI) 45646); T1_.data->data[92].Field1 = ((NI) 45646); nimZeroMem((void*)(&T93_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T93_.mcodec = ((NI) 45646); T93_.size = ((NI) 14); T93_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[92].Field2 = T93_; T1_.data->data[93].Field0 = ((NI) 45647); T1_.data->data[93].Field1 = ((NI) 45647); nimZeroMem((void*)(&T94_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T94_.mcodec = ((NI) 45647); T94_.size = ((NI) 15); T94_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[93].Field2 = T94_; T1_.data->data[94].Field0 = ((NI) 45648); T1_.data->data[94].Field1 = ((NI) 45648); nimZeroMem((void*)(&T95_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T95_.mcodec = ((NI) 45648); T95_.size = ((NI) 16); T95_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[94].Field2 = T95_; T1_.data->data[95].Field0 = ((NI) 45649); T1_.data->data[95].Field1 = ((NI) 45649); nimZeroMem((void*)(&T96_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T96_.mcodec = ((NI) 45649); T96_.size = ((NI) 17); T96_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[95].Field2 = T96_; T1_.data->data[96].Field0 = ((NI) 45650); T1_.data->data[96].Field1 = ((NI) 45650); nimZeroMem((void*)(&T97_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T97_.mcodec = ((NI) 45650); T97_.size = ((NI) 18); T97_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[96].Field2 = T97_; T1_.data->data[97].Field0 = ((NI) 45651); T1_.data->data[97].Field1 = ((NI) 45651); nimZeroMem((void*)(&T98_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T98_.mcodec = ((NI) 45651); T98_.size = ((NI) 19); T98_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[97].Field2 = T98_; T1_.data->data[98].Field0 = ((NI) 45652); T1_.data->data[98].Field1 = ((NI) 45652); nimZeroMem((void*)(&T99_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T99_.mcodec = ((NI) 45652); T99_.size = ((NI) 20); T99_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[98].Field2 = T99_; T1_.data->data[99].Field0 = ((NI) 45653); T1_.data->data[99].Field1 = ((NI) 45653); nimZeroMem((void*)(&T100_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T100_.mcodec = ((NI) 45653); T100_.size = ((NI) 21); T100_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[99].Field2 = T100_; T1_.data->data[100].Field0 = ((NI) 45654); T1_.data->data[100].Field1 = ((NI) 45654); nimZeroMem((void*)(&T101_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T101_.mcodec = ((NI) 45654); T101_.size = ((NI) 22); T101_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[100].Field2 = T101_; T1_.data->data[101].Field0 = ((NI) 45655); T1_.data->data[101].Field1 = ((NI) 45655); nimZeroMem((void*)(&T102_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T102_.mcodec = ((NI) 45655); T102_.size = ((NI) 23); T102_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[101].Field2 = T102_; T1_.data->data[102].Field0 = ((NI) 45656); T1_.data->data[102].Field1 = ((NI) 45656); nimZeroMem((void*)(&T103_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T103_.mcodec = ((NI) 45656); T103_.size = ((NI) 24); T103_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[102].Field2 = T103_; T1_.data->data[103].Field0 = ((NI) 45657); T1_.data->data[103].Field1 = ((NI) 45657); nimZeroMem((void*)(&T104_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T104_.mcodec = ((NI) 45657); T104_.size = ((NI) 25); T104_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[103].Field2 = T104_; T1_.data->data[104].Field0 = ((NI) 45658); T1_.data->data[104].Field1 = ((NI) 45658); nimZeroMem((void*)(&T105_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T105_.mcodec = ((NI) 45658); T105_.size = ((NI) 26); T105_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[104].Field2 = T105_; T1_.data->data[105].Field0 = ((NI) 45659); T1_.data->data[105].Field1 = ((NI) 45659); nimZeroMem((void*)(&T106_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T106_.mcodec = ((NI) 45659); T106_.size = ((NI) 27); T106_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[105].Field2 = T106_; T1_.data->data[106].Field0 = ((NI) 45660); T1_.data->data[106].Field1 = ((NI) 45660); nimZeroMem((void*)(&T107_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T107_.mcodec = ((NI) 45660); T107_.size = ((NI) 28); T107_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[106].Field2 = T107_; T1_.data->data[107].Field0 = ((NI) 45661); T1_.data->data[107].Field1 = ((NI) 45661); nimZeroMem((void*)(&T108_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T108_.mcodec = ((NI) 45661); T108_.size = ((NI) 29); T108_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[107].Field2 = T108_; T1_.data->data[108].Field0 = ((NI) 45662); T1_.data->data[108].Field1 = ((NI) 45662); nimZeroMem((void*)(&T109_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T109_.mcodec = ((NI) 45662); T109_.size = ((NI) 30); T109_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[108].Field2 = T109_; T1_.data->data[109].Field0 = ((NI) 45663); T1_.data->data[109].Field1 = ((NI) 45663); nimZeroMem((void*)(&T110_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T110_.mcodec = ((NI) 45663); T110_.size = ((NI) 31); T110_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[109].Field2 = T110_; T1_.data->data[110].Field0 = ((NI) 45664); T1_.data->data[110].Field1 = ((NI) 45664); nimZeroMem((void*)(&T111_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T111_.mcodec = ((NI) 45664); T111_.size = ((NI) 32); T111_.coder = blake2Shash__e7KIKwGHAJHimtl2bxkbUg_15; T1_.data->data[110].Field2 = T111_; T1_.data->data[111] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[112] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[113] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[114] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[115] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[116] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[117] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[118] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[119] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[120] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[121] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[122] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[123] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[124] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[125] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[126] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[127] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[128] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[129] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[130] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[131] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[132] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[133] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[134] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[135] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[136] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[137] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[138] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[139] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[140] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[141] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[142] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[143] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[144] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[145] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[146] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[147] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[148] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[149] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[150] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[151] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[152] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[153] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[154] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[155] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[156] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[157] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[158] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[159] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[160] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[161].Field0 = ((NI) 314159265); T1_.data->data[161].Field1 = ((NI) 0); nimZeroMem((void*)(&T112_), sizeof(tyObject_MHash__OxIffpYaxIua3k1C6do2Ew)); T112_.mcodec = ((NI) 0); T112_.size = ((NI) 0); T112_.coder = identhash__e7KIKwGHAJHimtl2bxkbUg_17; T1_.data->data[161].Field2 = T112_; T1_.data->data[162] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[163] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[164] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[165] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[166] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[167] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[168] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[169] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[170] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[171] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[172] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[173] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[174] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[175] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[176] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[177] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[178] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[179] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[180] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[181] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[182] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[183] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[184] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[185] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[186] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[187] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[188] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[189] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[190] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[191] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[192] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[193] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[194] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[195] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[196] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[197] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[198] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[199] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[200] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[201] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[202] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[203] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[204] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[205] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[206] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[207] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[208] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[209] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[210] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[211] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[212] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[213] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[214] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[215] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[216] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[217] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[218] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[219] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[220] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[221] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[222] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[223] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[224] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[225] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[226] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[227] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[228] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[229] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[230] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[231] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[232] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[233] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[234] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[235] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[236] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[237] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[238] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[239] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[240] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[241] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[242] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[243] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[244] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[245] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[246] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[247] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[248] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[249] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[250] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[251] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[252] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[253] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[254] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.data->data[255] = TM__wBH5hWbN4O4UxUgzOozgCA_31; T1_.counter = ((NI) 111);
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
hash_1 = getOrDefault__4bQAzN75zxubDUvHhrIO5A(T1_, hashcode);
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
{
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
if (!(hash_1.coder == 0)) goto LA115_;
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = NIM_NIL; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = "Hash not supported"; }
goto LA113_;
LA115_: ;
{ NIM_BOOL T118_;
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
T118_ = (NIM_BOOL)0;
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
T118_ = !((hash_1.size == ((NI) 0))); if (!(T118_)) goto LA119_;
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
T118_ = !((hash_1.size == ((NI) 32))); LA119_: ;
if (!T118_) goto LA120_;
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = NIM_NIL; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = "Incorrect digest size"; }
goto LA113_;
LA120_: ;
{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = NIM_NIL; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data.buffer, NIM_NIL); (*Result)._o_2.v.data.offset = 0; (*Result)._o_2.v.mcodec = 0; (*Result)._o_2.v.size = 0; (*Result)._o_2.v.dpos = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE;
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/multihash.nim"
digestImplWithoutHash__9c8VNSxvivnCseokNdjN9aHA(hash_1, (*mdigest).data, 32, (&(*Result)._o_2.v));
}
LA113_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___J3DXJXPkwGR3QaMI39a9cJGw)(NCSTRING _X60gensym70410048_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 899 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 2); return result;}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___n2dKp9a3cfBzTLD7cY9aS9abg)(NCSTRING _X60gensym70445246_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 900 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 2); return result;}
#line 887 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw, getOrder__7SSF9auN14yuhL9a2AYxOVfg)(NU8* remotePubkey, NI remotePubkeyLen_0, NU8* localNonce, NI localNonceLen_0, NU8* localPubkey, NI localPubkeyLen_0, NU8* remoteNonce, NI remoteNonceLen_0) { tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw result; tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w ctx; tyObject_MDigest__law9ct65KplMYBvtmjCQxbw digest1; tyObject_MDigest__law9ct65KplMYBvtmjCQxbw digest2; tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ mh1; tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg vX60gensym70435034_; tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ T1_; tyProc__bloIU7gvEU4cm2XwldKKnA T2_; tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ mh2; tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg vX60gensym70450059_; tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ T7_; tyProc__bloIU7gvEU4cm2XwldKKnA T8_; NI res;{ nimZeroMem((void*)(&result), sizeof(tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw));
#line 889 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&ctx), sizeof(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w));
#line 891 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 891 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__C8fXqRtxb2ILgkwYRN3qiQsha2((&ctx));
#line 892 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 892 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JVKV5lsc6z00iHHbNwyg9bAsha2((&ctx), remotePubkey, remotePubkeyLen_0);
#line 893 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 893 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JVKV5lsc6z00iHHbNwyg9bAsha2((&ctx), localNonce, localNonceLen_0);
#line 894 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 894 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
digest1 = finish__x70ALeeaQ1ry9a63hdOCQWA((&ctx));
#line 895 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 895 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__C8fXqRtxb2ILgkwYRN3qiQsha2((&ctx));
#line 896 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 896 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JVKV5lsc6z00iHHbNwyg9bAsha2((&ctx), localPubkey, localPubkeyLen_0);
#line 897 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 897 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JVKV5lsc6z00iHHbNwyg9bAsha2((&ctx), remoteNonce, remoteNonceLen_0);
#line 898 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 898 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
digest2 = finish__x70ALeeaQ1ry9a63hdOCQWA((&ctx)); nimZeroMem((void*)(&mh1), sizeof(tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ));
#line 899 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym70435034_), sizeof(tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 899 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 899 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T1_), sizeof(tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ)); init__sH9alXqNXtBL6AnEitBk6rwmultihash(((NI) 18), (&digest1), (&T1_));
nimZeroMem((void*)(&T2_), sizeof(tyProc__bloIU7gvEU4cm2XwldKKnA)); T2_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_32) (colonanonymous___J3DXJXPkwGR3QaMI39a9cJGw)); T2_.ClE_0 = NIM_NIL;
#line 899 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__9byGS0pCJuOqQbsGVT9cC27Qresults((&T1_), T2_, (&vX60gensym70435034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym70435034_.o)) goto LA5_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw)); result.o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym70435034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } result._o_1.e = vX60gensym70435034_._o_1.e; goto BeforeRet_;
}
LA5_: ;
if (!(((2 &(1U<<((NU)(vX60gensym70435034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&mh1.data.buffer), vX60gensym70435034_._o_2.v.data.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); mh1.data.offset = vX60gensym70435034_._o_2.v.data.offset; mh1.mcodec = vX60gensym70435034_._o_2.v.mcodec; mh1.size = vX60gensym70435034_._o_2.v.size; mh1.dpos = vX60gensym70435034_._o_2.v.dpos; nimZeroMem((void*)(&mh2), sizeof(tyObject_MultiHash__kTmblgG9a1D1SuzEkBN4qXQ));
#line 900 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym70450059_), sizeof(tyObject_Result__Gf1VYFAk35PMHV4kUdJtrg));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 900 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 900 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T7_), sizeof(tyObject_Result__LEcvhHNtxNkX9c05Ya9bc5OQ)); init__sH9alXqNXtBL6AnEitBk6rwmultihash(((NI) 18), (&digest2), (&T7_));
nimZeroMem((void*)(&T8_), sizeof(tyProc__bloIU7gvEU4cm2XwldKKnA)); T8_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_33) (colonanonymous___n2dKp9a3cfBzTLD7cY9aS9abg)); T8_.ClE_0 = NIM_NIL;
#line 900 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__9byGS0pCJuOqQbsGVT9cC27Qresults((&T7_), T8_, (&vX60gensym70450059_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym70450059_.o)) goto LA11_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw)); result.o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym70450059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } result._o_1.e = vX60gensym70450059_._o_1.e; goto BeforeRet_;
}
LA11_: ;
if (!(((2 &(1U<<((NU)(vX60gensym70450059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&mh2.data.buffer), vX60gensym70450059_._o_2.v.data.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); mh2.data.offset = vX60gensym70450059_._o_2.v.data.offset; mh2.mcodec = vX60gensym70450059_._o_2.v.mcodec; mh2.size = vX60gensym70450059_._o_2.v.size; mh2.dpos = vX60gensym70450059_._o_2.v.dpos;
#line 901 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
res = ((NI) 0); { NI i; NI colontmp_; NI T14_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
#line 902 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 902 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T14_ = (mh1.data.buffer ? mh1.data.buffer->Sup.len : 0); colontmp_ = T14_;
#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) { NI TM__wBH5hWbN4O4UxUgzOozgCA_34; NI TM__wBH5hWbN4O4UxUgzOozgCA_35;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < colontmp_)) goto LA16;
#line 902 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
i = i_2;
#line 903 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 903 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(i) >= (NU)(mh1.data.buffer ? mh1.data.buffer->Sup.len : 0)){ raiseIndexError2(i,(mh1.data.buffer ? mh1.data.buffer->Sup.len : 0)-1); } if ((NU)(i) >= (NU)(mh2.data.buffer ? mh2.data.buffer->Sup.len : 0)){ raiseIndexError2(i,(mh2.data.buffer ? mh2.data.buffer->Sup.len : 0)-1); } if (nimSubInt(((NI) (mh1.data.buffer->data[i])), ((NI) (mh2.data.buffer->data[i])), &TM__wBH5hWbN4O4UxUgzOozgCA_34)) { raiseOverflow(); }; res = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_34);
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!!((res == ((NI) 0)))) goto LA19_;
#line 905 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 905 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(res < ((NI) 0))) goto LA23_;
#line 906 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
res = ((NI) -1); }
goto LA21_;
LA23_: ;
{
#line 907 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((NI) 0) < res)) goto LA26_;
#line 908 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
res = ((NI) 1); }
goto LA21_;
LA26_: ;
LA21_: ;
#line 909 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
goto LA13;
}
LA19_: ;
#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__wBH5hWbN4O4UxUgzOozgCA_35)) { raiseOverflow(); }; i_2 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_35); } LA16: ;
}
} LA13: ;
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__zGyZB68DDVJsh9ahWOPH3zw)); result.o = NIM_TRUE; result._o_2.v = res; }BeforeRet_: ;
return result;}
#line 36 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) { int result; result = (int)0;
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
result = memcmp(a, b, ((size_t) (size))); return result;}
#line 2120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) { NIM_BOOL result; int T1_; result = (NIM_BOOL)0;
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
T1_ = (int)0; T1_ = nimCmpMem(a, b, size); result = (T1_ == ((NI32) 0)); return result;}
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI alen; NI blen;{ result = (NIM_BOOL)0;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
alen = (a ? a->Sup.len : 0);
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
blen = (b ? b->Sup.len : 0);
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
{
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
if (!(alen == blen)) goto LA3_;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
{
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
if (!(alen == ((NI) 0))) goto LA7_;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
result = NIM_TRUE; goto BeforeRet_;
}
LA7_: ;
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/strmantle.nim"
result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen))); goto BeforeRet_;
}
LA3_: ;
}BeforeRet_: ;
return result;}
#line 912 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, selectBest__IfUm6AncJPGOru6oPQaZ6A)(NI order_0, NimStringDesc* p1, NimStringDesc* p2) { NimStringDesc* result; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* f; tySequence__sM4lkSb7zS6F7OVMvW9cffQ* s;{ result = (NimStringDesc*)0; f = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0; s = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
#line 917 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 917 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(order_0 < ((NI) 0))) goto LA3_;
#line 918 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 918 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
f = nsuSplitString(p2, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_36), ((NI) -1));
#line 919 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 919 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
s = nsuSplitString(p1, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_36), ((NI) -1)); }
goto LA1_;
LA3_: ;
{
#line 920 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((NI) 0) < order_0)) goto LA6_;
#line 921 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 921 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
f = nsuSplitString(p1, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_36), ((NI) -1));
#line 922 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 922 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
s = nsuSplitString(p2, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_36), ((NI) -1)); }
goto LA1_;
LA6_: ;
{ tySequence__sM4lkSb7zS6F7OVMvW9cffQ* p_1;
#line 924 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 924 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
p_1 = nsuSplitString(p1, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_36), ((NI) -1));
#line 925 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 925 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(((NI) 0)) >= (NU)(p_1 ? p_1->Sup.len : 0)){ raiseIndexError2(((NI) 0),(p_1 ? p_1->Sup.len : 0)-1); } result = copyString(p_1->data[((NI) 0)]); goto BeforeRet_;
}
LA1_: ;
{ NimStringDesc* felement; NI i; NI L; NI T10_; felement = (NimStringDesc*)0;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T10_ = (f ? f->Sup.len : 0); L = T10_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI TM__wBH5hWbN4O4UxUgzOozgCA_39;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i < L)) goto LA12;
#line 927 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(i) >= (NU)(f ? f->Sup.len : 0)){ raiseIndexError2(i,(f ? f->Sup.len : 0)-1); } felement = f->data[i]; { NimStringDesc* selement; NI i_2; NI L_2; NI T14_; selement = (NimStringDesc*)0;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i_2 = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T14_ = (s ? s->Sup.len : 0); L_2 = T14_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI TM__wBH5hWbN4O4UxUgzOozgCA_37;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i_2 < L_2)) goto LA16;
#line 928 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(i_2) >= (NU)(s ? s->Sup.len : 0)){ raiseIndexError2(i_2,(s ? s->Sup.len : 0)-1); } selement = s->data[i_2];
#line 929 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 929 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(felement, selement)) goto LA19_;
#line 930 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 930 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = copyString(felement); goto BeforeRet_;
}
LA19_: ;
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_37)) { raiseOverflow(); }; i_2 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_37);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T23_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T23_ = (s ? s->Sup.len : 0); if (!!((T23_ == L_2))) goto LA24_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_38));
}
LA24_: ;
} LA16: ;
}
}
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_39)) { raiseOverflow(); }; i = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_39);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T28_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T28_ = (f ? f->Sup.len : 0); if (!!((T28_ == L))) goto LA29_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_38));
}
LA29_: ;
} LA12: ;
}
}
}BeforeRet_: ;
return result;}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__ke0p5rU4K7rIdxYKH1QWbgresults)(tyObject_Result__aacdVUZDJjOWP9bH69asqFVg self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__iS17NtK7ldheyAdSzroSMA* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.seckey, NIM_NIL); unsureAsgnRef((void**)&(*Result)._o_2.v.pubkey, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.seckey, NIM_NIL); unsureAsgnRef((void**)&(*Result)._o_2.v.pubkey, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } unsureAsgnRef((void**) (&(*Result)._o_2.v.seckey), self._o_2.v.seckey); unsureAsgnRef((void**) (&(*Result)._o_2.v.pubkey), self._o_2.v.pubkey); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.seckey, NIM_NIL); unsureAsgnRef((void**)&(*Result)._o_2.v.pubkey, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_41)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___9a2r1nnwJbE2MBaiqFBDKjw)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym70300048_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___IsDi8pVjaamYRKPmxMdYBg)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym70330417_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___PpiLA9aDOPac9aFHIfkRSvRg)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym70340417_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 859 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, ephemeral__VlmLCHAWYOJGIjwKOlTpvQ)(tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw scheme, br_hmac_drbg_context* rng_0, tyObject_Result__iS17NtK7ldheyAdSzroSMA* Result) { tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw keypair;{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.seckey, NIM_NIL); unsureAsgnRef((void**)&(*Result)._o_2.v.pubkey, NIM_NIL); break;
}
(*Result).o = 0;
#line 862 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&keypair), sizeof(tyObject_EcKeyPair__bsR3ZYy78BmQsv6nJi4PSw));
#line 864 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__iS17NtK7ldheyAdSzroSMA vX60gensym70325034_; tyObject_Result__aacdVUZDJjOWP9bH69asqFVg T5_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T6_;
#line 864 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(scheme == ((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 23))) goto LA3_;
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym70325034_), sizeof(tyObject_Result__iS17NtK7ldheyAdSzroSMA));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T5_), sizeof(tyObject_Result__aacdVUZDJjOWP9bH69asqFVg)); random__bxw51vYxkPGA3LT5r0LgoQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 23), rng_0, (&T5_));
nimZeroMem((void*)(&T6_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T6_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_42) (colonanonymous___9a2r1nnwJbE2MBaiqFBDKjw)); T6_.ClE_0 = NIM_NIL;
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__ke0p5rU4K7rIdxYKH1QWbgresults(T5_, T6_, (&vX60gensym70325034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym70325034_.o)) goto LA9_;
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
genericAssign((void*)Result, (void*)(&vX60gensym70325034_), (&NTI__iS17NtK7ldheyAdSzroSMA_)); goto BeforeRet_;
}
LA9_: ;
if (!(((2 &(1U<<((NU)(vX60gensym70325034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } keypair.seckey = vX60gensym70325034_._o_2.v.seckey; keypair.pubkey = vX60gensym70325034_._o_2.v.pubkey; }
goto LA1_;
LA3_: ;
{ tyObject_Result__iS17NtK7ldheyAdSzroSMA vX60gensym70335059_; tyObject_Result__aacdVUZDJjOWP9bH69asqFVg T14_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T15_;
#line 866 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(scheme == ((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 24))) goto LA12_;
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym70335059_), sizeof(tyObject_Result__iS17NtK7ldheyAdSzroSMA));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T14_), sizeof(tyObject_Result__aacdVUZDJjOWP9bH69asqFVg)); random__bxw51vYxkPGA3LT5r0LgoQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 24), rng_0, (&T14_));
nimZeroMem((void*)(&T15_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T15_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_43) (colonanonymous___IsDi8pVjaamYRKPmxMdYBg)); T15_.ClE_0 = NIM_NIL;
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__ke0p5rU4K7rIdxYKH1QWbgresults(T14_, T15_, (&vX60gensym70335059_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym70335059_.o)) goto LA18_;
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
genericAssign((void*)Result, (void*)(&vX60gensym70335059_), (&NTI__iS17NtK7ldheyAdSzroSMA_)); goto BeforeRet_;
}
LA18_: ;
if (!(((2 &(1U<<((NU)(vX60gensym70335059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } keypair.seckey = vX60gensym70335059_._o_2.v.seckey; keypair.pubkey = vX60gensym70335059_._o_2.v.pubkey; }
goto LA1_;
LA12_: ;
{ tyObject_Result__iS17NtK7ldheyAdSzroSMA vX60gensym70345059_; tyObject_Result__aacdVUZDJjOWP9bH69asqFVg T23_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T24_;
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(scheme == ((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 25))) goto LA21_;
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym70345059_), sizeof(tyObject_Result__iS17NtK7ldheyAdSzroSMA));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T23_), sizeof(tyObject_Result__aacdVUZDJjOWP9bH69asqFVg)); random__bxw51vYxkPGA3LT5r0LgoQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 25), rng_0, (&T23_));
nimZeroMem((void*)(&T24_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T24_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_44) (colonanonymous___PpiLA9aDOPac9aFHIfkRSvRg)); T24_.ClE_0 = NIM_NIL;
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__ke0p5rU4K7rIdxYKH1QWbgresults(T23_, T24_, (&vX60gensym70345059_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym70345059_.o)) goto LA27_;
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
genericAssign((void*)Result, (void*)(&vX60gensym70345059_), (&NTI__iS17NtK7ldheyAdSzroSMA_)); goto BeforeRet_;
}
LA27_: ;
if (!(((2 &(1U<<((NU)(vX60gensym70345059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } keypair.seckey = vX60gensym70345059_._o_2.v.seckey; keypair.pubkey = vX60gensym70345059_._o_2.v.pubkey; }
goto LA1_;
LA21_: ;
LA1_: ;
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.seckey, NIM_NIL); unsureAsgnRef((void**)&(*Result)._o_2.v.pubkey, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; unsureAsgnRef((void**) (&(*Result)._o_2.v.seckey), keypair.seckey); unsureAsgnRef((void**) (&(*Result)._o_2.v.pubkey), keypair.pubkey); }BeforeRet_: ;
}
#line 872 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, ephemeral__tKoYnchqWVV015hG9azV5rw)(NimStringDesc* scheme, br_hmac_drbg_context* rng_0, tyObject_Result__iS17NtK7ldheyAdSzroSMA* Result) {
#line 874 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 878 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 878 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(scheme, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_40))) goto LA3_;
#line 879 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 879 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
ephemeral__VlmLCHAWYOJGIjwKOlTpvQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 23), rng_0, Result);
}
goto LA1_;
LA3_: ;
{
#line 880 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(scheme, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_45))) goto LA6_;
#line 881 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 881 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
ephemeral__VlmLCHAWYOJGIjwKOlTpvQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 24), rng_0, Result);
}
goto LA1_;
LA6_: ;
{
#line 882 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(scheme, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_46))) goto LA9_;
#line 883 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 883 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
ephemeral__VlmLCHAWYOJGIjwKOlTpvQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 25), rng_0, Result);
}
goto LA1_;
LA9_: ;
{
#line 885 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 885 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
ephemeral__VlmLCHAWYOJGIjwKOlTpvQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 25), rng_0, Result);
}
LA1_: ;
}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__hcee8oWfLT9aUNY331X8PLQresults)(tyObject_Result__vm9bv0BbPQozNnmqQASeyww self, tyProc__kKn0QCjhpXK864DViBgFRw f, tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } unsureAsgnRef((void**) (&(*Result)._o_2.v), self._o_2.v); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_47)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___bFwX9ai9czYU3Y8KWQJKFdeQ)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym69675093_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 709 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 1); return result;}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___gOc5Wuz1faOJTrT7BQLZtw)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym69710204_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 710 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 1); return result;}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__9cwDo60l2rPtKHGSmYvM9cIAresults)(tyObject_Result__Wf60IuU9b2deDkGInMnfWDg self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } unsureAsgnRef((void**) (&(*Result)._o_2.v), self._o_2.v); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_50)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___ojfTouHt5efyucv1L4i9awQ)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69805033_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 1); return result;}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___EWCpaXN7kFZEEmCvo2kSlA)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym69840204_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 724 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 1); return result;}
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
static N_INLINE(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__t8atNm5VYwVSAfc2InWNOQsecp)(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg* sig) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; NI length; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
result = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) 72));
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
length = toBytes__1NK8vJrh39b6JoXQBBDT8uQ(sig, result->data, (result ? result->Sup.len : 0));
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/secp.nim"
if ((length) < ((NI) 0) || (length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&(result)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) (length))); return result;}
#line 701 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, sign__aZO9bv2QzDrkoNSd9c7rh3Bg)(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* key_0, NU8* data_0, NI data_0Len_0, tyObject_Result__ZGY78kIl5s9a88zIUpvwquA* Result) { tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q res;{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0;
#line 703 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&res), sizeof(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q));
#line 706 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch ((*key_0).scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{ tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* sig; tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA vX60gensym69700034_; tyObject_Result__vm9bv0BbPQozNnmqQASeyww T2_; tyProc__kKn0QCjhpXK864DViBgFRw T3_; tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ vX60gensym69715059_; tyObject_Result__SyOVenwKrVcTdMbQDaxDXw T8_; tyProc__kKn0QCjhpXK864DViBgFRw T9_;
#line 709 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym69700034_), sizeof(tyObject_Result__ZmhshJT2xf09aiVHYHFFLpA));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 709 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((1 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_19)); }
#line 709 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T2_), sizeof(tyObject_Result__vm9bv0BbPQozNnmqQASeyww)); sign__4k6nHv7zWsk9coW9akFBqkYw((*key_0)._scheme_1.rsakey, data_0, data_0Len_0, (&T2_));
nimZeroMem((void*)(&T3_), sizeof(tyProc__kKn0QCjhpXK864DViBgFRw)); T3_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_48) (colonanonymous___bFwX9ai9czYU3Y8KWQJKFdeQ)); T3_.ClE_0 = NIM_NIL;
#line 709 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__hcee8oWfLT9aUNY331X8PLQresults(T2_, T3_, (&vX60gensym69700034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym69700034_.o)) goto LA6_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym69700034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym69700034_._o_1.e; goto BeforeRet_;
}
LA6_: ;
if (!(((2 &(1U<<((NU)(vX60gensym69700034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } sig = vX60gensym69700034_._o_2.v;
#line 710 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym69715059_), sizeof(tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 710 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 710 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T8_), sizeof(tyObject_Result__SyOVenwKrVcTdMbQDaxDXw)); getBytes__A5V7F9bb7wp1dEuIaTAjvLw(sig, (&T8_));
nimZeroMem((void*)(&T9_), sizeof(tyProc__kKn0QCjhpXK864DViBgFRw)); T9_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_49) (colonanonymous___gOc5Wuz1faOJTrT7BQLZtw)); T9_.ClE_0 = NIM_NIL;
#line 710 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__zcq3hamysjIzyTCudgpGzAresults(T8_, T9_, (&vX60gensym69715059_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym69715059_.o)) goto LA12_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym69715059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym69715059_._o_1.e; goto BeforeRet_;
}
LA12_: ;
if (!(((2 &(1U<<((NU)(vX60gensym69715059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&res.data), vX60gensym69715059_._o_2.v, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericSeqAssign((&(*Result)._o_2.v.data), res.data, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{ tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg sig_2;
#line 716 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((2 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_20)); }
#line 716 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
sig_2 = sign__iBnnfgUrHHvjhAm9bAL0FcA((&(*key_0)._scheme_2.edkey), data_0, data_0Len_0);
#line 717 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 717 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
res.data = getBytes__2pKl6o1m8Xe2JD9blcK3fIg((&sig_2)); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericSeqAssign((&(*Result)._o_2.v.data), res.data, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{ tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* sig_3; tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow vX60gensym69830034_; tyObject_Result__Wf60IuU9b2deDkGInMnfWDg T16_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T17_; tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ vX60gensym69845059_; tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA T22_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T23_;
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym69830034_), sizeof(tyObject_Result__P4jNT9alZbEps7uAFxUB2Ow));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((8 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_22)); }
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T16_), sizeof(tyObject_Result__Wf60IuU9b2deDkGInMnfWDg)); sign__TXG5E7oieiOricLieQhPSw((*key_0)._scheme_4.eckey, data_0, data_0Len_0, (&T16_));
nimZeroMem((void*)(&T17_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T17_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_51) (colonanonymous___ojfTouHt5efyucv1L4i9awQ)); T17_.ClE_0 = NIM_NIL;
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__9cwDo60l2rPtKHGSmYvM9cIAresults(T16_, T17_, (&vX60gensym69830034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym69830034_.o)) goto LA20_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym69830034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym69830034_._o_1.e; goto BeforeRet_;
}
LA20_: ;
if (!(((2 &(1U<<((NU)(vX60gensym69830034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } sig_3 = vX60gensym69830034_._o_2.v;
#line 724 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym69845059_), sizeof(tyObject_Result__wI9bduJs1m4ktObREEZ9adiQ));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 724 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 724 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T22_), sizeof(tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA)); getBytes__N1HyE1kJiiveR7UXV0wuIg(sig_3, (&T22_));
nimZeroMem((void*)(&T23_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T23_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_52) (colonanonymous___EWCpaXN7kFZEEmCvo2kSlA)); T23_.ClE_0 = NIM_NIL;
#line 724 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__wr43OoOBavEdVpXEjadAXgresults(T22_, T23_, (&vX60gensym69845059_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym69845059_.o)) goto LA26_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym69845059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym69845059_._o_1.e; goto BeforeRet_;
}
LA26_: ;
if (!(((2 &(1U<<((NU)(vX60gensym69845059_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } genericSeqAssign((&res.data), vX60gensym69845059_._o_2.v, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericSeqAssign((&(*Result)._o_2.v.data), res.data, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{ tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg sig_4;
#line 730 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((4 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_24)); }
#line 730 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
sig_4 = sign__Jt5e1e9csSJNU0jboRIzhNA((&(*key_0)._scheme_3.skkey), data_0, data_0Len_0);
#line 731 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 731 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
res.data = getBytes__t8atNm5VYwVSAfc2InWNOQsecp((&sig_4)); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v.data, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericSeqAssign((&(*Result)._o_2.v.data), res.data, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); }
break;
}
}BeforeRet_: ;
}
#line 966 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, createExchange__VxdTLrjHiFkVOD6si9cLIPA)(NU8* epubkey, NI epubkeyLen_0, NU8* signature, NI signatureLen_0) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA msg; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 967 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&msg), sizeof(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA));
#line 969 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 969 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
initProtoBuffer__WvyuU9b9b5JbJrzKXmuwx4ng(2, (&msg));
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__4tkJJWHqmkKO9cj2FvJ9cDoQ((&msg), ((NI) 1), epubkey, epubkeyLen_0);
#line 971 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 971 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
write__4tkJJWHqmkKO9cj2FvJ9cDoQ((&msg), ((NI) 2), signature, signatureLen_0);
#line 972 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 972 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
finish__1rmuOyUuHHnrDPgEOlTQaw((&msg));
genericSeqAssign((&result), msg.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); return result;}
#line 440 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__c1mSmfwMuNxjcxH6tqzdLg)(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q sig) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
genericSeqAssign((&result), sig.data, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); return result;}
#line 975 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, decodeExchange__nEMKoCBcPx3SQzcIx4u1nw)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* message, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** pubkey, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ** signature) { NIM_BOOL result; tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA pb; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r1; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ r2; NIM_BOOL T1_; NIM_BOOL T2_; NIM_BOOL T3_; result = (NIM_BOOL)0;
#line 977 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&pb), sizeof(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA));
#line 981 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 981 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
initProtoBuffer__fbykHZzk6a9bvfYMmTBqn3Q(message, ((NI) 0), 0, (&pb));
#line 982 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 982 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r1 = getField__TmmAJk0OXMd3CniSvMNDvQ((&pb), ((NI) 1), pubkey);
#line 983 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 983 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
r2 = getField__TmmAJk0OXMd3CniSvMNDvQ((&pb), ((NI) 2), signature);
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T1_ = (NIM_BOOL)0;
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T2_ = (NIM_BOOL)0;
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T3_ = (NIM_BOOL)0; T3_ = r1.o; if (!(T3_)) goto LA4_;
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T3_ = get__s81otJuqBWqYQyderjqGnwresults(r1); LA4_: ;
T2_ = T3_; if (!(T2_)) goto LA5_;
T2_ = r2.o; LA5_: ;
T1_ = T2_; if (!(T1_)) goto LA6_;
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T1_ = get__s81otJuqBWqYQyderjqGnwresults(r2); LA6_: ;
result = T1_; return result;}
#line 506 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, init__6Cs9aoQUoUHTjlNfrez9bVnw)(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q* sig, NU8* data_0, NI data_0Len_0) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((NI) 0) < data_0Len_0)) goto LA3_;
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
unsureAsgnRef((void**) (&(*sig).data), at___FKhCG9aXnVoTuyjERVXzd2g(data_0, data_0Len_0));
#line 512 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = NIM_TRUE; }
LA3_: ;
return result;}
#line 773 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
static N_INLINE(NIM_BOOL, verify__7tLWQjT2L7K3z30inFSYCgrsa)(tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* sig, NU8* message, NI messageLen_0, tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* pubkey) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
{ NIM_BOOL T3_;
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
T3_ = (NIM_BOOL)0;
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
T3_ = !((sig == 0)); if (!(T3_)) goto LA4_;
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
T3_ = !((pubkey == 0)); LA4_: ;
if (!!(T3_)) goto LA5_;
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 780 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_53));
}
LA5_: ;
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
{ NI T9_; br_hash_compat_context hc; tyArray__vEOa9c5qaE9ajWxR5R4zwfQg hash_1; tyArray__vEOa9c5qaE9ajWxR5R4zwfQg check; tyProc__MTudHD1eHvpluWGLmHxDCA impl_1; br_hash_class* kv; tyArray__aczTGVLbkjaI8GxGYP6HtA oid_1; NU32 res; NI T17_;
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
T9_ = ((*sig).buffer ? (*sig).buffer->Sup.len : 0); if (!(((NI) 0) < T9_)) goto LA10_;
nimZeroMem((void*)(&hc), sizeof(br_hash_compat_context)); nimZeroMem((void*)hash_1, sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg)); nimZeroMem((void*)check, sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg));
#line 785 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 785 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
impl_1 = br_rsa_pkcs1_vrfy_get_default();
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
kv = (&br_sha256_vtable);
#line 787 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 787 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
(*kv).init(&hc.vtable);
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
{
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
if (!(((NI) 0) < messageLen_0)) goto LA14_;
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
if ((NU)(((NI) 0)) >= (NU)(messageLen_0)){ raiseIndexError2(((NI) 0),messageLen_0-1); }
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
(*kv).update(&hc.vtable, ((void*) ((&message[((NI) 0)]))), messageLen_0);
}
goto LA12_;
LA14_: ;
{
#line 791 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 791 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
(*kv).update(&hc.vtable, NIM_NIL, ((NI) 0));
}
LA12_: ;
#line 792 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 792 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
(*kv).out(&hc.vtable, ((void*) ((&hash_1[(((NI) 0))- 0]))));
nimZeroMem((void*)oid_1, sizeof(tyArray__aczTGVLbkjaI8GxGYP6HtA));
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
nimCopyMem((void*)oid_1, (NIM_CONST void*)RsaOidSha256__VqXLeDO8slrNfg9a8360VIA, sizeof(tyArray__aczTGVLbkjaI8GxGYP6HtA));
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
if ((NU)(((NI) 0)) >= (NU)((*sig).buffer ? (*sig).buffer->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*sig).buffer ? (*sig).buffer->Sup.len : 0)-1); }
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
T17_ = ((*sig).buffer ? (*sig).buffer->Sup.len : 0);
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
res = impl_1(((unsigned char*) ((&(*sig).buffer->data[((NI) 0)]))), T17_, ((unsigned char*) ((&oid_1[(((NI) 0))- 0]))), ((NI) 32), (&(*pubkey).key), ((unsigned char*) ((&check[(((NI) 0))- 0]))));
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
{
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
if (!(res == ((NU32) 1))) goto LA20_;
#line 798 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
#line 798 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/rsa.nim"
result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&check[(((NI) 0))- 0]))), ((void*) ((&hash_1[(((NI) 0))- 0]))), ((NI) 32)); }
LA20_: ;
}
LA10_: ;
return result;}
#line 963 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
static N_INLINE(NIM_BOOL, verify__VR6GolRYhl9bZNOBUzoTmHAecnist)(tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* sig, NU8* message, NI messageLen_0, tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* pubkey) { NIM_BOOL result; br_hash_compat_context hc; tyArray__vEOa9c5qaE9ajWxR5R4zwfQg hash_1; br_ec_impl* impl_1; result = (NIM_BOOL)0;
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
{ NIM_BOOL T3_;
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
T3_ = (NIM_BOOL)0;
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
T3_ = !((sig == 0)); if (!(T3_)) goto LA4_;
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
T3_ = !((pubkey == 0)); LA4_: ;
if (!!(T3_)) goto LA5_;
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 970 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_54));
}
LA5_: ;
nimZeroMem((void*)(&hc), sizeof(br_hash_compat_context)); nimZeroMem((void*)hash_1, sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg));
#line 973 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 973 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
impl_1 = br_ec_get_default();
#line 974 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
{ br_hash_class* kv; NU32 res; NI T16_;
#line 974 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
if (((*pubkey).key.curve) < ((NI) 0) || ((*pubkey).key.curve) > ((NI) 65535)){ raiseRangeErrorI((*pubkey).key.curve, ((NI) 0), ((NI) 65535)); } if (!((EcSupportedCurvesCint__ETyWsKcb5WNIIYTvgxxraA[(NU)(((NI) ((*pubkey).key.curve)))>>3] &(1U<<((NU)(((NI) ((*pubkey).key.curve)))&7U)))!=0)) goto LA9_;
#line 975 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
kv = (&br_sha256_vtable);
#line 976 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 976 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
(*kv).init(&hc.vtable);
#line 977 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
{
#line 977 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 977 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
if (!(((NI) 0) < messageLen_0)) goto LA13_;
#line 978 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
if ((NU)(((NI) 0)) >= (NU)(messageLen_0)){ raiseIndexError2(((NI) 0),messageLen_0-1); }
#line 978 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 978 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
(*kv).update(&hc.vtable, ((void*) ((&message[((NI) 0)]))), messageLen_0);
}
goto LA11_;
LA13_: ;
{
#line 980 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 980 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
(*kv).update(&hc.vtable, NIM_NIL, ((NI) 0));
}
LA11_: ;
#line 981 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 981 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
(*kv).out(&hc.vtable, ((void*) ((&hash_1[(((NI) 0))- 0]))));
#line 982 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
if ((NU)(((NI) 0)) >= (NU)((*sig).buffer ? (*sig).buffer->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*sig).buffer ? (*sig).buffer->Sup.len : 0)-1); }
#line 984 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
T16_ = ((*sig).buffer ? (*sig).buffer->Sup.len : 0);
#line 982 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
res = br_ecdsa_i31_vrfy_asn1(impl_1, ((void*) ((&hash_1[(((NI) 0))- 0]))), ((NI) 32), (&(*pubkey).key), ((void*) ((&(*sig).buffer->data[((NI) 0)]))), T16_);
#line 986 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 986 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
(*kv).init(&hc.vtable);
#line 987 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
#line 987 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ecnist.nim"
result = (res == ((NU32) 1)); }
LA9_: ;
return result;}
#line 736 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, verify__TsBOm3TqPuBNRfSnGdwfiw)(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q sig, NU8* message, NI messageLen_0, tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 737 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 739 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch ((*key_0).scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{ tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew* signature; signature = (tyObject_RsaSignaturecolonObjectType___3Idc9bd8py1jdOHc5gQqlew*)0;
#line 743 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg T4_;
#line 743 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 743 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T4_ = init__LnEotsoeFzalPDV9bXoz7UA(&signature, sig.data->data, (sig.data ? sig.data->Sup.len : 0)); if (!T4_.o) goto LA5_;
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((1 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_11)); }
#line 744 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = verify__7tLWQjT2L7K3z30inFSYCgrsa(signature, message, messageLen_0, (*key_0)._scheme_1.rsakey); }
goto LA2_;
LA5_: ;
{ result = NIM_FALSE; }
LA2_: ;
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{ tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg signature_2; nimZeroMem((void*)(&signature_2), sizeof(tyObject_EdSignature__RTPyBnSGy9accNS22ZwVjxg));
#line 752 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NIM_BOOL T11_;
#line 752 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 752 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T11_ = (NIM_BOOL)0; T11_ = init__Cx2WiLXW1J9c1w9cYaBKf9aYw((&signature_2), sig.data->data, (sig.data ? sig.data->Sup.len : 0)); if (!T11_) goto LA12_;
#line 753 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((2 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_13)); }
#line 753 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = verify__Wz7RmGaWX2V2M0HbKDHm9bA((&signature_2), message, messageLen_0, (&(*key_0)._scheme_2.edkey)); }
goto LA9_;
LA12_: ;
{ result = NIM_FALSE; }
LA9_: ;
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{ tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ* signature_3; signature_3 = (tyObject_EcSignaturecolonObjectType___MVVOg89cY9cYypBpNfm27WSQ*)0;
#line 761 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__cx3gWYymz9cZkL0oOUI2lQg T18_;
#line 761 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 761 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T18_ = init__eLagp5Mgogj8PMx6p8nlXw(&signature_3, sig.data->data, (sig.data ? sig.data->Sup.len : 0)); if (!T18_.o) goto LA19_;
#line 762 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((8 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_15)); }
#line 762 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = verify__VR6GolRYhl9bZNOBUzoTmHAecnist(signature_3, message, messageLen_0, (*key_0)._scheme_4.eckey); }
goto LA16_;
LA19_: ;
{ result = NIM_FALSE; }
LA16_: ;
}
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{ tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg signature_4; nimZeroMem((void*)(&signature_4), sizeof(tyObject_SkSignature__zIGR7WXU5PgL069bIs2HRIg));
#line 770 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_Result__mS1jHg9aTFgIUZQD9a9c2BMFA T25_;
#line 770 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 770 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T25_ = init__IJ5bHaao1Z0BXchwyWOQvw((&signature_4), sig.data->data, (sig.data ? sig.data->Sup.len : 0)); if (!T25_.o) goto LA26_;
#line 771 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((4 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_17)); }
#line 771 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = verify__XezXbAB6sAtFe9av5pTAYrg((&signature_4), message, messageLen_0, (&(*key_0)._scheme_3.skkey)); }
goto LA23_;
LA26_: ;
{ result = NIM_FALSE; }
LA23_: ;
}
break;
}
return result;}
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
static N_INLINE(NimStringDesc*, toHex__TfeJ361pglyJR5Hz15wCJQutils)(NU8* a, NI aLen_0, NIM_BOOL lowercase) { NimStringDesc* result; NimStringDesc* res; result = (NimStringDesc*)0;
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (((NI)((NU64)(aLen_0) << (NU64)(((NI) 1)))) < ((NI) 0) || ((NI)((NU64)(aLen_0) << (NU64)(((NI) 1)))) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)((NU64)(aLen_0) << (NU64)(((NI) 1))), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
res = mnewString(((NI) ((NI)((NU64)(aLen_0) << (NU64)(((NI) 1))))));
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NI T5_; if (!lowercase) goto LA3_;
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T5_ = (NI)0; T5_ = bytesToHex__TSuuVF9b8JuBk8cjfFOyavA(a, aLen_0, res->data, (res ? res->Sup.len : 0), 1); (void)(T5_);
}
goto LA1_;
LA3_: ;
{ NI T7_;
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T7_ = (NI)0; T7_ = bytesToHex__TSuuVF9b8JuBk8cjfFOyavA(a, aLen_0, res->data, (res ? res->Sup.len : 0), 0); (void)(T7_);
}
LA1_: ;
result = copyString(res); return result;}
#line 697 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___m1SQxUgX7wCPGDEQbGyNUg)(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q sig) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = toHex__TfeJ361pglyJR5Hz15wCJQutils(sig.data->data, (sig.data ? sig.data->Sup.len : 0), NIM_FALSE); return result;}
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).Sup.len += (*src).Sup.len; }
LA3_: ;
}
#line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___9bwC9ckFxGbRuRIhv18L2Mvg)(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* key_0) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 650 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 651 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch ((*key_0).scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{
#line 654 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((1 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_11)); }
#line 654 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = dollar___xOuBvsnLXQ9bkjxzJzLbVOg((*key_0)._scheme_1.rsakey); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{ NimStringDesc* T3_; NimStringDesc* T4_;
#line 659 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T3_ = (NimStringDesc*)0;
#line 659 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((2 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_13)); }
#line 659 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T4_ = (NimStringDesc*)0; T4_ = dollar___ow3jZvdi9bWgj0hBh6lNeOw((&(*key_0)._scheme_2.edkey)); T3_ = rawNewString((T4_ ? T4_->Sup.len : 0) + 14);appendString(T3_, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_55));appendString(T3_, T4_);appendString(T3_, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_56)); result = T3_; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{ NimStringDesc* T6_; NimStringDesc* T7_;
#line 664 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T6_ = (NimStringDesc*)0;
#line 664 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((8 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_15)); }
#line 664 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T7_ = (NimStringDesc*)0; T7_ = dollar___5jm8WKXafk9ct9b0HSMcmfDw((*key_0)._scheme_4.eckey); T6_ = rawNewString((T7_ ? T7_->Sup.len : 0) + 16);appendString(T6_, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_57));appendString(T6_, T7_);appendString(T6_, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_56)); result = T6_; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{ NimStringDesc* T9_; NimStringDesc* T10_;
#line 669 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T9_ = (NimStringDesc*)0;
#line 669 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(((4 &(1U<<((NU)((*key_0).scheme)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_17)); }
#line 669 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T10_ = (NimStringDesc*)0; T10_ = dollar___UZLv9bWh4FQL2sXrO2H5GEA((&(*key_0)._scheme_3.skkey)); T9_ = rawNewString((T10_ ? T10_->Sup.len : 0) + 16);appendString(T9_, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_58));appendString(T9_, T10_);appendString(T9_, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_56)); result = T9_; }
break;
}
return result;}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
static N_INLINE(void, update__ac5kVNZW9auoLXYeatlPm9cgsha2)(tyObject_Sha2Context__5brAquljQjPUyNuIC4vV1w* ctx, NIM_CHAR* data_0, NI data_0Len_0) { NI pos; NI length;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
pos = ((NI) 0);
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
length = data_0Len_0; {
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
while (1) { NI offset; NI size; NI TM__wBH5hWbN4O4UxUgzOozgCA_69; NI TM__wBH5hWbN4O4UxUgzOozgCA_70; NI TM__wBH5hWbN4O4UxUgzOozgCA_71; NI TM__wBH5hWbN4O4UxUgzOozgCA_72;
#line 464 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!(((NI) 0) < length)) goto LA2;
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
offset = ((NI) ((NU32)((*ctx).count[(((NI) 0))- 0] & ((NU32) 63))));
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(((NI) 64), offset, &TM__wBH5hWbN4O4UxUgzOozgCA_69)) { raiseOverflow(); }; size = (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_69) <= length) ? (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_69) : length);
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(offset) > (NU)(63)){ raiseIndexError2(offset, 63); } if ((NU)(pos) >= (NU)(data_0Len_0)){ raiseIndexError2(pos,data_0Len_0-1); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimMulInt(size, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_70)) { raiseOverflow(); }; if (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_70)) < ((NI) 0) || ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_70)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_70), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*ctx).buffer[(offset)- 0]))), ((void*) ((&data_0[pos]))), ((NI) ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_70))));
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 468 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimAddInt(pos, size, &TM__wBH5hWbN4O4UxUgzOozgCA_71)) { raiseOverflow(); }; pos = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_71);
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(length, size, &TM__wBH5hWbN4O4UxUgzOozgCA_72)) { raiseOverflow(); }; length = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_72);
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 0))- 0] = (NU32)((NU32)((*ctx).count[(((NI) 0))- 0]) + (NU32)(((NU32) (size))));
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU32)((*ctx).count[(((NI) 0))- 0]) < (NU32)(((NU32) (size))))) goto LA5_;
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 472 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 1))- 0] = (NU32)((NU32)((*ctx).count[(((NI) 1))- 0]) + (NU32)(((NU32) 1))); }
LA5_: ;
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU32)((*ctx).count[(((NI) 0))- 0] & ((NU32) 63)) == ((NU32) 0))) goto LA9_;
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
sha256Transform__BJNBQtWr9bJwzqbyfKXd38Q((*ctx).state, (*ctx).buffer, 64);
}
LA9_: ;
} LA2: ;
}
}
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
static N_INLINE(void, update__JlxQJoHy4ZmcjsPUc3vq1ghmac)(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg* hmctx, NIM_CHAR* data_0, NI data_0Len_0) {
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
update__ac5kVNZW9auoLXYeatlPm9cgsha2((&(*hmctx).mdctx), data_0, data_0Len_0);
}
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
static N_INLINE(void, update__JDQKL6F3d4BVGKvrNMc9bmghmac)(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg* hmctx, NU8* data_0, NI data_0Len_0) {
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
update__JVKV5lsc6z00iHHbNwyg9bAsha2((&(*hmctx).mdctx), data_0, data_0Len_0);
}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
static N_INLINE(void, update__QORhLA8TYIPFuQZY4hwZowsha2)(tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg* ctx, NIM_CHAR* data_0, NI data_0Len_0) { NI pos; NI length;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
pos = ((NI) 0);
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
length = data_0Len_0; {
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
while (1) { NI offset; NI size; NI TM__wBH5hWbN4O4UxUgzOozgCA_79; NI TM__wBH5hWbN4O4UxUgzOozgCA_80; NI TM__wBH5hWbN4O4UxUgzOozgCA_81; NI TM__wBH5hWbN4O4UxUgzOozgCA_82;
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!(((NI) 0) < length)) goto LA2;
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if ((NI64)((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL)) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL), ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } offset = ((NI) ((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL)));
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(((NI) 128), offset, &TM__wBH5hWbN4O4UxUgzOozgCA_79)) { raiseOverflow(); }; size = (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_79) <= length) ? (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_79) : length);
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(offset) > (NU)(127)){ raiseIndexError2(offset, 127); } if ((NU)(pos) >= (NU)(data_0Len_0)){ raiseIndexError2(pos,data_0Len_0-1); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimMulInt(size, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_80)) { raiseOverflow(); }; if (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_80)) < ((NI) 0) || ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_80)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_80), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*ctx).buffer[(offset)- 0]))), ((void*) ((&data_0[pos]))), ((NI) ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_80))));
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimAddInt(pos, size, &TM__wBH5hWbN4O4UxUgzOozgCA_81)) { raiseOverflow(); }; pos = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_81);
#line 481 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 481 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(length, size, &TM__wBH5hWbN4O4UxUgzOozgCA_82)) { raiseOverflow(); }; length = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_82);
#line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 0))- 0] = (NU64)((NU64)((*ctx).count[(((NI) 0))- 0]) + (NU64)(((NU64) (size))));
#line 483 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 483 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU64)((*ctx).count[(((NI) 0))- 0]) < (NU64)(((NU64) (size))))) goto LA5_;
#line 484 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 484 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 1))- 0] = (NU64)((NU64)((*ctx).count[(((NI) 1))- 0]) + (NU64)(1ULL)); }
LA5_: ;
#line 485 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 485 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 485 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL) == 0ULL)) goto LA9_;
#line 486 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 486 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
sha512Transform__d4P1X7sPV8KvC9aZQp9b36cw((*ctx).state, (*ctx).buffer, 128);
}
LA9_: ;
} LA2: ;
}
}
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
static N_INLINE(void, update__OQvFXqS0Zr8oG23st9aanUghmac)(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA* hmctx, NIM_CHAR* data_0, NI data_0Len_0) {
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
update__QORhLA8TYIPFuQZY4hwZowsha2((&(*hmctx).mdctx), data_0, data_0Len_0);
}
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
static N_INLINE(void, update__89bzCSJW3tR9bSg6RN2NtA4Qsha2)(tyObject_Sha2Context__qb3VnmKVDutwz9aD1ApjZKg* ctx, NU8* data_0, NI data_0Len_0) { NI pos; NI length;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
pos = ((NI) 0);
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
length = data_0Len_0; {
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
while (1) { NI offset; NI size; NI TM__wBH5hWbN4O4UxUgzOozgCA_83; NI TM__wBH5hWbN4O4UxUgzOozgCA_84; NI TM__wBH5hWbN4O4UxUgzOozgCA_85; NI TM__wBH5hWbN4O4UxUgzOozgCA_86;
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!(((NI) 0) < length)) goto LA2;
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if ((NI64)((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL)) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL), ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } offset = ((NI) ((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL)));
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(((NI) 128), offset, &TM__wBH5hWbN4O4UxUgzOozgCA_83)) { raiseOverflow(); }; size = (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_83) <= length) ? (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_83) : length);
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(offset) > (NU)(127)){ raiseIndexError2(offset, 127); } if ((NU)(pos) >= (NU)(data_0Len_0)){ raiseIndexError2(pos,data_0Len_0-1); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimMulInt(size, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_84)) { raiseOverflow(); }; if (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_84)) < ((NI) 0) || ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_84)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_84), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*ctx).buffer[(offset)- 0]))), ((void*) ((&data_0[pos]))), ((NI) ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_84))));
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 480 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimAddInt(pos, size, &TM__wBH5hWbN4O4UxUgzOozgCA_85)) { raiseOverflow(); }; pos = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_85);
#line 481 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 481 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (nimSubInt(length, size, &TM__wBH5hWbN4O4UxUgzOozgCA_86)) { raiseOverflow(); }; length = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_86);
#line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 0))- 0] = (NU64)((NU64)((*ctx).count[(((NI) 0))- 0]) + (NU64)(((NU64) (size))));
#line 483 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 483 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU64)((*ctx).count[(((NI) 0))- 0]) < (NU64)(((NU64) (size))))) goto LA5_;
#line 484 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 484 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
(*ctx).count[(((NI) 1))- 0] = (NU64)((NU64)((*ctx).count[(((NI) 1))- 0]) + (NU64)(1ULL)); }
LA5_: ;
#line 485 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
{
#line 485 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 485 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
if (!((NU64)((*ctx).count[(((NI) 0))- 0] & 127ULL) == 0ULL)) goto LA9_;
#line 486 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
#line 486 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/sha2.nim"
sha512Transform__d4P1X7sPV8KvC9aZQp9b36cw((*ctx).state, (*ctx).buffer, 128);
}
LA9_: ;
} LA2: ;
}
}
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
static N_INLINE(void, update__P8Hx9cwSAuFGMTp7c7Ov5Qghmac)(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA* hmctx, NU8* data_0, NI data_0Len_0) {
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/hmac.nim"
update__89bzCSJW3tR9bSg6RN2NtA4Qsha2((&(*hmctx).mdctx), data_0, data_0Len_0);
}
#line 803 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, stretchKeys__dqSmfXwobN7z6f6k9bnshGw)(NimStringDesc* cipherType, NimStringDesc* hashType, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* sharedSecret, tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA* Result) { NimStringDesc* seed; NI length; NI TM__wBH5hWbN4O4UxUgzOozgCA_63; NI TM__wBH5hWbN4O4UxUgzOozgCA_64; NI TM__wBH5hWbN4O4UxUgzOozgCA_65; chckNil((void*)Result); (*Result).ivsize = 0; (*Result).keysize = 0; (*Result).macsize = 0; unsureAsgnRef((void**)&(*Result).data, NIM_NIL);
#line 806 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 806 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(cipherType, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_59))) goto LA3_;
#line 807 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).ivsize = ((NI) 16);
#line 808 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).keysize = ((NI) 16); }
goto LA1_;
LA3_: ;
{
#line 809 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(cipherType, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_60))) goto LA6_;
#line 810 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).ivsize = ((NI) 16);
#line 811 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).keysize = ((NI) 32); }
goto LA1_;
LA6_: ;
{
#line 812 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(cipherType, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_61))) goto LA9_;
#line 813 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).ivsize = ((NI) 16);
#line 814 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).keysize = ((NI) 32); }
goto LA1_;
LA9_: ;
LA1_: ;
#line 816 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
seed = copyString(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_62));
#line 817 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
(*Result).macsize = ((NI) 20);
#line 818 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 818 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 818 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt((*Result).ivsize, (*Result).keysize, &TM__wBH5hWbN4O4UxUgzOozgCA_63)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_63), (*Result).macsize, &TM__wBH5hWbN4O4UxUgzOozgCA_64)) { raiseOverflow(); }; length = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_64);
#line 819 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 819 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimMulInt(((NI) 2), length, &TM__wBH5hWbN4O4UxUgzOozgCA_65)) { raiseOverflow(); }; if (((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_65)) < ((NI) 0) || ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_65)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_65), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 819 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
unsureAsgnRef((void**) (&(*Result).data), newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) ((NI)(TM__wBH5hWbN4O4UxUgzOozgCA_65)))));
#line 821 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg ctx; NI j; NI offset; NI T23_; tyObject_MDigest__law9ct65KplMYBvtmjCQxbw a;
#line 821 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(hashType, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_66))) goto LA13_;
nimZeroMem((void*)(&ctx), sizeof(tyObject_HMAC__CxVfcs3qQxev4nVq3Txjyg));
#line 779 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
j = ((NI) 0);
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
offset = ((NI) 0); { NI i; NI colontmp_; NI T16_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T16_ = (sharedSecret ? sharedSecret->Sup.len : 0); colontmp_ = T16_;
#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) { NI TM__wBH5hWbN4O4UxUgzOozgCA_67; NI TM__wBH5hWbN4O4UxUgzOozgCA_68;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < colontmp_)) goto LA18;
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
i = i_2;
#line 783 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 783 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 783 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(i) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0)){ raiseIndexError2(i,(sharedSecret ? sharedSecret->Sup.len : 0)-1); } if (!!((sharedSecret->data[i] == ((NU8) 0)))) goto LA21_;
#line 784 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
goto LA15;
}
LA21_: ;
#line 785 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt(offset, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_67)) { raiseOverflow(); }; offset = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_67);
#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__wBH5hWbN4O4UxUgzOozgCA_68)) { raiseOverflow(); }; i_2 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_68); } LA18: ;
}
} LA15: ;
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T23_ = ((sharedSecret ? sharedSecret->Sup.len : 0)-1); if (T23_-offset != -1 && ((NU)(offset) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0) || (NU)(T23_) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0))){ raiseIndexError(); }
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__XO79cz0G5x9bYWx3NREUG23g((&ctx), (NU8*)sharedSecret->data+(offset), (T23_)-(offset)+1);
#line 787 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 787 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JlxQJoHy4ZmcjsPUc3vq1ghmac((&ctx), seed->data, (seed ? seed->Sup.len : 0));
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
a = finish__cp8Ckr7vep0RujvudVTNTg((&ctx)); {
#line 822 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
while (1) { NI T26_; NI T27_; tyObject_MDigest__law9ct65KplMYBvtmjCQxbw b; NI todo; NI TM__wBH5hWbN4O4UxUgzOozgCA_75; NI T34_;
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T26_ = ((*Result).data ? (*Result).data->Sup.len : 0); if (!(j < T26_)) goto LA25;
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T27_ = ((sharedSecret ? sharedSecret->Sup.len : 0)-1); if (T27_-offset != -1 && ((NU)(offset) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0) || (NU)(T27_) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0))){ raiseIndexError(); }
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__XO79cz0G5x9bYWx3NREUG23g((&ctx), (NU8*)sharedSecret->data+(offset), (T27_)-(offset)+1);
#line 791 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 791 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JDQKL6F3d4BVGKvrNMc9bmghmac((&ctx), a.data, 32);
#line 792 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 792 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JlxQJoHy4ZmcjsPUc3vq1ghmac((&ctx), seed->data, (seed ? seed->Sup.len : 0));
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
b = finish__cp8Ckr7vep0RujvudVTNTg((&ctx));
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
todo = ((NI) 32);
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NI T30_; NI TM__wBH5hWbN4O4UxUgzOozgCA_73; NI T33_; NI TM__wBH5hWbN4O4UxUgzOozgCA_74;
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T30_ = ((*Result).data ? (*Result).data->Sup.len : 0);
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt(j, todo, &TM__wBH5hWbN4O4UxUgzOozgCA_73)) { raiseOverflow(); }; if (!(T30_ < (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_73))) goto LA31_;
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T33_ = ((*Result).data ? (*Result).data->Sup.len : 0); if (nimSubInt(T33_, j, &TM__wBH5hWbN4O4UxUgzOozgCA_74)) { raiseOverflow(); }; todo = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_74); }
LA31_: ;
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(j) >= (NU)((*Result).data ? (*Result).data->Sup.len : 0)){ raiseIndexError2(j,((*Result).data ? (*Result).data->Sup.len : 0)-1); } if ((todo) < ((NI) 0) || (todo) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(todo, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*Result).data->data[j]))), ((void*) ((&b.data[(((NI) 0))- 0]))), ((NI) (todo)));
#line 798 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt(j, todo, &TM__wBH5hWbN4O4UxUgzOozgCA_75)) { raiseOverflow(); }; j = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_75);
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T34_ = ((sharedSecret ? sharedSecret->Sup.len : 0)-1); if (T34_-offset != -1 && ((NU)(offset) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0) || (NU)(T34_) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0))){ raiseIndexError(); }
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__XO79cz0G5x9bYWx3NREUG23g((&ctx), (NU8*)sharedSecret->data+(offset), (T34_)-(offset)+1);
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__JDQKL6F3d4BVGKvrNMc9bmghmac((&ctx), a.data, 32);
#line 801 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 801 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
a = finish__cp8Ckr7vep0RujvudVTNTg((&ctx)); } LA25: ;
}
}
goto LA11_;
LA13_: ;
{ tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA ctx_2; NI j_2; NI offset_2; NI T46_; tyObject_MDigest__izzRLOKFx5icZ5e3JAI6Yw a_2;
#line 823 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!eqStrings(hashType, ((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_76))) goto LA36_;
nimZeroMem((void*)(&ctx_2), sizeof(tyObject_HMAC__Jej2TBsaJwA9baQxZ5QM8SA));
#line 779 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
j_2 = ((NI) 0);
#line 781 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
offset_2 = ((NI) 0); { NI i_3; NI colontmp__2; NI T39_; NI i_4; i_3 = (NI)0; colontmp__2 = (NI)0;
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T39_ = (sharedSecret ? sharedSecret->Sup.len : 0); colontmp__2 = T39_;
#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__wBH5hWbN4O4UxUgzOozgCA_77; NI TM__wBH5hWbN4O4UxUgzOozgCA_78;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_4 < colontmp__2)) goto LA41;
#line 782 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
i_3 = i_4;
#line 783 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 783 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 783 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(i_3) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0)){ raiseIndexError2(i_3,(sharedSecret ? sharedSecret->Sup.len : 0)-1); } if (!!((sharedSecret->data[i_3] == ((NU8) 0)))) goto LA44_;
#line 784 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
goto LA38;
}
LA44_: ;
#line 785 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt(offset_2, ((NI) 1), &TM__wBH5hWbN4O4UxUgzOozgCA_77)) { raiseOverflow(); }; offset_2 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_77);
#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__wBH5hWbN4O4UxUgzOozgCA_78)) { raiseOverflow(); }; i_4 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_78); } LA41: ;
}
} LA38: ;
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T46_ = ((sharedSecret ? sharedSecret->Sup.len : 0)-1); if (T46_-offset_2 != -1 && ((NU)(offset_2) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0) || (NU)(T46_) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0))){ raiseIndexError(); }
#line 786 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__t9byvLEulypdqdOXTkNC4cA((&ctx_2), (NU8*)sharedSecret->data+(offset_2), (T46_)-(offset_2)+1);
#line 787 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 787 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__OQvFXqS0Zr8oG23st9aanUghmac((&ctx_2), seed->data, (seed ? seed->Sup.len : 0));
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 788 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
a_2 = finish__5MZWHB5jfxA9b4lVZnMyk7w((&ctx_2)); {
#line 824 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
while (1) { NI T49_; NI T50_; tyObject_MDigest__izzRLOKFx5icZ5e3JAI6Yw b_2; NI todo_2; NI TM__wBH5hWbN4O4UxUgzOozgCA_89; NI T57_;
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 789 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T49_ = ((*Result).data ? (*Result).data->Sup.len : 0); if (!(j_2 < T49_)) goto LA48;
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T50_ = ((sharedSecret ? sharedSecret->Sup.len : 0)-1); if (T50_-offset_2 != -1 && ((NU)(offset_2) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0) || (NU)(T50_) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0))){ raiseIndexError(); }
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__t9byvLEulypdqdOXTkNC4cA((&ctx_2), (NU8*)sharedSecret->data+(offset_2), (T50_)-(offset_2)+1);
#line 791 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 791 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__P8Hx9cwSAuFGMTp7c7Ov5Qghmac((&ctx_2), a_2.data, 64);
#line 792 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 792 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__OQvFXqS0Zr8oG23st9aanUghmac((&ctx_2), seed->data, (seed ? seed->Sup.len : 0));
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
b_2 = finish__5MZWHB5jfxA9b4lVZnMyk7w((&ctx_2));
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
todo_2 = ((NI) 64);
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NI T53_; NI TM__wBH5hWbN4O4UxUgzOozgCA_87; NI T56_; NI TM__wBH5hWbN4O4UxUgzOozgCA_88;
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T53_ = ((*Result).data ? (*Result).data->Sup.len : 0);
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt(j_2, todo_2, &TM__wBH5hWbN4O4UxUgzOozgCA_87)) { raiseOverflow(); }; if (!(T53_ < (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_87))) goto LA54_;
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T56_ = ((*Result).data ? (*Result).data->Sup.len : 0); if (nimSubInt(T56_, j_2, &TM__wBH5hWbN4O4UxUgzOozgCA_88)) { raiseOverflow(); }; todo_2 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_88); }
LA54_: ;
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if ((NU)(j_2) >= (NU)((*Result).data ? (*Result).data->Sup.len : 0)){ raiseIndexError2(j_2,((*Result).data ? (*Result).data->Sup.len : 0)-1); } if ((todo_2) < ((NI) 0) || (todo_2) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(todo_2, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*Result).data->data[j_2]))), ((void*) ((&b_2.data[(((NI) 0))- 0]))), ((NI) (todo_2)));
#line 798 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (nimAddInt(j_2, todo_2, &TM__wBH5hWbN4O4UxUgzOozgCA_89)) { raiseOverflow(); }; j_2 = (NI)(TM__wBH5hWbN4O4UxUgzOozgCA_89);
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T57_ = ((sharedSecret ? sharedSecret->Sup.len : 0)-1); if (T57_-offset_2 != -1 && ((NU)(offset_2) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0) || (NU)(T57_) >= (NU)(sharedSecret ? sharedSecret->Sup.len : 0))){ raiseIndexError(); }
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
init__t9byvLEulypdqdOXTkNC4cA((&ctx_2), (NU8*)sharedSecret->data+(offset_2), (T57_)-(offset_2)+1);
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
update__P8Hx9cwSAuFGMTp7c7Ov5Qghmac((&ctx_2), a_2.data, 64);
#line 801 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 801 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
a_2 = finish__5MZWHB5jfxA9b4lVZnMyk7w((&ctx_2)); } LA48: ;
}
}
goto LA11_;
LA36_: ;
LA11_: ;
}
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(br_hmac_drbg_context*, newRng__DvRI21sb230Bj3k9blSY5bQ)(void) { br_hmac_drbg_context* result; tyProc__8515EaYVeX8ph3fGJmTq3w seeder; br_hmac_drbg_context* rng_1; br_hmac_drbg_context* T5_;{ result = (br_hmac_drbg_context*)0;
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
seeder = br_prng_seeder_system(NIM_NIL);
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!(seeder == NIM_NIL)) goto LA3_;
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = NIM_NIL; goto BeforeRet_;
}
LA3_: ;
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T5_ = (br_hmac_drbg_context*)0; T5_ = (br_hmac_drbg_context*) newObj((&NTI__RuNvFuo5ptASsihINNteSw_), sizeof(br_hmac_drbg_context)); rng_1 = T5_;
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
br_hmac_drbg_init(rng_1, (&br_sha256_vtable), NIM_NIL, ((NI) 0));
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ int T8_;
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T8_ = (int)0; T8_ = seeder(&(*rng_1).vtable); if (!(T8_ == ((NI32) 0))) goto LA9_;
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = NIM_NIL; goto BeforeRet_;
}
LA9_: ;
result = rng_1; }BeforeRet_: ;
return result;}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__c8AiFYfbMgd29cbNkSe8t9cwresults)(tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q self, tyProc__kKn0QCjhpXK864DViBgFRw f, tyObject_Result__TWeunZr265YV9at4HdxXCTg* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } unsureAsgnRef((void**) (&(*Result)._o_2.v), self._o_2.v); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_90)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___CGQz2Tea9c86fSDE9a29a9a9aow)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym170075063_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 360 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, mapErr__w649bWMHIiXq54RHtXetwagresults)(tyObject_Result__oOsFQPbY2q7ayTTSab5TvA self, tyProc__Jjvoj1trXh7UZw5ZTn8fww f, tyObject_Result__u0fcthTTawEzl2AgeDsDpg* Result) { chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0;
#line 363 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ if (!self.o) goto LA3_;
#line 300 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; if (!(((2 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } unsureAsgnRef((void**) (&(*Result)._o_2.v), self._o_2.v); }
goto LA1_;
LA3_: ;
{
#line 319 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
unsureAsgnRef((void**)&(*Result)._o_2.v, NIM_NIL); break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE;
#line 364 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!(((1 &(1U<<((NU)(self.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_92)(f.ClP_0))(self._o_1.e); }
LA1_: ;
}
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, colonanonymous___5fs3SRoeeTcp2T2NcnZzqw)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym170150211_) { tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw result; result = (tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw)0;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
result = ((tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw) 0); return result;}
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, random__SEQucAPBYZobGr1IZ4fGOA)(tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme, br_hmac_drbg_context* rng_0, NI bits, tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg* Result) { NI T1_; NI T2_;{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T1_ = (NI)0; for (T1_ = 0; T1_ < 64; T1_++) { (*Result)._o_2.v._scheme_2.edkey.data[T1_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T2_ = (NI)0; for (T2_ = 0; T2_ < 32; T2_++) { (*Result)._o_2.v._scheme_3.skkey.data[T2_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0;
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 183 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
switch (scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
{ tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* rsakey; tyObject_Result__TWeunZr265YV9at4HdxXCTg vX60gensym170100034_; tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q T4_; tyProc__kKn0QCjhpXK864DViBgFRw T5_; NI T12_; NI T13_; NI T14_; NI T15_;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym170100034_), sizeof(tyObject_Result__TWeunZr265YV9at4HdxXCTg));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T4_), sizeof(tyObject_Result__sa8ZNrkupWIn7IGy2hoy7Q)); random__Vw7k5y0bn4JKQKAWFNxc9cg(rng_0, bits, ((NU32) 65537), (&T4_));
nimZeroMem((void*)(&T5_), sizeof(tyProc__kKn0QCjhpXK864DViBgFRw)); T5_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_91) (colonanonymous___CGQz2Tea9c86fSDE9a29a9a9aow)); T5_.ClE_0 = NIM_NIL;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__c8AiFYfbMgd29cbNkSe8t9cwresults(T4_, T5_, (&vX60gensym170100034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ NI T10_; NI T11_;
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym170100034_.o)) goto LA8_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T10_ = (NI)0; for (T10_ = 0; T10_ < 64; T10_++) { (*Result)._o_2.v._scheme_2.edkey.data[T10_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T11_ = (NI)0; for (T11_ = 0; T11_ < 32; T11_++) { (*Result)._o_2.v._scheme_3.skkey.data[T11_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym170100034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym170100034_._o_1.e; goto BeforeRet_;
}
LA8_: ;
if (!(((2 &(1U<<((NU)(vX60gensym170100034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } rsakey = vX60gensym170100034_._o_2.v; chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T12_ = (NI)0; for (T12_ = 0; T12_ < 64; T12_++) { (*Result)._o_2.v._scheme_2.edkey.data[T12_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T13_ = (NI)0; for (T13_ = 0; T13_ < 32; T13_++) { (*Result)._o_2.v._scheme_3.skkey.data[T13_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T14_ = (NI)0; for (T14_ = 0; T14_ < 64; T14_++) { (*Result)._o_2.v._scheme_2.edkey.data[T14_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T15_ = (NI)0; for (T15_ = 0; T15_ < 32; T15_++) { (*Result)._o_2.v._scheme_3.skkey.data[T15_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = scheme; unsureAsgnRef((void**) (&(*Result)._o_2.v._scheme_1.rsakey), rsakey); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
{ tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA edkey; NI T17_; NI T18_; NI T19_; NI T20_;
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
edkey = random__fre8nO7fEzVfLbpNoz4Hsg(rng_0); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T17_ = (NI)0; for (T17_ = 0; T17_ < 64; T17_++) { (*Result)._o_2.v._scheme_2.edkey.data[T17_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T18_ = (NI)0; for (T18_ = 0; T18_ < 32; T18_++) { (*Result)._o_2.v._scheme_3.skkey.data[T18_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T19_ = (NI)0; for (T19_ = 0; T19_ < 64; T19_++) { (*Result)._o_2.v._scheme_2.edkey.data[T19_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T20_ = (NI)0; for (T20_ = 0; T20_ < 32; T20_++) { (*Result)._o_2.v._scheme_3.skkey.data[T20_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = scheme; (*Result)._o_2.v._scheme_2.edkey = edkey; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
{ tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* eckey; tyObject_Result__u0fcthTTawEzl2AgeDsDpg vX60gensym170175034_; tyObject_Result__oOsFQPbY2q7ayTTSab5TvA T22_; tyProc__Jjvoj1trXh7UZw5ZTn8fww T23_; NI T30_; NI T31_; NI T32_; NI T33_;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&vX60gensym170175034_), sizeof(tyObject_Result__u0fcthTTawEzl2AgeDsDpg));
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
nimZeroMem((void*)(&T22_), sizeof(tyObject_Result__oOsFQPbY2q7ayTTSab5TvA)); random__w4Y1PVu9bvsQJnqSLoGMCCQ(((tyEnum_EcCurveKind__9a05LORLSq8PdPWJxWhyBXw) 23), rng_0, (&T22_));
nimZeroMem((void*)(&T23_), sizeof(tyProc__Jjvoj1trXh7UZw5ZTn8fww)); T23_.ClP_0 = ((TM__wBH5hWbN4O4UxUgzOozgCA_93) (colonanonymous___5fs3SRoeeTcp2T2NcnZzqw)); T23_.ClE_0 = NIM_NIL;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
mapErr__w649bWMHIiXq54RHtXetwagresults(T22_, T23_, (&vX60gensym170175034_));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{ NI T28_; NI T29_;
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym170175034_.o)) goto LA26_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T28_ = (NI)0; for (T28_ = 0; T28_ < 64; T28_++) { (*Result)._o_2.v._scheme_2.edkey.data[T28_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T29_ = (NI)0; for (T29_ = 0; T29_ < 32; T29_++) { (*Result)._o_2.v._scheme_3.skkey.data[T29_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym170175034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_9)); } (*Result)._o_1.e = vX60gensym170175034_._o_1.e; goto BeforeRet_;
}
LA26_: ;
if (!(((2 &(1U<<((NU)(vX60gensym170175034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } eckey = vX60gensym170175034_._o_2.v; chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T30_ = (NI)0; for (T30_ = 0; T30_ < 64; T30_++) { (*Result)._o_2.v._scheme_2.edkey.data[T30_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T31_ = (NI)0; for (T31_ = 0; T31_ < 32; T31_++) { (*Result)._o_2.v._scheme_3.skkey.data[T31_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T32_ = (NI)0; for (T32_ = 0; T32_ < 64; T32_++) { (*Result)._o_2.v._scheme_2.edkey.data[T32_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T33_ = (NI)0; for (T33_ = 0; T33_ < 32; T33_++) { (*Result)._o_2.v._scheme_3.skkey.data[T33_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = scheme; unsureAsgnRef((void**) (&(*Result)._o_2.v._scheme_4.eckey), eckey); }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
{ tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w skkey; NI T35_; NI T36_; NI T37_; NI T38_;
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
skkey = random__kzA2SHQcyEn69cF9ccOjTRHA(rng_0); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T35_ = (NI)0; for (T35_ = 0; T35_ < 64; T35_++) { (*Result)._o_2.v._scheme_2.edkey.data[T35_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T36_ = (NI)0; for (T36_ = 0; T36_ < 32; T36_++) { (*Result)._o_2.v._scheme_3.skkey.data[T36_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T37_ = (NI)0; for (T37_ = 0; T37_ < 64; T37_++) { (*Result)._o_2.v._scheme_2.edkey.data[T37_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T38_ = (NI)0; for (T38_ = 0; T38_ < 32; T38_++) { (*Result)._o_2.v._scheme_3.skkey.data[T38_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = scheme; (*Result)._o_2.v._scheme_3.skkey = skkey; }
break;
}
}BeforeRet_: ;
}
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(void, random__h1GDvC2RXM8o0RHDr9adBIQ)(br_hmac_drbg_context* rng_0, NI bits, tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg* Result) { NI T1_; NI T2_; tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA edkey; NI T3_; NI T4_; NI T5_; NI T6_; chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T1_ = (NI)0; for (T1_ = 0; T1_ < 64; T1_++) { (*Result)._o_2.v._scheme_2.edkey.data[T1_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T2_ = (NI)0; for (T2_ = 0; T2_ < 32; T2_++) { (*Result)._o_2.v._scheme_3.skkey.data[T2_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0;
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
edkey = random__fre8nO7fEzVfLbpNoz4Hsg(rng_0); chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T3_ = (NI)0; for (T3_ = 0; T3_ < 64; T3_++) { (*Result)._o_2.v._scheme_2.edkey.data[T3_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T4_ = (NI)0; for (T4_ = 0; T4_ < 32; T4_++) { (*Result)._o_2.v._scheme_3.skkey.data[T4_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; chckNil((void*)(&(*Result)._o_2.v)); switch ((*Result)._o_2.v.scheme) {
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 0):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_1.rsakey, NIM_NIL); break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1):
T5_ = (NI)0; for (T5_ = 0; T5_ < 64; T5_++) { (*Result)._o_2.v._scheme_2.edkey.data[T5_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 2):
T6_ = (NI)0; for (T6_ = 0; T6_ < 32; T6_++) { (*Result)._o_2.v._scheme_3.skkey.data[T6_] = 0; }
break;
case ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 3):
unsureAsgnRef((void**)&(*Result)._o_2.v._scheme_4.eckey, NIM_NIL); break;
}
(*Result)._o_2.v.scheme = 0; (*Result)._o_2.v.scheme = ((tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg) 1); (*Result)._o_2.v._scheme_2.edkey = edkey;}
#line 1045 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ, getField__jrBg1cvLZvZZeMrhYVlGgw)(tyObject_ProtoBuffer__40iIOZrE3YoWDkFgicA1eA* pb, NI field, tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA* value_0) { tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ result; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer_1; tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA key_1; NIM_BOOL res; tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ vX60gensym79600179_;{ nimZeroMem((void*)(&result), sizeof(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ));
#line 1047 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
buffer_1 = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; nimZeroMem((void*)(&key_1), sizeof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA));
#line 1053 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 1053 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
vX60gensym79600179_ = getField__TmmAJk0OXMd3CniSvMNDvQ(pb, field, (&buffer_1));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym79600179_.o)) goto LA3_;
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
result = vX60gensym79600179_; goto BeforeRet_;
}
LA3_: ;
if (!(((2 &(1U<<((NU)(vX60gensym79600179_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_8)); } res = vX60gensym79600179_._o_2.v;
#line 1054 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{
#line 1054 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
if (!!(res)) goto LA7_;
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ)); result.o = NIM_TRUE; result._o_2.v = NIM_FALSE; }
goto LA5_;
LA7_: ;
{
#line 1057 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
{ NIM_BOOL T12_;
#line 1057 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
#line 1057 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
T12_ = (NIM_BOOL)0; T12_ = init__ZFrj29apZJPaB79ca09cGOStw((&key_1), buffer_1->data, (buffer_1 ? buffer_1->Sup.len : 0)); if (!T12_) goto LA13_;
#line 1058 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim"
genericAssign((void*)(&(*value_0)), (void*)(&key_1), (&NTI__mVKS59bRpscItosS0oN9a4zA_)); chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ)); result.o = NIM_TRUE; result._o_2.v = NIM_TRUE; }
goto LA10_;
LA13_: ;
{ chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__VR7l4DJaL9cSFn6dTxK0gOQ)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_ProtoError__mWP6pHyhcb4SJ8Wo5U9bwfg) 5); }
LA10_: ;
}
LA5_: ;
}BeforeRet_: ;
return result;}
N_LIB_PRIVATE N_NIMCALL(void, libp2p_cryptoDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__wBH5hWbN4O4UxUgzOozgCA_2_4[4];
NI TM__wBH5hWbN4O4UxUgzOozgCA_4;
static char* NIM_CONST TM__wBH5hWbN4O4UxUgzOozgCA_3[4] = {
"RSA",
"Ed25519",
"Secp256k1",
"ECDSA"};
static TNimNode* TM__wBH5hWbN4O4UxUgzOozgCA_5_4[4];
NI TM__wBH5hWbN4O4UxUgzOozgCA_7;
static char* NIM_CONST TM__wBH5hWbN4O4UxUgzOozgCA_6[4] = {
"KeyError",
"SigError",
"HashError",
"SchemeError"};
static TNimNode* TM__wBH5hWbN4O4UxUgzOozgCA_25_4[4];
static TNimNode TM__wBH5hWbN4O4UxUgzOozgCA_0[26];NTI__GSDbMQxBVd3KO4qBUjzPKQ_.size = sizeof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ);
NTI__GSDbMQxBVd3KO4qBUjzPKQ_.kind = 18;
NTI__GSDbMQxBVd3KO4qBUjzPKQ_.base = 0;
NTI__GSDbMQxBVd3KO4qBUjzPKQ_.flags = 2;
NTI__GSDbMQxBVd3KO4qBUjzPKQ_.name = "PrivateKey";
NTI__GSDbMQxBVd3KO4qBUjzPKQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__GSDbMQxBVd3KO4qBUjzPKQ_;
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.size = sizeof(tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg);
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.kind = 14;
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.base = 0;
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.flags = 3;
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.name = "PKScheme";
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__GeN4EiKxd9aXAvv5y1lfmHg_;
for (TM__wBH5hWbN4O4UxUgzOozgCA_4 = 0; TM__wBH5hWbN4O4UxUgzOozgCA_4 < 4; TM__wBH5hWbN4O4UxUgzOozgCA_4++) {
TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+1].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+1].offset = TM__wBH5hWbN4O4UxUgzOozgCA_4;
TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+1].name = TM__wBH5hWbN4O4UxUgzOozgCA_3[TM__wBH5hWbN4O4UxUgzOozgCA_4];
TM__wBH5hWbN4O4UxUgzOozgCA_2_4[TM__wBH5hWbN4O4UxUgzOozgCA_4] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+1];
}
TM__wBH5hWbN4O4UxUgzOozgCA_0[5].len = 4; TM__wBH5hWbN4O4UxUgzOozgCA_0[5].kind = 2; TM__wBH5hWbN4O4UxUgzOozgCA_0[5].sons = &TM__wBH5hWbN4O4UxUgzOozgCA_2_4[0];
NTI__GeN4EiKxd9aXAvv5y1lfmHg_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[5];
TM__wBH5hWbN4O4UxUgzOozgCA_0[0].kind = 3;
TM__wBH5hWbN4O4UxUgzOozgCA_0[0].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, scheme);
TM__wBH5hWbN4O4UxUgzOozgCA_0[0].typ = (&NTI__GeN4EiKxd9aXAvv5y1lfmHg_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[0].name = "scheme";
TM__wBH5hWbN4O4UxUgzOozgCA_0[0].sons = &NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[0];
TM__wBH5hWbN4O4UxUgzOozgCA_0[0].len = 4;
TM__wBH5hWbN4O4UxUgzOozgCA_0[6].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[6].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_1.rsakey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[6].typ = (&NTI__YsrjeG6VWJ0XFJD22jLsWA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[6].name = "rsakey";
NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[0] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[6];
TM__wBH5hWbN4O4UxUgzOozgCA_0[7].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[7].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_2.edkey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[7].typ = (&NTI__KumOofCUWyjlYLnvXlcIJA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[7].name = "edkey";
NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[1] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[7];
TM__wBH5hWbN4O4UxUgzOozgCA_0[8].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[8].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_3.skkey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[8].typ = (&NTI__aKiBFtqo69b60sWLnM5A9c3w_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[8].name = "skkey";
NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[2] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[8];
TM__wBH5hWbN4O4UxUgzOozgCA_0[9].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[9].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_4.eckey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[9].typ = (&NTI__NRNhelyAfMGuaaXZlYQPFA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[9].name = "eckey";
NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[3] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[9];
NTI__GSDbMQxBVd3KO4qBUjzPKQ_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[0];
NTI__mVKS59bRpscItosS0oN9a4zA_.size = sizeof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA);
NTI__mVKS59bRpscItosS0oN9a4zA_.kind = 18;
NTI__mVKS59bRpscItosS0oN9a4zA_.base = 0;
NTI__mVKS59bRpscItosS0oN9a4zA_.flags = 2;
NTI__mVKS59bRpscItosS0oN9a4zA_.name = "PublicKey";
NTI__mVKS59bRpscItosS0oN9a4zA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__mVKS59bRpscItosS0oN9a4zA_;
TM__wBH5hWbN4O4UxUgzOozgCA_0[10].kind = 3;
TM__wBH5hWbN4O4UxUgzOozgCA_0[10].offset = offsetof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA, scheme);
TM__wBH5hWbN4O4UxUgzOozgCA_0[10].typ = (&NTI__GeN4EiKxd9aXAvv5y1lfmHg_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[10].name = "scheme";
TM__wBH5hWbN4O4UxUgzOozgCA_0[10].sons = &NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[0];
TM__wBH5hWbN4O4UxUgzOozgCA_0[10].len = 4;
TM__wBH5hWbN4O4UxUgzOozgCA_0[11].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[11].offset = offsetof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA, _scheme_1.rsakey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[11].typ = (&NTI__2OoLEoAqWG9c1IoFZfCQ23Q_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[11].name = "rsakey";
NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[0] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[11];
TM__wBH5hWbN4O4UxUgzOozgCA_0[12].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[12].offset = offsetof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA, _scheme_2.edkey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[12].typ = (&NTI__fCTHNrLwOTcb1HatTDTAEA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[12].name = "edkey";
NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[1] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[12];
TM__wBH5hWbN4O4UxUgzOozgCA_0[13].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[13].offset = offsetof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA, _scheme_3.skkey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[13].typ = (&NTI__YxxaGK7KOKaWCOaZ44rHMA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[13].name = "skkey";
NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[2] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[13];
TM__wBH5hWbN4O4UxUgzOozgCA_0[14].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[14].offset = offsetof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA, _scheme_4.eckey);
TM__wBH5hWbN4O4UxUgzOozgCA_0[14].typ = (&NTI__y9abboQL8NPsqWIoJZmI9aiw_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[14].name = "eckey";
NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[3] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[14];
NTI__mVKS59bRpscItosS0oN9a4zA_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[10];
NTI__Z6S5YnPavFcXanJgC9cU1uw_.size = sizeof(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw);
NTI__Z6S5YnPavFcXanJgC9cU1uw_.kind = 14;
NTI__Z6S5YnPavFcXanJgC9cU1uw_.base = 0;
NTI__Z6S5YnPavFcXanJgC9cU1uw_.flags = 3;
NTI__Z6S5YnPavFcXanJgC9cU1uw_.name = "CryptoError";
NTI__Z6S5YnPavFcXanJgC9cU1uw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Z6S5YnPavFcXanJgC9cU1uw_;
for (TM__wBH5hWbN4O4UxUgzOozgCA_7 = 0; TM__wBH5hWbN4O4UxUgzOozgCA_7 < 4; TM__wBH5hWbN4O4UxUgzOozgCA_7++) {
TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+15].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+15].offset = TM__wBH5hWbN4O4UxUgzOozgCA_7;
TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+15].name = TM__wBH5hWbN4O4UxUgzOozgCA_6[TM__wBH5hWbN4O4UxUgzOozgCA_7];
TM__wBH5hWbN4O4UxUgzOozgCA_5_4[TM__wBH5hWbN4O4UxUgzOozgCA_7] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+15];
}
TM__wBH5hWbN4O4UxUgzOozgCA_0[19].len = 4; TM__wBH5hWbN4O4UxUgzOozgCA_0[19].kind = 2; TM__wBH5hWbN4O4UxUgzOozgCA_0[19].sons = &TM__wBH5hWbN4O4UxUgzOozgCA_5_4[0];
NTI__Z6S5YnPavFcXanJgC9cU1uw_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[19];
NTI__CGRrBG2C4jqyNkskN9acy8Q_.size = sizeof(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q);
NTI__CGRrBG2C4jqyNkskN9acy8Q_.kind = 18;
NTI__CGRrBG2C4jqyNkskN9acy8Q_.base = 0;
NTI__CGRrBG2C4jqyNkskN9acy8Q_.flags = 2;
NTI__CGRrBG2C4jqyNkskN9acy8Q_.name = "Signature";
NTI__CGRrBG2C4jqyNkskN9acy8Q_.nextType = nimTypeRoot; nimTypeRoot=&NTI__CGRrBG2C4jqyNkskN9acy8Q_;
TM__wBH5hWbN4O4UxUgzOozgCA_0[20].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[20].offset = offsetof(tyObject_Signature__CGRrBG2C4jqyNkskN9acy8Q, data);
TM__wBH5hWbN4O4UxUgzOozgCA_0[20].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[20].name = "data";
NTI__CGRrBG2C4jqyNkskN9acy8Q_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[20];
NTI__w1fK9a9cXYbXeecISdPerXxA_.size = sizeof(tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA);
NTI__w1fK9a9cXYbXeecISdPerXxA_.kind = 18;
NTI__w1fK9a9cXYbXeecISdPerXxA_.base = 0;
NTI__w1fK9a9cXYbXeecISdPerXxA_.flags = 2;
NTI__w1fK9a9cXYbXeecISdPerXxA_.name = "Secret";
NTI__w1fK9a9cXYbXeecISdPerXxA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__w1fK9a9cXYbXeecISdPerXxA_;
TM__wBH5hWbN4O4UxUgzOozgCA_25_4[0] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[22];
TM__wBH5hWbN4O4UxUgzOozgCA_0[22].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[22].offset = offsetof(tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA, ivsize);
TM__wBH5hWbN4O4UxUgzOozgCA_0[22].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[22].name = "ivsize";
TM__wBH5hWbN4O4UxUgzOozgCA_25_4[1] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[23];
TM__wBH5hWbN4O4UxUgzOozgCA_0[23].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[23].offset = offsetof(tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA, keysize);
TM__wBH5hWbN4O4UxUgzOozgCA_0[23].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[23].name = "keysize";
TM__wBH5hWbN4O4UxUgzOozgCA_25_4[2] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[24];
TM__wBH5hWbN4O4UxUgzOozgCA_0[24].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[24].offset = offsetof(tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA, macsize);
TM__wBH5hWbN4O4UxUgzOozgCA_0[24].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[24].name = "macsize";
TM__wBH5hWbN4O4UxUgzOozgCA_25_4[3] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[25];
TM__wBH5hWbN4O4UxUgzOozgCA_0[25].kind = 1;
TM__wBH5hWbN4O4UxUgzOozgCA_0[25].offset = offsetof(tyObject_Secret__w1fK9a9cXYbXeecISdPerXxA, data);
TM__wBH5hWbN4O4UxUgzOozgCA_0[25].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
TM__wBH5hWbN4O4UxUgzOozgCA_0[25].name = "data";
TM__wBH5hWbN4O4UxUgzOozgCA_0[21].len = 4; TM__wBH5hWbN4O4UxUgzOozgCA_0[21].kind = 2; TM__wBH5hWbN4O4UxUgzOozgCA_0[21].sons = &TM__wBH5hWbN4O4UxUgzOozgCA_25_4[0];
NTI__w1fK9a9cXYbXeecISdPerXxA_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[21];
}