【发布时间】:2018-12-27 05:16:18
【问题描述】:
我正在使用来自 Microsoft Cryptography Research Group 的 Simple Encrypted Arithmetic Library (SEAL) 库。有没有办法获取seal::Ciphertext variable的内容?我试图理解 ciphertext.h 和 ciphertext.cpp 并发现:
/**
Saves the ciphertext to an output stream. The output is in binary format and not
human-readable. The output stream must have the "binary" flag set.
@param[in] stream The stream to save the ciphertext to
@see load() to load a saved ciphertext.
*/
void save(std::ostream &stream) const;
/**
Loads a ciphertext from an input stream overwriting the current ciphertext.
@param[in] stream The stream to load the ciphertext from
@see save() to save a ciphertext.
*/
void load(std::istream &stream);
但我找不到其他选项来获取 anyseal::Ciphertext variable 的内容,它不是二进制流或只是指向某个内存地址的指针并将其保存为字符串。
如果你们中的任何人从上面的链接下载了 SEAL 库并在不进行任何更改的情况下提取了它。您可以在 SEAL_2.3.1\SEAL\seal\ciphertext.h 和 SEAL_2.3.1\SEAL\seal\ciphertext.cppseal::Ciphertext 的所有允许操作/p>
【问题讨论】:
标签: c++ postgresql encryption cryptography seal