nikofil / helib-go Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
We should probably use FindM instead of using a fixed value.
I replace the src folder with the latest Helib.But I get the bug as follow.
test: PAlgebra.cpp:540: void PAlgebraModDerived::embedInSlots(PAlgebraModDerived::RX&, const std::vector&, const MappingData&) const [with type = PA_GF2; PAlgebraModDerived::RX = NTL::GF2X; typename type::RX = NTL::GF2X]: Assertion `lsize(alphas) == nSlots' failed.
SIGABRT: abort
PC=0x7f28c048ae97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x582590, 0xc420051e60, 0x81f49d)
/usr/local/go/src/runtime/cgocall.go:132 +0xe4 fp=0xc420051e20 sp=0xc420051de0 pc=0x4f95e4
github.com/nikofil/helib._Cfunc_ctxtFromArray(0x1252b10, 0xc420086000, 0xa, 0x0)
github.com/nikofil/helib/_obj/_cgo_gotypes.go:77 +0x4e fp=0xc420051e60 sp=0xc420051e20 pc=0x552afe
github.com/nikofil/helib.(*FHEContext).CtxFromArr.func1(0x1252b10, 0xc420086000, 0xc40000000a, 0xc420086050)
/home/mike/go/src/github.com/nikofil/helib/fhe.go:21 +0x72 fp=0xc420051e98 sp=0xc420051e60 pc=0x5532b2
github.com/nikofil/helib.(*FHEContext).CtxFromArr(0xc42000e028, 0xc420086000, 0xa, 0xa, 0x10)
/home/mike/go/src/github.com/nikofil/helib/fhe.go:21 +0x46 fp=0xc420051ec8 sp=0xc420051e98 pc=0x553066
main.main()
/home/mike/go/src/github.com/nikofil/test.go:23 +0x10b fp=0xc420051f80 sp=0xc420051ec8 pc=0x58230b
runtime.main()
/usr/local/go/src/runtime/proc.go:195 +0x226 fp=0xc420051fe0 sp=0xc420051f80 pc=0x520816
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc420051fe8 sp=0xc420051fe0 pc=0x549091
The test suit should be run by travis to ensure project health.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.