MCPcopy Create free account

hub / github.com/brech1/keaki / functions

Functions57 in github.com/brech1/keaki

↓ 15 callersFunctioncommit
Commits to a polynomial.
src/kzg.rs:89
↓ 15 callersFunctionopen
Computes an opening (proof) for a polynomial at a point.
src/kzg.rs:104
↓ 9 callersFunctionverify
Verifies an opening proof for a polynomial commitment at a point.
src/kzg.rs:127
↓ 7 callersMethodload
Loads the file.
src/kzg/ptau.rs:110
↓ 4 callersFunctionencapsulate
Encapsulation. Generates a key for a commitment and a point-value pair.
src/kem.rs:13
↓ 4 callersMethodget
Returns the section information.
src/kzg/ptau.rs:148
↓ 4 callersFunctionsetup_kzg
(rng: &mut impl Rng)
src/kem.rs:82
↓ 2 callersFunctionopen_fk
Computes n openings using the FK23 algorithm. The amount of openings will depend on the length of the polynomial. The openings points are the roots of
src/kzg.rs:157
↓ 2 callersMethodsection_index
Returns the section index for the section ID.
src/kzg/ptau.rs:55
↓ 2 callersFunctionsetup_kzg
(rng: &mut impl Rng)
src/enc.rs:65
↓ 1 callersMethodg1_pow
Returns the powers of tau in G1.
src/kzg.rs:73
↓ 1 callersMethodreceive
( &self, encrypted_sets: Vec<Vec<Ciphertext<E>>>, )
tests/laconic_ot.rs:39
↓ 1 callersMethodsend
( &self, rng: &mut impl rand::Rng, private_set: &[Vec<Vec<u8>>], )
tests/laconic_ot.rs:75
↓ 1 callersMethodtau_g2
Returns [tau]_2
src/kzg.rs:83
↓ 1 callersFunctionvec_commit
Vector commitment. Returns the commitment and the proofs for each index.
src/vec.rs:22
↓ 1 callersFunctionverify_metadata
Verifies file metadata.
src/kzg/ptau.rs:325
Functiondecapsulate
Decapsulation. Generates a key for an opening and a ciphertext. The generated key will be the same as the one generated during encapsulation for a val
src/kem.rs:55
Functiondecrypt
Decrypts a ciphertext with a proof. Returns the decrypted message.
src/enc.rs:44
Functionencrypt
Encrypts a message using a commitment, point, and value. Returns two ciphertexts: - `key_ct`: used to generate the decryption key. - `msg_ct`: the enc
src/enc.rs:19
Methodfilepath
Returns the path to the file.
src/kzg/ptau.rs:105
Methodg1_aff
Returns the powers of tau in G1 - Affine representation.
src/kzg.rs:78
Functionget_powers_from_file
Returns the G1 and G2 powers of tau.
src/kzg/ptau.rs:347
Methodnew
Creates a new instance.
src/kzg/ptau.rs:100
Methodnew
( kzg_setup: KZGSetup<E>, rng: &mut impl rand::Rng, choices: Vec<E::ScalarField>,
tests/laconic_ot.rs:25
Methodnew_from_data
Create a new instance
src/kzg/ptau.rs:168
Methodnew_from_file
Setup from `ptau` file.
src/kzg.rs:33
Methodparse
Parse the sections from the file data.
src/kzg/ptau.rs:131
Methodsetup
Setup from secret. Don't use this.
src/kzg.rs:55
Functiontest_decapsulation_invalid_ciphertext
()
src/kem.rs:159
Functiontest_decapsulation_invalid_proof
()
src/kem.rs:119
Functiontest_decapsulation_wrong_point
()
src/kem.rs:193
Functiontest_decrypt_invalid_proof
()
src/enc.rs:100
Functiontest_encapsulation_decapsulation
()
src/kem.rs:88
Functiontest_encrypt
()
src/enc.rs:71
Functiontest_file_loader
()
src/kzg/ptau.rs:401
Functiontest_file_sections
()
src/kzg/ptau.rs:427
Functiontest_header_section
()
src/kzg/ptau.rs:461
Functiontest_kzg_commit
()
src/kzg.rs:242
Functiontest_kzg_commit_polynomial_too_large
()
src/kzg.rs:261
Functiontest_kzg_open_and_verify
()
src/kzg.rs:311
Functiontest_kzg_open_fk
()
src/kzg.rs:471
Functiontest_kzg_open_polynomial_too_large
()
src/kzg.rs:280
Functiontest_kzg_setup
()
src/kzg.rs:219
Functiontest_kzg_verify_wrong_alpha
()
src/kzg.rs:334
Functiontest_kzg_verify_wrong_beta
()
src/kzg.rs:366
Functiontest_kzg_verify_wrong_commitment
()
src/kzg.rs:438
Functiontest_kzg_verify_wrong_proof
()
src/kzg.rs:398
Functiontest_laconic_ot
()
tests/laconic_ot.rs:127
Functiontest_powers_of_tau
()
src/kzg/ptau.rs:509
Functiontest_section_id
()
src/kzg/ptau.rs:393
Functiontest_section_info
()
src/kzg/ptau.rs:417
Functiontest_tau_g1_section
()
src/kzg/ptau.rs:477
Functiontest_tau_g2_section
()
src/kzg/ptau.rs:493
Functiontest_verify_metadata
()
src/kzg/ptau.rs:409
Methodtry_from
(value: u8)
src/kzg/ptau.rs:75
Functionvec_decrypt
Vector Decryption.
src/vec.rs:72
Functionvec_encrypt
Vector Encryption.
src/vec.rs:52