mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-29 08:06:47 +00:00
157 lines
9.1 KiB
C
157 lines
9.1 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 -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@sed25519@sed25519.nim.c.o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-libp2p@slibp2p@scrypto@sed25519@sed25519.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA;
|
|
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
|
|
struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
|
|
};
|
|
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 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
|
|
struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
|
|
};
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};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, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
|
|
N_LIB_PRIVATE TNimType NTI__fCTHNrLwOTcb1HatTDTAEA_;
|
|
extern TNimType NTI__k3HXouOuhqAKq0dx450lXQ_;
|
|
N_LIB_PRIVATE TNimType NTI__vEOa9c5qaE9ajWxR5R4zwfQg_;
|
|
N_LIB_PRIVATE TNimType NTI__KumOofCUWyjlYLnvXlcIJA_;
|
|
extern TNimType NTI__w5VB8h5K8DB3oWrO5U2wqg_;
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
extern TNimType* nimTypeRoot;
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 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 1685 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ed25519/ed25519.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA, getKey__lDJkUWDdHXO6NjMEdY4Dfw)(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA* key_0) { tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA result; nimZeroMem((void*)(&result), sizeof(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA));
|
|
#line 1687 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ed25519/ed25519.nim"
|
|
|
|
#line 1687 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ed25519/ed25519.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&result.data[(((NI) 0))- 0]))), ((void*) ((&(*key_0).data[(((NI) 32))- 0]))), ((NI) 32));
|
|
return result;}
|
|
|
|
#line 1722 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ed25519/ed25519.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, getBytes__w9c3PujD1NnOUmRBWXx5M9aw)(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA* key_0) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; NI T1_; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 1722 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ed25519/ed25519.nim"
|
|
|
|
#line 1722 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/ed25519/ed25519.nim"
|
|
result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) newSeq((&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), 32); T1_ = (NI)0; for (T1_ = 0; T1_ < 32; T1_++) { result->data[T1_] = (*key_0).data[T1_]; }
|
|
return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, libp2p_ed25519DatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode TM__YJCy2kqTV8kkOcVt3MS0Yw_0[2];NTI__fCTHNrLwOTcb1HatTDTAEA_.size = sizeof(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA);
|
|
NTI__fCTHNrLwOTcb1HatTDTAEA_.kind = 18;
|
|
NTI__fCTHNrLwOTcb1HatTDTAEA_.base = 0;
|
|
NTI__fCTHNrLwOTcb1HatTDTAEA_.flags = 3;
|
|
NTI__fCTHNrLwOTcb1HatTDTAEA_.name = "EdPublicKey";
|
|
NTI__fCTHNrLwOTcb1HatTDTAEA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__fCTHNrLwOTcb1HatTDTAEA_;
|
|
NTI__vEOa9c5qaE9ajWxR5R4zwfQg_.size = sizeof(tyArray__vEOa9c5qaE9ajWxR5R4zwfQg);
|
|
NTI__vEOa9c5qaE9ajWxR5R4zwfQg_.kind = 16;
|
|
NTI__vEOa9c5qaE9ajWxR5R4zwfQg_.base = (&NTI__k3HXouOuhqAKq0dx450lXQ_);
|
|
NTI__vEOa9c5qaE9ajWxR5R4zwfQg_.flags = 3;
|
|
NTI__vEOa9c5qaE9ajWxR5R4zwfQg_.name = "array[0..31, byte]";
|
|
NTI__vEOa9c5qaE9ajWxR5R4zwfQg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__vEOa9c5qaE9ajWxR5R4zwfQg_;
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[0].kind = 1;
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[0].offset = offsetof(tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA, data);
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[0].typ = (&NTI__vEOa9c5qaE9ajWxR5R4zwfQg_);
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[0].name = "data";
|
|
NTI__fCTHNrLwOTcb1HatTDTAEA_.node = &TM__YJCy2kqTV8kkOcVt3MS0Yw_0[0];
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.size = sizeof(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA);
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.kind = 18;
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.base = 0;
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.flags = 3;
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.name = "EdPrivateKey";
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__KumOofCUWyjlYLnvXlcIJA_;
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[1].kind = 1;
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[1].offset = offsetof(tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA, data);
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[1].typ = (&NTI__w5VB8h5K8DB3oWrO5U2wqg_);
|
|
TM__YJCy2kqTV8kkOcVt3MS0Yw_0[1].name = "data";
|
|
NTI__KumOofCUWyjlYLnvXlcIJA_.node = &TM__YJCy2kqTV8kkOcVt3MS0Yw_0[1];
|
|
}
|
|
|