Skip to content

kmzhang0111/helib-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc

HELib-Go

HELib-Go is a Golang wrapper for HELib

Sample Usage

ctx := helib.NewFHEContext()
defer ctx.Free()
arr1 := []int64{1,2,5,1,2,5,1,2,5,3}
arr2 := []int64{3,4,5,1,2,3,5,6,7,2}
ctx1 := ctx.CtxFromArr(arr1)
ctx2 := ctx.CtxFromArr(arr2)
helib.AddCtxs(ctx1, ctx2)
res := ctx.DecryptCtx(ctx1)
for i := range arr1 {
  fmt.Printf("%d + %d = %d\n", arr1[i], arr2[i], res[i])
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.2%
  • Objective-C 2.1%
  • Other 0.7%