Closed qub1tt closed 3 months ago
There are some differences, you can read the scale by old_value = cipher.scale()
and set the scale by cipher.scale(new_value)
.
Check the examples may also help you.
Thanks for the reply! I got the code run perfectly. Sorry i want to ask one more thing, i've found there is a function name encrypt_symmetric() and apparently it's from the tenseal API library.
This is from tenSEAL: This is from your library:
In this library there is no encrypt_symmetric() just normal encrypt(), so I want to know what's the difference between these 2 functions? and if i want to use the symmetric one in this library what function i have to call? Thanks again!
The encrypt_symmetric
methods were added at SEAL v3.4.0, it is used to generate the Ciphertext in secret-key mode, witch need an Encryptor init by the secret key, link.
You can use it is this library now.
It said public key is not set, i know the init for p is not right i just want to test the function. It seems like it only encrypt with public key
I mean you could use encrypt_symmetric
now, repull the code and build the lib.
Hello, i use this library for a project use Homomorphic Encryption in RF based on this repo https://github.com/dhuynh95/cryptotree/
I tried to convert all the function from tenSEAL to your library standards because in tenSEAL API, the create_public_key() function don't work and i don't know why so I found this library and decided to use it since it's working fine. Until i encountered a problem in https://github.com/dhuynh95/cryptotree/blob/master/nbs/03_polynomials.ipynb
And when i call the function:
I have this error:
Does it mean that the scale attribute cannot be change in a Ciphertext object? Appreciate if you can help me solve this problem because i intend to use this for my Cryptography project in uni. Thank you!