|
52 | 52 | //! ``` |
53 | 53 | //! # #[cfg(feature = "ristretto255")] |
54 | 54 | //! # type CipherSuite = voprf::Ristretto255; |
55 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 55 | +//! # #[cfg(not(feature = "ristretto255"))] |
56 | 56 | //! # type CipherSuite = p256::NistP256; |
57 | 57 | //! use rand::rngs::OsRng; |
58 | 58 | //! use rand::RngCore; |
|
74 | 74 | //! ``` |
75 | 75 | //! # #[cfg(feature = "ristretto255")] |
76 | 76 | //! # type CipherSuite = voprf::Ristretto255; |
77 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 77 | +//! # #[cfg(not(feature = "ristretto255"))] |
78 | 78 | //! # type CipherSuite = p256::NistP256; |
79 | 79 | //! use rand::rngs::OsRng; |
80 | 80 | //! use rand::RngCore; |
|
96 | 96 | //! ``` |
97 | 97 | //! # #[cfg(feature = "ristretto255")] |
98 | 98 | //! # type CipherSuite = voprf::Ristretto255; |
99 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 99 | +//! # #[cfg(not(feature = "ristretto255"))] |
100 | 100 | //! # type CipherSuite = p256::NistP256; |
101 | 101 | //! # use voprf::NonVerifiableClient; |
102 | 102 | //! # use rand::{rngs::OsRng, RngCore}; |
|
124 | 124 | //! ``` |
125 | 125 | //! # #[cfg(feature = "ristretto255")] |
126 | 126 | //! # type CipherSuite = voprf::Ristretto255; |
127 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 127 | +//! # #[cfg(not(feature = "ristretto255"))] |
128 | 128 | //! # type CipherSuite = p256::NistP256; |
129 | 129 | //! # use voprf::NonVerifiableClient; |
130 | 130 | //! # use rand::{rngs::OsRng, RngCore}; |
|
171 | 171 | //! ``` |
172 | 172 | //! # #[cfg(feature = "ristretto255")] |
173 | 173 | //! # type CipherSuite = voprf::Ristretto255; |
174 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 174 | +//! # #[cfg(not(feature = "ristretto255"))] |
175 | 175 | //! # type CipherSuite = p256::NistP256; |
176 | 176 | //! use rand::rngs::OsRng; |
177 | 177 | //! use rand::RngCore; |
|
200 | 200 | //! ``` |
201 | 201 | //! # #[cfg(feature = "ristretto255")] |
202 | 202 | //! # type CipherSuite = voprf::Ristretto255; |
203 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 203 | +//! # #[cfg(not(feature = "ristretto255"))] |
204 | 204 | //! # type CipherSuite = p256::NistP256; |
205 | 205 | //! use rand::rngs::OsRng; |
206 | 206 | //! use rand::RngCore; |
|
222 | 222 | //! ``` |
223 | 223 | //! # #[cfg(feature = "ristretto255")] |
224 | 224 | //! # type CipherSuite = voprf::Ristretto255; |
225 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 225 | +//! # #[cfg(not(feature = "ristretto255"))] |
226 | 226 | //! # type CipherSuite = p256::NistP256; |
227 | 227 | //! # use voprf::VerifiableClient; |
228 | 228 | //! # use rand::{rngs::OsRng, RngCore}; |
|
251 | 251 | //! ``` |
252 | 252 | //! # #[cfg(feature = "ristretto255")] |
253 | 253 | //! # type CipherSuite = voprf::Ristretto255; |
254 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 254 | +//! # #[cfg(not(feature = "ristretto255"))] |
255 | 255 | //! # type CipherSuite = p256::NistP256; |
256 | 256 | //! # use voprf::VerifiableClient; |
257 | 257 | //! # use rand::{rngs::OsRng, RngCore}; |
|
304 | 304 | //! ``` |
305 | 305 | //! # #[cfg(feature = "ristretto255")] |
306 | 306 | //! # type CipherSuite = voprf::Ristretto255; |
307 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 307 | +//! # #[cfg(not(feature = "ristretto255"))] |
308 | 308 | //! # type CipherSuite = p256::NistP256; |
309 | 309 | //! # use voprf::VerifiableClient; |
310 | 310 | //! # use rand::{rngs::OsRng, RngCore}; |
|
328 | 328 | //! ``` |
329 | 329 | //! # #[cfg(feature = "ristretto255")] |
330 | 330 | //! # type CipherSuite = voprf::Ristretto255; |
331 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 331 | +//! # #[cfg(not(feature = "ristretto255"))] |
332 | 332 | //! # type CipherSuite = p256::NistP256; |
333 | 333 | //! # use voprf::{VerifiableServerBatchEvaluatePrepareResult, VerifiableServerBatchEvaluateFinishResult, VerifiableClient}; |
334 | 334 | //! # use rand::{rngs::OsRng, RngCore}; |
|
367 | 367 | //! # #[cfg(feature = "alloc")] { |
368 | 368 | //! # #[cfg(feature = "ristretto255")] |
369 | 369 | //! # type CipherSuite = voprf::Ristretto255; |
370 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 370 | +//! # #[cfg(not(feature = "ristretto255"))] |
371 | 371 | //! # type CipherSuite = p256::NistP256; |
372 | 372 | //! # use voprf::{VerifiableServerBatchEvaluateResult, VerifiableClient}; |
373 | 373 | //! # use rand::{rngs::OsRng, RngCore}; |
|
402 | 402 | //! # #[cfg(feature = "alloc")] { |
403 | 403 | //! # #[cfg(feature = "ristretto255")] |
404 | 404 | //! # type CipherSuite = voprf::Ristretto255; |
405 | | -//! # #[cfg(all(feature = "p256", not(feature = "ristretto255")))] |
| 405 | +//! # #[cfg(not(feature = "ristretto255"))] |
406 | 406 | //! # type CipherSuite = p256::NistP256; |
407 | 407 | //! # use voprf::{VerifiableServerBatchEvaluateResult, VerifiableClient}; |
408 | 408 | //! # use rand::{rngs::OsRng, RngCore}; |
|
458 | 458 | //! - The `alloc` feature requires Rusts [`alloc`] crate and enables batching |
459 | 459 | //! VOPRF evaluations. |
460 | 460 | //! |
461 | | -//! - The `p256` feature enables using [`NistP256`](p256::NistP256) as the |
462 | | -//! underlying group for the [Group] choice. |
463 | | -//! |
464 | 461 | //! - The `serde` feature, enabled by default, provides convenience functions |
465 | 462 | //! for serializing and deserializing with [serde](https://serde.rs/). |
466 | 463 | //! |
|
470 | 467 | //! that need access to these raw values and are able to perform the necessary |
471 | 468 | //! validations on them (such as being valid group elements). |
472 | 469 | //! |
| 470 | +//! - The `ristretto255-ciphersuite` features enables using [`Ristretto255`] as |
| 471 | +//! a [`CipherSuite`]. |
| 472 | +//! |
473 | 473 | //! - The `ristretto255` feature enables using [`Ristretto255`] as the |
474 | 474 | //! underlying group for the [Group] choice. A backend feature, which are |
475 | 475 | //! re-exported from [curve25519-dalek] and allow for selecting the |
|
0 commit comments