-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
增加secret_key构建hekit接口 #106
Comments
好的,我们加一个从 sk 恢复 HeKit 的接口 |
|
|
|
@tarantula-leo 这个是开放给 C++ 应用的接口,如果是 Python 侧过来的请求不会用到这个接口 |
看merge的内容,是通过pk和sk恢复Hekit,如果对于Decryptor的单独使用,是不是只需要sk就可以?是否会考虑增加一个单独的HeKit类,类似DestinationHekit供Encryptor/Evaluator使用。 |
这个不考虑,有些算法的 decrypt 依赖 pk 中的内容,所以 HEU 构造 Decryptor 的时候默认需要传入 pk 和 sk,上层多传一个 pk 应该不困难吧? |
目前可从公钥构造destinationhekit,得到evaluator、encryptor,但在仅有sk场景下(实际使用中只会对sk/pk进行序列化,不会对hekit做序列化),无法构造hekit对密文进行解密;
可类似地提供如下接口:
The text was updated successfully, but these errors were encountered: