Simple Encrypted Arithmetic Library (SEAL) y el sello :: Variable de texto cifrado
Estoy usando laSimple Encrypted Arithmetic Library (SEAL) biblioteca de Microsoft Cryptography Research Group. ¿Hay alguna manera de obtener el contenido deseal::Ciphertext variable
? Intenté entender ciphertext.h y ciphertext.cpp y encontré:
/**
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);
Pero no pude encontrar otra opción para obtener el contenido de cualquierseal::Ciphertext variable
que no es un flujo binario o simplemente un puntero a alguna dirección de memoria y lo guarda en una cadena.
Si alguno de ustedes ha descargado la biblioteca SEAL del enlace anterior y la ha extraído sin cambiar nada. Puede encontrar todas las operaciones permitidas enseal::Ciphertext
in SEAL_2.3.1 \ SEAL \ seal \ ciphertext.h y SEAL_2.3.1 \ SEAL \ seal \ ciphertext.cpp