/* 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-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-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 -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v2/node -o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@scrypto@scrypto.nim.c.o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@scrypto@scrypto.nim.c */ #define NIM_INTBITS 64 #include "nimbase.h" #include "bearssl_rand.h" #include "bearssl_hash.h" #include #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 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_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ; typedef struct tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q; 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 NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct tyObject_Result__GHr33y09csHqF4YgilqXCeA tyObject_Result__GHr33y09csHqF4YgilqXCeA; typedef struct tyObject_Result__fBI8BlURc7uRx2jML3oTSg tyObject_Result__fBI8BlURc7uRx2jML3oTSg; 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 tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA; typedef unsigned char tyArray__A1SHJCPZVISPTujoygIPEQ[64]; typedef N_CDECL_PTR(int, tyProc__8515EaYVeX8ph3fGJmTq3w) (br_prng_class** ctx); typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType {NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; NCSTRING name; TNimType* nextType; NI instances; NI sizes; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef NU8 tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw; typedef NU8 tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg; typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32]; struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data; }; typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64]; 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; }; }; struct tyObject_Result__vwq6q8V74XCA8dzFvuzU1Q {NIM_BOOL o; union{ struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e; } _o_1; struct {tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA v; } _o_2; }; }; struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA {tyArray__w5VB8h5K8DB3oWrO5U2wqg data; }; 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; }; }; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Result__GHr33y09csHqF4YgilqXCeA {NIM_BOOL o; union{ struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e; } _o_1; struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* v; } _o_2; }; }; typedef NU8 tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA; struct tyObject_Result__fBI8BlURc7uRx2jML3oTSg {NIM_BOOL o; union{ struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e; } _o_1; struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* 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_12) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0); typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_14) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0); 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; typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_16) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0); typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_18) (tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g x_0, void* ClE_0); struct tyObject_Result__4V9aavu9bX80MVc5K82Pp59aA {NIM_BOOL o; union{ struct {tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA e; } _o_1; struct {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* v; } _o_2; }; }; typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_20) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0); typedef N_CLOSURE_PTR(tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw, TM__wBH5hWbN4O4UxUgzOozgCA_22) (tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA x_0, void* ClE_0); typedef NU8 tyArray__1S3PkXs1i9a3odYVGYxTIlQ[33]; 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); 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); struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size); N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p); N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src); N_LIB_PRIVATE N_NIMCALL(tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg*, getKey__cfVOJ9aZzO18vUXesNDNxaQ)(tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* key_0); N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f); N_LIB_PRIVATE N_NIMCALL(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA, getKey__lDJkUWDdHXO6NjMEdY4Dfw)(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA* key_0); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); static N_INLINE(void, 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___1AzYevJ9aD3neVtHSgJu6MQ)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym64370203_); N_LIB_PRIVATE N_NIMCALL(tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA, getKey__7VH9bAvjjfeIpx8OODXp0kw)(tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w* key_0); 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_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___9bXvHmUF9cKiAbq9cd3dyQPDg)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym64655203_); 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___Pd7yoBrPNQQvDAVi59bfkSA)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym64690203_); 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); extern TNimType NTI__RuNvFuo5ptASsihINNteSw_; N_LIB_PRIVATE TNimType NTI__Z6S5YnPavFcXanJgC9cU1uw_; N_LIB_PRIVATE TNimType NTI__mVKS59bRpscItosS0oN9a4zA_; N_LIB_PRIVATE TNimType NTI__GeN4EiKxd9aXAvv5y1lfmHg_; TNimNode* NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[5]; extern TNimType NTI__2OoLEoAqWG9c1IoFZfCQ23Q_; extern TNimType NTI__fCTHNrLwOTcb1HatTDTAEA_; extern TNimType NTI__YxxaGK7KOKaWCOaZ44rHMA_; extern TNimType NTI__y9abboQL8NPsqWIoJZmI9aiw_; STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_8, "\'rsakey\' is not accessible using discriminant \'scheme\' of type " "\'PrivateKey\'", 75); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_9, "\'edkey\' is not accessible using discriminant \'scheme\' of type \'" "PrivateKey\'", 74); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_10, "\'v\' is not accessible using discriminant \'o\' of type \'Result\'", 61); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_11, "\'e\' is not accessible using discriminant \'o\' of type \'Result\'", 61); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_13, "\'eckey\' is not accessible using discriminant \'scheme\' of type \'" "PrivateKey\'", 74); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_15, "\'skkey\' is not accessible using discriminant \'scheme\' of type \'" "PrivateKey\'", 74); N_LIB_PRIVATE TNimType NTI__GSDbMQxBVd3KO4qBUjzPKQ_; TNimNode* NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[5]; extern TNimType NTI__YsrjeG6VWJ0XFJD22jLsWA_; extern TNimType NTI__KumOofCUWyjlYLnvXlcIJA_; extern TNimType NTI__aKiBFtqo69b60sWLnM5A9c3w_; extern TNimType NTI__NRNhelyAfMGuaaXZlYQPFA_; extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_; STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_17, "\'rsakey\' is not accessible using discriminant \'scheme\' of type " "\'PublicKey\'", 74); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_19, "\'edkey\' is not accessible using discriminant \'scheme\' of type \'" "PublicKey\'", 73); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_21, "\'eckey\' is not accessible using discriminant \'scheme\' of type \'" "PublicKey\'", 73); STRING_LITERAL(TM__wBH5hWbN4O4UxUgzOozgCA_23, "\'skkey\' is not accessible using discriminant \'scheme\' of type \'" "PublicKey\'", 73); extern TNimType NTI__wI9bduJs1m4ktObREEZ9adiQ_; extern TNimType* nimTypeRoot; #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 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__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_10)); } 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_11)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_12)(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___1AzYevJ9aD3neVtHSgJu6MQ)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym64370203_) { 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_8)); } #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_9)); } #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 vX60gensym64395034_; 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*)(&vX60gensym64395034_), 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_13)); } #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_14) (colonanonymous___1AzYevJ9aD3neVtHSgJu6MQ)); 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_, (&vX60gensym64395034_)); #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 (!!(vX60gensym64395034_.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)(vX60gensym64395034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_11)); } (*Result)._o_1.e = vX60gensym64395034_._o_1.e; goto BeforeRet_; } LA18_: ; if (!(((2 &(1U<<((NU)(vX60gensym64395034_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_10)); } eckey = vX60gensym64395034_._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_15)); } #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 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_10)); } 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_11)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_16)(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___9bXvHmUF9cKiAbq9cd3dyQPDg)(tyEnum_RsaError__w2cgWwG0mNvGdkcv7fl36g _X60gensym64655203_) { 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_10)); } 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_11)); } (*Result)._o_1.e = f.ClE_0? f.ClP_0(self._o_1.e, f.ClE_0):((TM__wBH5hWbN4O4UxUgzOozgCA_20)(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___Pd7yoBrPNQQvDAVi59bfkSA)(tyEnum_EcError__uEgxZ29b8TyXtXI1lvZiARA _X60gensym64690203_) { 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_17)); } #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_18) (colonanonymous___9bXvHmUF9cKiAbq9cd3dyQPDg)); 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_19)); } #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_21)); } #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_22) (colonanonymous___Pd7yoBrPNQQvDAVi59bfkSA)); 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_23)); } #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 vX60gensym64770042_;{ 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*)(&vX60gensym64770042_), 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, (&vX60gensym64770042_)); #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 (!!(vX60gensym64770042_.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*)(&vX60gensym64770042_), (&NTI__wI9bduJs1m4ktObREEZ9adiQ_)); goto BeforeRet_; } LA3_: ; if (!(((2 &(1U<<((NU)(vX60gensym64770042_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__wBH5hWbN4O4UxUgzOozgCA_10)); } #line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/crypto.nim" write__4tkJJWHqmkKO9cj2FvJ9cDoQ((&msg), ((NI) 2), vX60gensym64770042_._o_2.v->data, (vX60gensym64770042_._o_2.v ? vX60gensym64770042_._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_: ; } 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] = { "KeyError", "SigError", "HashError", "SchemeError"}; static TNimNode* TM__wBH5hWbN4O4UxUgzOozgCA_5_4[4]; NI TM__wBH5hWbN4O4UxUgzOozgCA_7; static char* NIM_CONST TM__wBH5hWbN4O4UxUgzOozgCA_6[4] = { "RSA", "Ed25519", "Secp256k1", "ECDSA"}; static TNimNode TM__wBH5hWbN4O4UxUgzOozgCA_0[20];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_4 = 0; TM__wBH5hWbN4O4UxUgzOozgCA_4 < 4; TM__wBH5hWbN4O4UxUgzOozgCA_4++) { TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+0].kind = 1; TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+0].offset = TM__wBH5hWbN4O4UxUgzOozgCA_4; TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+0].name = TM__wBH5hWbN4O4UxUgzOozgCA_3[TM__wBH5hWbN4O4UxUgzOozgCA_4]; TM__wBH5hWbN4O4UxUgzOozgCA_2_4[TM__wBH5hWbN4O4UxUgzOozgCA_4] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_4+0]; } TM__wBH5hWbN4O4UxUgzOozgCA_0[4].len = 4; TM__wBH5hWbN4O4UxUgzOozgCA_0[4].kind = 2; TM__wBH5hWbN4O4UxUgzOozgCA_0[4].sons = &TM__wBH5hWbN4O4UxUgzOozgCA_2_4[0]; NTI__Z6S5YnPavFcXanJgC9cU1uw_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[4]; 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_; 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_7 = 0; TM__wBH5hWbN4O4UxUgzOozgCA_7 < 4; TM__wBH5hWbN4O4UxUgzOozgCA_7++) { TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+6].kind = 1; TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+6].offset = TM__wBH5hWbN4O4UxUgzOozgCA_7; TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+6].name = TM__wBH5hWbN4O4UxUgzOozgCA_6[TM__wBH5hWbN4O4UxUgzOozgCA_7]; TM__wBH5hWbN4O4UxUgzOozgCA_5_4[TM__wBH5hWbN4O4UxUgzOozgCA_7] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[TM__wBH5hWbN4O4UxUgzOozgCA_7+6]; } TM__wBH5hWbN4O4UxUgzOozgCA_0[10].len = 4; TM__wBH5hWbN4O4UxUgzOozgCA_0[10].kind = 2; TM__wBH5hWbN4O4UxUgzOozgCA_0[10].sons = &TM__wBH5hWbN4O4UxUgzOozgCA_5_4[0]; NTI__GeN4EiKxd9aXAvv5y1lfmHg_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[10]; TM__wBH5hWbN4O4UxUgzOozgCA_0[5].kind = 3; TM__wBH5hWbN4O4UxUgzOozgCA_0[5].offset = offsetof(tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA, scheme); TM__wBH5hWbN4O4UxUgzOozgCA_0[5].typ = (&NTI__GeN4EiKxd9aXAvv5y1lfmHg_); TM__wBH5hWbN4O4UxUgzOozgCA_0[5].name = "scheme"; TM__wBH5hWbN4O4UxUgzOozgCA_0[5].sons = &NimDT___mVKS59bRpscItosS0oN9a4zA_scheme[0]; TM__wBH5hWbN4O4UxUgzOozgCA_0[5].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[5]; 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_; TM__wBH5hWbN4O4UxUgzOozgCA_0[15].kind = 3; TM__wBH5hWbN4O4UxUgzOozgCA_0[15].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, scheme); TM__wBH5hWbN4O4UxUgzOozgCA_0[15].typ = (&NTI__GeN4EiKxd9aXAvv5y1lfmHg_); TM__wBH5hWbN4O4UxUgzOozgCA_0[15].name = "scheme"; TM__wBH5hWbN4O4UxUgzOozgCA_0[15].sons = &NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[0]; TM__wBH5hWbN4O4UxUgzOozgCA_0[15].len = 4; TM__wBH5hWbN4O4UxUgzOozgCA_0[16].kind = 1; TM__wBH5hWbN4O4UxUgzOozgCA_0[16].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_1.rsakey); TM__wBH5hWbN4O4UxUgzOozgCA_0[16].typ = (&NTI__YsrjeG6VWJ0XFJD22jLsWA_); TM__wBH5hWbN4O4UxUgzOozgCA_0[16].name = "rsakey"; NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[0] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[16]; TM__wBH5hWbN4O4UxUgzOozgCA_0[17].kind = 1; TM__wBH5hWbN4O4UxUgzOozgCA_0[17].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_2.edkey); TM__wBH5hWbN4O4UxUgzOozgCA_0[17].typ = (&NTI__KumOofCUWyjlYLnvXlcIJA_); TM__wBH5hWbN4O4UxUgzOozgCA_0[17].name = "edkey"; NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[1] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[17]; TM__wBH5hWbN4O4UxUgzOozgCA_0[18].kind = 1; TM__wBH5hWbN4O4UxUgzOozgCA_0[18].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_3.skkey); TM__wBH5hWbN4O4UxUgzOozgCA_0[18].typ = (&NTI__aKiBFtqo69b60sWLnM5A9c3w_); TM__wBH5hWbN4O4UxUgzOozgCA_0[18].name = "skkey"; NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[2] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[18]; TM__wBH5hWbN4O4UxUgzOozgCA_0[19].kind = 1; TM__wBH5hWbN4O4UxUgzOozgCA_0[19].offset = offsetof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ, _scheme_4.eckey); TM__wBH5hWbN4O4UxUgzOozgCA_0[19].typ = (&NTI__NRNhelyAfMGuaaXZlYQPFA_); TM__wBH5hWbN4O4UxUgzOozgCA_0[19].name = "eckey"; NimDT___GSDbMQxBVd3KO4qBUjzPKQ_scheme[3] = &TM__wBH5hWbN4O4UxUgzOozgCA_0[19]; NTI__GSDbMQxBVd3KO4qBUjzPKQ_.node = &TM__wBH5hWbN4O4UxUgzOozgCA_0[15]; }