mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-11 06:26:43 +00:00
110 lines
5.7 KiB
C
110 lines
5.7 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-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 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -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/basic2/@m..@s..@svendor@snim-eth@seth@skeys.nim.c.o nimcache/release/basic2/@m..@s..@svendor@snim-eth@seth@skeys.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include "bearssl_rand.h"
|
|
#include "bearssl_hash.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 TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
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 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);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
extern TNimType NTI__RuNvFuo5ptASsihINNteSw_;
|
|
|
|
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(br_hmac_drbg_context*, newRng__9cKaYUOzNpI6Cw7CIYoErTQ)(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 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
seeder = br_prng_seeder_system(NIM_NIL);
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
{
|
|
#line 59 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
if (!(seeder == NIM_NIL)) goto LA3_;
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
result = NIM_NIL; goto BeforeRet_;
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
T5_ = (br_hmac_drbg_context*)0; T5_ = (br_hmac_drbg_context*) newObj((&NTI__RuNvFuo5ptASsihINNteSw_), sizeof(br_hmac_drbg_context)); rng_1 = T5_;
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
br_hmac_drbg_init(rng_1, (&br_sha256_vtable), NIM_NIL, ((NI) 0));
|
|
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
{ int T8_;
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
T8_ = (int)0; T8_ = seeder(&(*rng_1).vtable); if (!(T8_ == ((NI32) 0))) goto LA9_;
|
|
|
|
#line 65 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
|
|
#line 65 "/home/runner/work/nim-waku/nim-waku/vendor/nim-eth/eth/keys.nim"
|
|
result = NIM_NIL; goto BeforeRet_;
|
|
}
|
|
LA9_: ;
|
|
result = rng_1; }BeforeRet_: ;
|
|
return result;}
|