mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
42 lines
782 B
Go
42 lines
782 B
Go
package multiparty
|
|
|
|
import (
|
|
"github.com/tuneinsight/lattigo/v6/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,
|
|
},
|
|
},
|
|
}
|
|
)
|