Parcourir la source

fix decrypt syntax error

Rener Oliveira (Ubuntu WSL) il y a 1 an
Parent
commit
b794eaa694
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/pke/examples/simple-ckks-bootstrapping.py

+ 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()}")
 
-    result = cryptocontext.Decrypt(keyPair.secretKey, ciphertextAfter)
+    result = Decrypt(ciphertextAfter,keyPair.secretKey)
     result.SetLength(encodedLength)
     print(f"Output after bootstrapping: {result}")