-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibConfigGenerate:re-implement ValidFilter for invalid testing
- Loading branch information
1 parent
6ed8534
commit 854e6a4
Showing
10 changed files
with
886 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package fhetest.Generate | ||
|
||
import fhetest.Utils.* | ||
|
||
// import java.util.stream.Stream | ||
// import scala.jdk.CollectionConverters._ | ||
|
||
type RingDim = Int | ||
type FirstModSize = Int | ||
type PlainMod = Int | ||
|
||
case class LibConfigDomain( | ||
scheme: Scheme, | ||
ringDim: List[Int], | ||
mulDepth: Int => List[Int], | ||
plainMod: RingDim => List[Int], | ||
firstModSize: Scheme => List[Int], | ||
scalingModSize: Scheme => FirstModSize => List[Int], | ||
securityLevel: List[SecurityLevel], | ||
scalingTechnique: Scheme => List[ScalingTechnique], | ||
lenMin: Scheme => RingDim => Int, | ||
lenMax: Scheme => RingDim => Int, | ||
boundMin: Scheme => PlainMod => FirstModSize => Int | Double, | ||
boundMax: Scheme => PlainMod => FirstModSize => Int | Double, | ||
rotateBound: List[Int], | ||
) { | ||
def stringify(): String = | ||
s"""{scheme: ${scheme}} | ||
{encParams: EncParams(${ringDim}, ${mulDepth}, ${plainMod})} | ||
{(firstModSize, scalingModSize): (${firstModSize}, ${scalingModSize})} | ||
{securityLevel: ${securityLevel}} | ||
{scalingTechnique: ${scalingTechnique}} | ||
{lenMax: ${lenMax}} | ||
{boundMax: ${boundMax}} | ||
{rotateBoundOpt: ${rotateBound}} | ||
""" | ||
} |
Oops, something went wrong.