3770 Commits

Author SHA1 Message Date
Arthur Meyre
268371fda6 feat(tfhe): add SeededGlweCiphertext 2023-01-02 13:42:09 +01:00
Arthur Meyre
d773d3e7ff feat(tfhe): add CompressedPublicKey for Shortint 2023-01-02 13:42:09 +01:00
Arthur Meyre
d2392e887f feat(tfhe): js tests, remove server key requirement for shortint PK 2023-01-02 13:42:09 +01:00
Arthur Meyre
6cf14a5161 feat(core): add SeededLwePublicKey 2023-01-02 13:42:09 +01:00
Arthur Meyre
ae76230bd9 feat(core): add SeededLweCiphertextList 2023-01-02 13:42:09 +01:00
Arthur Meyre
cbf846dea7 chore(docs): fix a clippy lint for docstrings 2023-01-02 13:42:09 +01:00
Arthur Meyre
952f70fdf9 chore(tfhe): rename lwe_linear_algebra algorithms 2023-01-02 13:42:09 +01:00
Arthur Meyre
914007383f chore(ci): fix shellcheck lints in workflows 2023-01-02 13:42:09 +01:00
Arthur Meyre
3fd6b0d917 chore(ci): update m1 workflow 2023-01-02 13:42:09 +01:00
Arthur Meyre
fd4139dadc chore(ci): target to check all targets (bench, test, etc.) for clippy lints 2023-01-02 13:42:09 +01:00
Arthur Meyre
5c81e04c0b docs(tfhe): add various docstrings
- add docstring for lwe_keyswitch
- add docstring for lwe_keyswitch_key_generation
- add docstring for lwe_secret_key_generation
2023-01-02 13:42:09 +01:00
Arthur Meyre
c6fb496ea1 chore(ci): restore boolean tests on CPU machine
- fix exit code of toolchain installation in case of failure
2023-01-02 13:42:09 +01:00
Arthur Meyre
d7226bcfb9 docs(tfhe): add docstrings for lwe_encryption 2023-01-02 13:42:09 +01:00
Arthur Meyre
f792cc2737 fix(tfhe): fix various docstring content and LweMask creation bug 2023-01-02 13:42:09 +01:00
Arthur Meyre
3a2434b5ff chore(tfhe): rename some buffers to avoid confusion about their usage 2023-01-02 13:42:09 +01:00
Arthur Meyre
712af5d2b9 docs(tfhe): add docstring for glwe_sample_extraction 2023-01-02 13:42:09 +01:00
Arthur Meyre
2bdad26a9a docs(tfhe): add PolynomialList docstrings 2023-01-02 13:42:09 +01:00
Arthur Meyre
bd1a5b9a87 docs(tfhe): add docstring for Polynomial 2023-01-02 13:42:09 +01:00
Arthur Meyre
ad59566621 fix(tfhe): make seeders module public 2023-01-02 13:42:09 +01:00
Arthur Meyre
62803dfb82 docs(tfhe): add docstring for glwe_secret_key_generation module 2023-01-02 13:42:09 +01:00
Arthur Meyre
913f1d517a docs(tfhe): add glwe encryption formal definitions and docstrings
- correct some an -> a
2023-01-02 13:42:09 +01:00
Arthur Meyre
e624a74871 chore(docs): fix GGSW docstring to have actual GlweSecretKey generation 2023-01-02 13:42:09 +01:00
Arthur Meyre
5d52a23c0b docs(tfhe): add link for GGSW encryption algorithm definition
- document helper function for ggsw encryption
2023-01-02 13:42:09 +01:00
Arthur Meyre
a6091682d1 docs(tfhe): docstring for Plaintext
- add more sensible bounds for Plaintext and add PlaintextRef and
PlaintextRefMut for a more homogeneous and less confusing dev experience
2023-01-02 13:42:09 +01:00
J-B Orfila
7e3cc2d6e9 docs(crypto_api): add ggsw encryption doctest 2023-01-02 13:42:09 +01:00
Arthur Meyre
0e64b38f30 docs(tfhe): docstring for LweSecretKey 2023-01-02 13:42:09 +01:00
Arthur Meyre
f0165e62d3 docs(tfhe): correct a -> an 2023-01-02 13:42:09 +01:00
Arthur Meyre
db2a7a4582 docs(tfhe): add disclaimer about parameters being toy example parameters 2023-01-02 13:42:09 +01:00
Arthur Meyre
0e1f54ef54 docs(tfhe): add docstrings for LwePublicKey 2023-01-02 13:42:09 +01:00
Arthur Meyre
44091cb038 docs(tfhe): docstring for LwePrivateFunctionalPackingKeyswitchKey 2023-01-02 13:42:09 +01:00
Arthur Meyre
3c6c90b0c5 docs(tfhe): docstring for LwePrivateFunctionalPackingKeyswitchKeyList 2023-01-02 13:42:09 +01:00
Arthur Meyre
c43d84491a docs(tfhe): add LweKeyswitchKey docstring
- fix method naming
2023-01-02 13:42:09 +01:00
Arthur Meyre
4ef7a73efe chore(tools): add tasks tools to escape latex equations in docs
- add all checks to pcc and run that in CI
2023-01-02 13:42:09 +01:00
Arthur Meyre
1a72c4a814 docs(tfhe): add GswCiphertext for formal definitions 2023-01-02 13:42:09 +01:00
Arthur Meyre
d8abb9c2b2 docs(tfhe): add docstrings for LweCiphertext 2023-01-02 13:42:09 +01:00
Arthur Meyre
740dee2267 docs(tfhe): add LweCiphertextList docstring 2023-01-02 13:42:09 +01:00
Arthur Meyre
387c025e90 docs(tfhe): add LweBootstrapKey docstrings
- update wording for `new` functions, the allocated vector is not empty.
2023-01-02 13:42:09 +01:00
Arthur Meyre
a0dee63a2f docs(tfhe): add docstring for GlweSecretKey
- update docstring to indicate useful functions to fill structs
- fix GlweMask docstring
2023-01-02 13:42:09 +01:00
Arthur Meyre
9d9c407f7f chore(tfhe): update wording to use imperative form in docstrings 2023-01-02 13:42:09 +01:00
Arthur Meyre
ff062a33f9 refactor(core): use from_le_bytes for gaussian RNG (see uniform RNG)
- avoids small allocations, uses std::mem::size_of for size
2023-01-02 13:42:09 +01:00
Arthur Meyre
e353af5a72 docs(tfhe): add GlweCiphertext documentation 2023-01-02 13:42:09 +01:00
Arthur Meyre
d274891948 chore(tfhe): finish GlweSize/PolynomialSize ordering consistency 2023-01-02 13:42:09 +01:00
Arthur Meyre
3129d18247 chore(ci): add test compilation checks 2023-01-02 13:42:09 +01:00
Arthur Meyre
59925e4273 docs(tfhe): add docstring for GlweCiphertextList
- uniformize orders of GlweSize and PolynomialSize arguments for GLWE-like
entities
2023-01-02 13:42:09 +01:00
Arthur Meyre
15864202d7 chore(tfhe): change update wording for in place random noise addition 2023-01-02 13:42:09 +01:00
Arthur Meyre
68dce4eeb8 chore(tfhe): change "in place" naming for "assign" following rust style 2023-01-02 13:42:09 +01:00
Arthur Meyre
390fffac88 docs(tfhe): add docstrings for GgswCiphertext, import formal definition 2023-01-02 13:42:09 +01:00
Arthur Meyre
1cb8aa026f chore(tfhe): misc fixes 2023-01-02 13:42:09 +01:00
Arthur Meyre
7db702cebf docs(core): bring back some doc strings for random generators 2023-01-02 13:42:09 +01:00
Arthur Meyre
583bfaa643 feat(tfhe): add karatsuba multiplication for polynomials 2023-01-02 13:42:09 +01:00