summaryrefslogtreecommitdiffstats
path: root/third_party/rust/prio/src/lib.rs
blob: f0e00de3c0ea1d712ac147b2d4e05ea28eeae4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2020 Apple Inc.
// SPDX-License-Identifier: MPL-2.0

#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]

//! Libprio-rs
//!
//! Implementation of the [Prio](https://crypto.stanford.edu/prio/) private data aggregation
//! protocol. For now we only support 0 / 1 vectors.

pub mod benchmarked;
#[cfg(feature = "prio2")]
pub mod client;
#[cfg(feature = "prio2")]
pub mod encrypt;
#[cfg(feature = "prio2")]
pub mod server;

pub mod codec;
mod fft;
pub mod field;
pub mod flp;
mod fp;
mod polynomial;
mod prng;
// Module test_vector depends on crate `rand` so we make it an optional feature
// to spare most clients the extra dependency.
#[cfg(all(any(feature = "test-util", test), feature = "prio2"))]
pub mod test_vector;
#[cfg(feature = "prio2")]
pub mod util;
pub mod vdaf;