зеркало из https://github.com/microsoft/SEAL.git
Merge branch 'contrib'
This commit is contained in:
Коммит
72d45a6719
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче