mirror of
https://github.com/luxfi/lattice.git
synced 2026-09-24 00:25:44 +00:00
- Update module path to github.com/luxfi/lattice/v7 - Add GPU acceleration with Metal (macOS) and CUDA backends - Enhance threshold FHE operations - Revert to vanilla Apache 2.0 license (remove tfhe) - Update Go version to 1.25.5 - Merge upstream lattigo improvements
42 lines
776 B
Go
42 lines
776 B
Go
package multiparty
|
|
|
|
import (
|
|
"github.com/luxfi/lattice/v7/core/rlwe"
|
|
)
|
|
|
|
type TestParametersLiteral struct {
|
|
BaseTwoDecomposition int
|
|
rlwe.ParametersLiteral
|
|
}
|
|
|
|
var (
|
|
logN = 10
|
|
qi = []uint64{0x200000440001, 0x7fff80001, 0x800280001, 0x7ffd80001, 0x7ffc80001}
|
|
pj = []uint64{0x3ffffffb80001, 0x4000000800001}
|
|
|
|
// testInsecure are insecure parameters used for the sole purpose of fast testing.
|
|
testInsecure = []TestParametersLiteral{
|
|
{
|
|
BaseTwoDecomposition: 16,
|
|
|
|
ParametersLiteral: rlwe.ParametersLiteral{
|
|
LogN: logN,
|
|
Q: qi,
|
|
P: pj[:1],
|
|
NTTFlag: true,
|
|
},
|
|
},
|
|
|
|
{
|
|
BaseTwoDecomposition: 0,
|
|
|
|
ParametersLiteral: rlwe.ParametersLiteral{
|
|
LogN: logN,
|
|
Q: qi,
|
|
P: pj,
|
|
NTTFlag: true,
|
|
},
|
|
},
|
|
}
|
|
)
|