mirror of
https://github.com/luxfi/lattice.git
synced 2026-09-24 00:25:44 +00:00
54 lines
1.0 KiB
Go
54 lines
1.0 KiB
Go
package mhefloat
|
|
|
|
import (
|
|
"github.com/luxdefi/lattice/v5/he/hefloat"
|
|
)
|
|
|
|
var (
|
|
|
|
// testInsecurePrec45 are insecure parameters used for the sole purpose of fast testing.
|
|
testInsecurePrec45 = hefloat.ParametersLiteral{
|
|
LogN: 10,
|
|
Q: []uint64{
|
|
0x80000000080001,
|
|
0x2000000a0001,
|
|
0x2000000e0001,
|
|
0x2000001d0001,
|
|
0x1fffffcf0001,
|
|
0x1fffffc20001,
|
|
0x200000440001,
|
|
},
|
|
P: []uint64{
|
|
0x80000000130001,
|
|
0x7fffffffe90001,
|
|
},
|
|
LogDefaultScale: 45,
|
|
}
|
|
|
|
// testInsecurePrec90 are insecure parameters used for the sole purpose of fast testing.
|
|
testInsecurePrec90 = hefloat.ParametersLiteral{
|
|
LogN: 10,
|
|
Q: []uint64{
|
|
0x80000000080001,
|
|
0x80000000440001,
|
|
0x2000000a0001,
|
|
0x2000000e0001,
|
|
0x1fffffc20001,
|
|
0x200000440001,
|
|
0x200000500001,
|
|
0x200000620001,
|
|
0x1fffff980001,
|
|
0x2000006a0001,
|
|
0x1fffff7e0001,
|
|
0x200000860001,
|
|
},
|
|
P: []uint64{
|
|
0xffffffffffc0001,
|
|
0x10000000006e0001,
|
|
},
|
|
LogDefaultScale: 90,
|
|
}
|
|
|
|
testParamsLiteral = []hefloat.ParametersLiteral{testInsecurePrec45, testInsecurePrec90}
|
|
)
|