Prechádzať zdrojové kódy

fix decrypt syntax error

Rener Oliveira (Ubuntu WSL) 1 rok pred
rodič
commit
b794eaa694

+ 1 - 1
src/pke/examples/simple-ckks-bootstrapping.py

@@ -69,7 +69,7 @@ def SimpleBootstrapExample(nativeint):
 
 
     print(f"Number of levels remaining after bootstrapping: {ciphertextAfter.GetLevel()}")
     print(f"Number of levels remaining after bootstrapping: {ciphertextAfter.GetLevel()}")
 
 
-    result = cryptocontext.Decrypt(keyPair.secretKey, ciphertextAfter)
+    result = Decrypt(ciphertextAfter,keyPair.secretKey)
     result.SetLength(encodedLength)
     result.SetLength(encodedLength)
     print(f"Output after bootstrapping: {result}")
     print(f"Output after bootstrapping: {result}")