|
@@ -0,0 +1,17 @@
|
|
|
|
+# Initial Setting
|
|
|
|
+from openfhe import CCParamsBFVRNS
|
|
|
|
+
|
|
|
|
+# Creating the parameters object
|
|
|
|
+parameters = CCParamsBFVRNS()
|
|
|
|
+
|
|
|
|
+# Printing Default Multip. Depth and Plaintext Modulus
|
|
|
|
+print("Default BFV Plaintext Modulus = " + str(parameters.GetPlaintextModulus()))
|
|
|
|
+print("Default BFV Multiplicative Depth = " + str(parameters.GetMultiplicativeDepth()))
|
|
|
|
+
|
|
|
|
+# Setting different values
|
|
|
|
+parameters.SetPlaintextModulus(65537)
|
|
|
|
+parameters.SetMultiplicativeDepth(2)
|
|
|
|
+
|
|
|
|
+# Getting new values
|
|
|
|
+print("New BFV Plaintext Modulus = " + str(parameters.GetPlaintextModulus()))
|
|
|
|
+print("New BFV Multiplicative Depth = " + str(parameters.GetMultiplicativeDepth()))
|