Giter Site home page Giter Site logo

helib-go's People

Contributors

glaslos avatar nikofil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

helib-go's Issues

Error while I use it

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.