Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/brave/sta-rs
/ functions
Functions
217 in github.com/brave/sta-rs
⨍
Functions
217
◇
Types & classes
43
↓ 50 callers
Method
len
(&self)
ppoprf/src/ggm.rs:27
↓ 36 callers
Method
as_bytes
(&self)
ppoprf/src/ppoprf.rs:243
↓ 13 callers
Method
as_slice
(&self)
star/src/lib.rs:138
↓ 13 callers
Method
sample_local_randomness
(&self, out: &mut [u8])
star/src/lib.rs:438
↓ 12 callers
Method
eval
( &self, p: &Point, md: u8, verifiable: bool, )
ppoprf/src/ppoprf.rs:333
↓ 11 callers
Method
eval
(&self, input: &[u8], output: &mut [u8])
ppoprf/src/ggm.rs:53
↓ 10 callers
Method
decompress
(&self)
ppoprf/src/ppoprf.rs:239
↓ 10 callers
Function
load_bytes
(bytes: &[u8])
adss/src/lib.rs:51
↓ 10 callers
Function
store_bytes
(s: &[u8], out: &mut Vec<u8>)
adss/src/lib.rs:46
↓ 9 callers
Function
client_zipf
( n: usize, s: f64, threshold: u32, epoch: &str, )
star/test-utils/src/lib.rs:27
↓ 8 callers
Function
i2osp2
()
ppoprf/src/ppoprf.rs:619
↓ 8 callers
Method
puncture
(&mut self, md: u8)
ppoprf/src/ppoprf.rs:366
↓ 8 callers
Method
sample_oprf_randomness
( &self, oprf_server: &PPOPRFServer, out: &mut [u8], )
star/src/lib.rs:455
↓ 7 callers
Method
dealer
(&self, secret: &[u8])
sharks/src/lib.rs:79
↓ 7 callers
Function
end_to_end_verify
(mds: &[u8], md: u8)
ppoprf/src/ppoprf.rs:494
↓ 7 callers
Function
fp_one
()
sharks/src/share_ff.rs:214
↓ 7 callers
Method
is_empty
(&self)
star/src/lib.rs:150
↓ 7 callers
Method
puncture
( &mut self, pfx: &Prefix, to_punc: &Prefix, new_prefixes: Vec<(Prefix, Vec<u8>)>, )
ppoprf/src/ggm.rs:103
↓ 7 callers
Method
recover
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 callers
Function
end_to_end_no_verify
(mds: &[u8], md: u8)
ppoprf/src/ppoprf.rs:481
↓ 6 callers
Function
prepareMessage
* 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 callers
Method
retrieve_outputs
(&self, all_messages: &[Message])
star/test-utils/src/lib.rs:74
↓ 6 callers
Function
strobe_hash
(input: &[u8], label: &str, out: &mut [u8])
ppoprf/src/ppoprf.rs:426
↓ 6 callers
Function
test_bytes
()
sharks/src/share_ff.rs:320
↓ 4 callers
Function
derive_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 callers
Function
end_to_end_eval_check_no_proof
( server: &Server, c_input: &[u8], md: u8, )
ppoprf/src/ppoprf.rs:446
↓ 4 callers
Function
fp_one
()
sharks/src/lib.rs:164
↓ 4 callers
Function
fp_one_repr
()
sharks/src/lib.rs:172
↓ 4 callers
Function
fromBase64Fast
(data)
star-wasm/www/index.js:9
↓ 4 callers
Method
get
(&self, md: u8)
ppoprf/src/ppoprf.rs:201
↓ 4 callers
Method
get_combined_pk_value
(&self, md: u8)
ppoprf/src/ppoprf.rs:205
↓ 4 callers
Function
strobe_digest
(key: &[u8], ad: &[&[u8]], label: &str, out: &mut [u8])
star/src/lib.rs:485
↓ 4 callers
Method
to_bytes
Convert this `AccessStructure` to a byte array.
adss/src/lib.rs:70
↓ 3 callers
Function
_fromString
(data)
star-wasm/www/index.js:30
↓ 3 callers
Function
bvcast_u8_to_usize
( bv_u8: &BitVec<u8, bitvec::order::Lsb0>, )
ppoprf/src/ggm.rs:229
↓ 3 callers
Method
dealer_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 callers
Method
decrypt
(&self, enc_key_buf: &[u8], label: &str)
star/src/lib.rs:226
↓ 3 callers
Method
derive_key
(&self, r1: &[u8])
star/src/lib.rs:427
↓ 3 callers
Method
derive_random_values
(&self, randomness: &[u8])
star/src/lib.rs:412
↓ 3 callers
Function
end_to_end_evaluation
The `end_to_end_evaluation` helper function for performs a full PPOPRF protocol evaluation.
ppoprf/benches/bench.rs:156
↓ 3 callers
Function
fp_three
()
sharks/src/share_ff.rs:222
↓ 3 callers
Function
fp_two
()
sharks/src/lib.rs:168
↓ 3 callers
Function
get_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 callers
Method
get_message
(&self)
adss/src/lib.rs:253
↓ 3 callers
Method
make_shares
( &self, secret: &[u8], )
sharks/src/lib.rs:145
↓ 3 callers
Method
share
(&self, r1: &[u8], r2: &[u8])
star/src/lib.rs:433
↓ 3 callers
Function
share_recover
FIXME can we implement collect trait?
star/src/lib.rs:467
↓ 3 callers
Method
to_bytes
(&self)
star/src/lib.rs:194
↓ 2 callers
Function
_toString
(data)
star-wasm/www/index.js:20
↓ 2 callers
Method
bit_eval
(&self, bits: &BitVec, prg_inp: &[u8], output: &mut [u8])
ppoprf/src/ggm.rs:132
↓ 2 callers
Method
evaluate
(&self, x: Fp)
sharks/src/share_ff.rs:96
↓ 2 callers
Method
find_prefix
(&self, bv: &BitVec)
ppoprf/src/ggm.rs:92
↓ 2 callers
Function
fp_four_repr
()
sharks/src/lib.rs:184
↓ 2 callers
Function
fp_three_repr
()
sharks/src/lib.rs:180
↓ 2 callers
Function
fp_two
()
sharks/src/share_ff.rs:218
↓ 2 callers
Function
fp_two_repr
()
sharks/src/lib.rs:176
↓ 2 callers
Method
gen
(&self, rng: &mut R)
sharks/src/share_ff.rs:107
↓ 2 callers
Function
get_aux_data
(do_it: bool)
star/benches/bench.rs:158
↓ 2 callers
Method
get_public_key
(&self)
ppoprf/src/ppoprf.rs:370
↓ 2 callers
Function
interpolate
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 callers
Function
load_u32
(bytes: &[u8])
adss/src/lib.rs:36
↓ 2 callers
Function
random_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 callers
Function
sample_secret
()
ppoprf/src/ggm.rs:223
↓ 2 callers
Method
serialize_to_bincode
(&self)
ppoprf/src/ppoprf.rs:181
↓ 2 callers
Method
share
The `share` function samples a single secret share for the specified `message`.
adss/src/lib.rs:204
↓ 2 callers
Function
star_no_aux_multiple_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:108
↓ 2 callers
Function
star_no_aux_single_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:169
↓ 2 callers
Function
star_rand_with_aux_multiple_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:311
↓ 2 callers
Function
star_with_aux_multiple_block
(oprf_server: Option<PPOPRFServer>)
star/tests/e2e.rs:231
↓ 2 callers
Function
store_u32
(u: u32, out: &mut Vec<u8>)
adss/src/lib.rs:32
↓ 2 callers
Function
toBase64Fast
(data)
star-wasm/www/index.js:4
↓ 2 callers
Function
toByteArray
(data)
star-wasm/www/index.js:13
↓ 2 callers
Method
verify_batch
https://cfrg.github.io/draft-irtf-cfrg-voprf/draft-irtf-cfrg-voprf.html#name-proof-verification
ppoprf/src/ppoprf.rs:78
↓ 1 callers
Method
as_vec
(&self)
star/src/lib.rs:142
↓ 1 callers
Function
benchmark_client
(c: &mut Criterion)
ppoprf/benches/bench.rs:114
↓ 1 callers
Function
benchmark_client_randomness_sampling
(c: &mut Criterion)
star/benches/bench.rs:19
↓ 1 callers
Function
benchmark_client_triple_generation
(c: &mut Criterion)
star/benches/bench.rs:39
↓ 1 callers
Function
benchmark_end_to_end
(c: &mut Criterion)
star/benches/bench.rs:108
↓ 1 callers
Function
benchmark_ggm
(c: &mut Criterion)
ppoprf/benches/bench.rs:17
↓ 1 callers
Function
benchmark_ppoprf
(c: &mut Criterion)
ppoprf/benches/bench.rs:50
↓ 1 callers
Function
benchmark_server
(c: &mut Criterion)
ppoprf/benches/bench.rs:82
↓ 1 callers
Function
benchmark_server_retrieval
(c: &mut Criterion)
star/benches/bench.rs:83
↓ 1 callers
Method
collect_messages
(&self, messages: &[Message])
star/test-utils/src/lib.rs:148
↓ 1 callers
Function
create_share
(measurement: &[u8], threshold: u32, epoch: &str)
star-wasm/src/lib.rs:38
↓ 1 callers
Function
end_to_end_eval_check
( server: &Server, c_input: &[u8], md: u8, )
ppoprf/src/ppoprf.rs:462
↓ 1 callers
Function
fetch_ident
Fetch the server identification string. Acts as a basic availability ping.
ppoprf/examples/client.rs:25
↓ 1 callers
Function
fetch_randomness
Fetch randomness from the server. Acts as a basic round-trip test.
ppoprf/examples/client.rs:52
↓ 1 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
ppoprf/src/strobe_rng.rs:29
↓ 1 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
adss/src/strobe_rng.rs:29
↓ 1 callers
Method
fill_bytes
(&mut self, dest: &mut [u8])
star/src/strobe_rng.rs:29
↓ 1 callers
Method
filter_messages
(&self, messages: &[Message])
star/test-utils/src/lib.rs:140
↓ 1 callers
Function
fromUTF8
(bytes)
star-wasm/www/index.js:50
↓ 1 callers
Function
get_messages
(params: &Params, epoch: &str)
star/benches/bench.rs:130
↓ 1 callers
Function
group_shares
(serialized_shares: &str, epoch: &str)
star-wasm/src/lib.rs:66
↓ 1 callers
Method
key_recover
( &self, messages: &[Message], enc_key: &mut [u8], )
star/test-utils/src/lib.rs:124
↓ 1 callers
Function
measurement_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 callers
Method
next
(&mut self)
sharks/src/share_ff.rs:118
↓ 1 callers
Method
partial_eval
( &self, input_bits: &mut BitVec, output: &mut [u8], )
ppoprf/src/ggm.rs:145
↓ 1 callers
Function
processMessages
(messages)
star-wasm/www/index.js:169
↓ 1 callers
Function
recover
(c: &mut Criterion)
sharks/benches/benchmarks.rs:18
next →
1–100 of 217, ranked by callers