MCPcopy Index your code

hub / github.com/brave/sta-rs / functions

Functions217 in github.com/brave/sta-rs

↓ 50 callersMethodlen
(&self)
ppoprf/src/ggm.rs:27
↓ 36 callersMethodas_bytes
(&self)
ppoprf/src/ppoprf.rs:243
↓ 13 callersMethodas_slice
(&self)
star/src/lib.rs:138
↓ 13 callersMethodsample_local_randomness
(&self, out: &mut [u8])
star/src/lib.rs:438
↓ 12 callersMethodeval
( &self, p: &Point, md: u8, verifiable: bool, )
ppoprf/src/ppoprf.rs:333
↓ 11 callersMethodeval
(&self, input: &[u8], output: &mut [u8])
ppoprf/src/ggm.rs:53
↓ 10 callersMethoddecompress
(&self)
ppoprf/src/ppoprf.rs:239
↓ 10 callersFunctionload_bytes
(bytes: &[u8])
adss/src/lib.rs:51
↓ 10 callersFunctionstore_bytes
(s: &[u8], out: &mut Vec<u8>)
adss/src/lib.rs:46
↓ 9 callersFunctionclient_zipf
( n: usize, s: f64, threshold: u32, epoch: &str, )
star/test-utils/src/lib.rs:27
↓ 8 callersFunctioni2osp2
()
ppoprf/src/ppoprf.rs:619
↓ 8 callersMethodpuncture
(&mut self, md: u8)
ppoprf/src/ppoprf.rs:366
↓ 8 callersMethodsample_oprf_randomness
( &self, oprf_server: &PPOPRFServer, out: &mut [u8], )
star/src/lib.rs:455
↓ 7 callersMethoddealer
(&self, secret: &[u8])
sharks/src/lib.rs:79
↓ 7 callersFunctionend_to_end_verify
(mds: &[u8], md: u8)
ppoprf/src/ppoprf.rs:494
↓ 7 callersFunctionfp_one
()
sharks/src/share_ff.rs:214
↓ 7 callersMethodis_empty
(&self)
star/src/lib.rs:150
↓ 7 callersMethodpuncture
( &mut self, pfx: &Prefix, to_punc: &Prefix, new_prefixes: Vec<(Prefix, Vec<u8>)>, )
ppoprf/src/ggm.rs:103
↓ 7 callersMethodrecover
Given an iterable collection of shares, recovers the original secret. If the number of distinct shares is less than the minimum threshold an `Err` is
sharks/src/lib.rs:105
↓ 6 callersFunctionend_to_end_no_verify
(mds: &[u8], md: u8)
ppoprf/src/ppoprf.rs:481
↓ 6 callersFunctionprepareMessage
* Given a `url` and `page` message to send to the backend, create a random * STAR share and wrap it into a JSON message which can be sent to the back
star-wasm/www/index.js:69
↓ 6 callersMethodretrieve_outputs
(&self, all_messages: &[Message])
star/test-utils/src/lib.rs:74
↓ 6 callersFunctionstrobe_hash
(input: &[u8], label: &str, out: &mut [u8])
ppoprf/src/ppoprf.rs:426
↓ 6 callersFunctiontest_bytes
()
sharks/src/share_ff.rs:320
↓ 4 callersFunctionderive_ske_key
The `derive_ske_key` helper function derives symmetric encryption keys that are used for encrypting/decrypting `Ciphertext` objects during the STAR pr
star/src/lib.rs:479
↓ 4 callersFunctionend_to_end_eval_check_no_proof
( server: &Server, c_input: &[u8], md: u8, )
ppoprf/src/ppoprf.rs:446
↓ 4 callersFunctionfp_one
()
sharks/src/lib.rs:164
↓ 4 callersFunctionfp_one_repr
()
sharks/src/lib.rs:172
↓ 4 callersFunctionfromBase64Fast
(data)
star-wasm/www/index.js:9
↓ 4 callersMethodget
(&self, md: u8)
ppoprf/src/ppoprf.rs:201
↓ 4 callersMethodget_combined_pk_value
(&self, md: u8)
ppoprf/src/ppoprf.rs:205
↓ 4 callersFunctionstrobe_digest
(key: &[u8], ad: &[&[u8]], label: &str, out: &mut [u8])
star/src/lib.rs:485
↓ 4 callersMethodto_bytes
Convert this `AccessStructure` to a byte array.
adss/src/lib.rs:70
↓ 3 callersFunction_fromString
(data)
star-wasm/www/index.js:30
↓ 3 callersFunctionbvcast_u8_to_usize
( bv_u8: &BitVec<u8, bitvec::order::Lsb0>, )
ppoprf/src/ggm.rs:229
↓ 3 callersMethoddealer_rng
This method is useful when `std` is not available. For typical usage see the `dealer` method. Given a `secret` byte slice, returns an `Iterator` alon
sharks/src/lib.rs:44
↓ 3 callersMethoddecrypt
(&self, enc_key_buf: &[u8], label: &str)
star/src/lib.rs:226
↓ 3 callersMethodderive_key
(&self, r1: &[u8])
star/src/lib.rs:427
↓ 3 callersMethodderive_random_values
(&self, randomness: &[u8])
star/src/lib.rs:412
↓ 3 callersFunctionend_to_end_evaluation
The `end_to_end_evaluation` helper function for performs a full PPOPRF protocol evaluation.
ppoprf/benches/bench.rs:156
↓ 3 callersFunctionfp_three
()
sharks/src/share_ff.rs:222
↓ 3 callersFunctionfp_two
()
sharks/src/lib.rs:168
↓ 3 callersFunctionget_evaluator
Returns an iterator over the points of the `polys` polynomials passed as argument. Each item of the iterator is a tuple `(x, [f_1(x), f_2(x)..])` wher
sharks/src/share_ff.rs:85
↓ 3 callersMethodget_message
(&self)
adss/src/lib.rs:253
↓ 3 callersMethodmake_shares
( &self, secret: &[u8], )
sharks/src/lib.rs:145
↓ 3 callersMethodshare
(&self, r1: &[u8], r2: &[u8])
star/src/lib.rs:433
↓ 3 callersFunctionshare_recover
FIXME can we implement collect trait?
star/src/lib.rs:467
↓ 3 callersMethodto_bytes
(&self)
star/src/lib.rs:194
↓ 2 callersFunction_toString
(data)
star-wasm/www/index.js:20
↓ 2 callersMethodbit_eval
(&self, bits: &BitVec, prg_inp: &[u8], output: &mut [u8])
ppoprf/src/ggm.rs:132
↓ 2 callersMethodevaluate
(&self, x: Fp)
sharks/src/share_ff.rs:96
↓ 2 callersMethodfind_prefix
(&self, bv: &BitVec)
ppoprf/src/ggm.rs:92
↓ 2 callersFunctionfp_four_repr
()
sharks/src/lib.rs:184
↓ 2 callersFunctionfp_three_repr
()
sharks/src/lib.rs:180
↓ 2 callersFunctionfp_two
()
sharks/src/share_ff.rs:218
↓ 2 callersFunctionfp_two_repr
()
sharks/src/lib.rs:176
↓ 2 callersMethodgen
(&self, rng: &mut R)
sharks/src/share_ff.rs:107
↓ 2 callersFunctionget_aux_data
(do_it: bool)
star/benches/bench.rs:158
↓ 2 callersMethodget_public_key
(&self)
ppoprf/src/ppoprf.rs:370
↓ 2 callersFunctioninterpolate
Finds the [root of the Lagrange polynomial](https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing#Computationally_efficient_approach). The expected
sharks/src/share_ff.rs:40
↓ 2 callersFunctionload_u32
(bytes: &[u8])
adss/src/lib.rs:36
↓ 2 callersFunctionrandom_polynomial
Generates `k` polynomial coefficients, being the last one `s` and the others randomly generated in the field. Coefficient degrees go from higher to lo
sharks/src/share_ff.rs:71
↓ 2 callersFunctionsample_secret
()
ppoprf/src/ggm.rs:223
↓ 2 callersMethodserialize_to_bincode
(&self)
ppoprf/src/ppoprf.rs:181
↓ 2 callersMethodshare
The `share` function samples a single secret share for the specified `message`.
adss/src/lib.rs:204
↓ 2 callersFunctionstar_no_aux_multiple_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:108
↓ 2 callersFunctionstar_no_aux_single_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:169
↓ 2 callersFunctionstar_rand_with_aux_multiple_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:311
↓ 2 callersFunctionstar_with_aux_multiple_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:231
↓ 2 callersFunctionstore_u32
(u: u32, out: &mut Vec<u8>)
adss/src/lib.rs:32
↓ 2 callersFunctiontoBase64Fast
(data)
star-wasm/www/index.js:4
↓ 2 callersFunctiontoByteArray
(data)
star-wasm/www/index.js:13
↓ 2 callersMethodverify_batch
https://cfrg.github.io/draft-irtf-cfrg-voprf/draft-irtf-cfrg-voprf.html#name-proof-verification
ppoprf/src/ppoprf.rs:78
↓ 1 callersMethodas_vec
(&self)
star/src/lib.rs:142
↓ 1 callersFunctionbenchmark_client
(c: &mut Criterion)
ppoprf/benches/bench.rs:114
↓ 1 callersFunctionbenchmark_client_randomness_sampling
(c: &mut Criterion)
star/benches/bench.rs:19
↓ 1 callersFunctionbenchmark_client_triple_generation
(c: &mut Criterion)
star/benches/bench.rs:39
↓ 1 callersFunctionbenchmark_end_to_end
(c: &mut Criterion)
star/benches/bench.rs:108
↓ 1 callersFunctionbenchmark_ggm
(c: &mut Criterion)
ppoprf/benches/bench.rs:17
↓ 1 callersFunctionbenchmark_ppoprf
(c: &mut Criterion)
ppoprf/benches/bench.rs:50
↓ 1 callersFunctionbenchmark_server
(c: &mut Criterion)
ppoprf/benches/bench.rs:82
↓ 1 callersFunctionbenchmark_server_retrieval
(c: &mut Criterion)
star/benches/bench.rs:83
↓ 1 callersMethodcollect_messages
(&self, messages: &[Message])
star/test-utils/src/lib.rs:148
↓ 1 callersFunctioncreate_share
(measurement: &[u8], threshold: u32, epoch: &str)
star-wasm/src/lib.rs:38
↓ 1 callersFunctionend_to_end_eval_check
( server: &Server, c_input: &[u8], md: u8, )
ppoprf/src/ppoprf.rs:462
↓ 1 callersFunctionfetch_ident
Fetch the server identification string. Acts as a basic availability ping.
ppoprf/examples/client.rs:25
↓ 1 callersFunctionfetch_randomness
Fetch randomness from the server. Acts as a basic round-trip test.
ppoprf/examples/client.rs:52
↓ 1 callersMethodfill_bytes
(&mut self, dest: &mut [u8])
ppoprf/src/strobe_rng.rs:29
↓ 1 callersMethodfill_bytes
(&mut self, dest: &mut [u8])
adss/src/strobe_rng.rs:29
↓ 1 callersMethodfill_bytes
(&mut self, dest: &mut [u8])
star/src/strobe_rng.rs:29
↓ 1 callersMethodfilter_messages
(&self, messages: &[Message])
star/test-utils/src/lib.rs:140
↓ 1 callersFunctionfromUTF8
(bytes)
star-wasm/www/index.js:50
↓ 1 callersFunctionget_messages
(params: &Params, epoch: &str)
star/benches/bench.rs:130
↓ 1 callersFunctiongroup_shares
(serialized_shares: &str, epoch: &str)
star-wasm/src/lib.rs:66
↓ 1 callersMethodkey_recover
( &self, messages: &[Message], enc_key: &mut [u8], )
star/test-utils/src/lib.rs:124
↓ 1 callersFunctionmeasurement_zipf
The `zipf_measurement` function returns a client `Measurement` sampled from Zipf power-law distribution with `n` corresponding to the number of potent
star/test-utils/src/lib.rs:15
↓ 1 callersMethodnext
(&mut self)
sharks/src/share_ff.rs:118
↓ 1 callersMethodpartial_eval
( &self, input_bits: &mut BitVec, output: &mut [u8], )
ppoprf/src/ggm.rs:145
↓ 1 callersFunctionprocessMessages
(messages)
star-wasm/www/index.js:169
↓ 1 callersFunctionrecover
(c: &mut Criterion)
sharks/benches/benchmarks.rs:18
next →1–100 of 217, ranked by callers