This commit is contained in:
Kim Laine (HE/HIM) 2024-05-15 10:14:12 -07:00
Родитель 931b3b5a67 ea8098bb95
Коммит 72d45a6719
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -215,7 +215,7 @@ The examples are available (and identical) in C++ and C#, and are divided into s
It is recommended to read the comments and the code snippets along with command line printout from running an example.
For easier navigation, command line printout provides the line number in the associated source file where the associated code snippets start.
To build the examples, see [Examples, Tests, and Benchmark](#examples-tests-and-benchmark) (C++) and [Building .NET Components](#building-net-components) (C#).
To build the examples, see [Examples, Tests, and Benchmark](#examples-tests-and-benchmarks) (C++) and [Building .NET Components](#building-net-components) (C#).
**Note:** It is impossible to know how to use Microsoft SEAL correctly without studying examples 1–6.
They are designed to provide the reader with the necessary conceptual background on homomorphic encryption.

Просмотреть файл

@ -157,7 +157,7 @@ void example_bfv_basics()
Note that KeyGenerator::create_public_key has another overload that takes
no parameters and returns a Serializable<PublicKey> object. We will discuss
this in `6_serialization.cpp'.
this in `7_serialization.cpp'.
*/
KeyGenerator keygen(context);
SecretKey secret_key = keygen.secret_key();
@ -168,7 +168,7 @@ void example_bfv_basics()
To be able to encrypt we need to construct an instance of Encryptor. Note
that the Encryptor only requires the public key, as expected. It is also
possible to use Microsoft SEAL in secret-key mode by providing the Encryptor
the secret key instead. We will discuss this in `6_serialization.cpp'.
the secret key instead. We will discuss this in `7_serialization.cpp'.
*/
Encryptor encryptor(context, public_key);
@ -218,7 +218,7 @@ void example_bfv_basics()
We then encrypt the plaintext, producing a ciphertext. We note that the
Encryptor::encrypt function has another overload that takes as input only
a plaintext and returns a Serializable<Ciphertext> object. We will discuss
this in `6_serialization.cpp'.
this in `7_serialization.cpp'.
*/
print_line(__LINE__);
Ciphertext x_encrypted;