chore: format properly
Rust CI / cargo fmt (push) Successful in 3s
Rust CI / test (1.87.0 / no backend / no frontend) (push) Failing after 40s
Rust CI / test (stable / no backend / no frontend) (push) Failing after 37s
Rust CI / cargo clippy (push) Failing after 23s
Rust CI / test (stable / no backend / --features danger) (push) Failing after 38s
Rust CI / test (1.87.0 / no backend / --features danger) (push) Failing after 39s
Rust CI / test (1.87.0 / no backend / --features serde) (push) Failing after 41s
Rust CI / test (1.87.0 / --features ristretto255-ciphersuite / --features danger) (push) Has been cancelled
Rust CI / test (stable / --features ristretto255-ciphersuite / --features danger) (push) Has been cancelled
Rust CI / test (stable / --features ristretto255-ciphersuite / no frontend) (push) Has been cancelled
Rust CI / test (1.87.0 / --features ristretto255-ciphersuite / --features serde) (push) Has been cancelled
Rust CI / test (stable / --features ristretto255-ciphersuite / --features serde) (push) Has been cancelled
Rust CI / cargo audit (push) Has been cancelled
Rust CI / test (stable / no backend / --features serde) (push) Failing after 37s
Rust CI / test (1.87.0 / --features ristretto255-ciphersuite / no frontend) (push) Successful in 1m41s
Rust CI / cargo fmt (pull_request) Has been cancelled
Rust CI / cargo clippy (pull_request) Has been cancelled
Rust CI / test (1.87.0 / no backend / no frontend) (pull_request) Has been cancelled
Rust CI / test (stable / no backend / no frontend) (pull_request) Has been cancelled
Rust CI / test (1.87.0 / no backend / --features danger) (pull_request) Has been cancelled
Rust CI / test (stable / no backend / --features danger) (pull_request) Has been cancelled
Rust CI / test (1.87.0 / no backend / --features serde) (pull_request) Has been cancelled
Rust CI / test (stable / no backend / --features serde) (pull_request) Has been cancelled
Rust CI / test (1.87.0 / --features ristretto255-ciphersuite / no frontend) (pull_request) Has been cancelled
Rust CI / test (stable / --features ristretto255-ciphersuite / no frontend) (pull_request) Has been cancelled
Rust CI / test (1.87.0 / --features ristretto255-ciphersuite / --features danger) (pull_request) Has been cancelled
Rust CI / test (stable / --features ristretto255-ciphersuite / --features danger) (pull_request) Has been cancelled
Rust CI / test (1.87.0 / --features ristretto255-ciphersuite / --features serde) (pull_request) Has been cancelled
Rust CI / test (stable / --features ristretto255-ciphersuite / --features serde) (pull_request) Has been cancelled
Rust CI / no-std (thumbv6m-none-eabi / no backend) (pull_request) Has been cancelled
Rust CI / no-std (wasm32-unknown-unknown / no backend) (pull_request) Has been cancelled
Rust CI / no-std (thumbv6m-none-eabi / --features ristretto255-ciphersuite) (pull_request) Has been cancelled
Rust CI / no-std (wasm32-unknown-unknown / --features ristretto255-ciphersuite) (pull_request) Has been cancelled
Rust CI / cargo audit (pull_request) Has been cancelled
Rust CI / no-std (thumbv6m-none-eabi / no backend) (push) Has been cancelled
Rust CI / no-std (wasm32-unknown-unknown / no backend) (push) Has been cancelled
Rust CI / no-std (thumbv6m-none-eabi / --features ristretto255-ciphersuite) (push) Has been cancelled
Rust CI / no-std (wasm32-unknown-unknown / --features ristretto255-ciphersuite) (push) Has been cancelled

This commit is contained in:
2026-06-27 15:46:43 +02:00
parent 39dc34758e
commit 672698e2e6
8 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -13,8 +13,8 @@ use core::ops::Mul;
use digest::block_api::BlockSizeUser; use digest::block_api::BlockSizeUser;
use digest::typenum::{IsLess, IsLessOrEqual, U256}; use digest::typenum::{IsLess, IsLessOrEqual, U256};
use digest::{Digest, FixedOutput, HashMarker, OutputSizeUser}; use digest::{Digest, FixedOutput, HashMarker, OutputSizeUser};
use hybrid_array::typenum::{IsGreaterOrEqual, Prod, True, U2};
use hybrid_array::ArraySize; use hybrid_array::ArraySize;
use hybrid_array::typenum::{IsGreaterOrEqual, Prod, True, U2};
/// Configures the underlying primitives used in VOPRF /// Configures the underlying primitives used in VOPRF
pub trait CipherSuite pub trait CipherSuite
+1 -1
View File
@@ -13,7 +13,7 @@ use core::ops::Add;
use derive_where::derive_where; use derive_where::derive_where;
use digest::{Digest, Output, OutputSizeUser}; use digest::{Digest, Output, OutputSizeUser};
use hybrid_array::typenum::{IsLess, Unsigned, U2, U256, U9}; use hybrid_array::typenum::{IsLess, U2, U9, U256, Unsigned};
use hybrid_array::{Array, ArrayN, ArraySize}; use hybrid_array::{Array, ArrayN, ArraySize};
use rand_core::{TryCryptoRng, TryRng}; use rand_core::{TryCryptoRng, TryRng};
use subtle::ConstantTimeEq; use subtle::ConstantTimeEq;
+1 -1
View File
@@ -16,7 +16,7 @@ use elliptic_curve::{
AffinePoint, Field, FieldBytes, FieldBytesSize, Group as _, ProjectivePoint, PublicKey, Scalar, AffinePoint, Field, FieldBytes, FieldBytesSize, Group as _, ProjectivePoint, PublicKey, Scalar,
SecretKey, SecretKey,
}; };
use hash2curve::{hash_to_scalar, ExpandMsgXmd, GroupDigest}; use hash2curve::{ExpandMsgXmd, GroupDigest, hash_to_scalar};
use hybrid_array::typenum::{IsGreaterOrEqual, Prod, Sum, True, U2}; use hybrid_array::typenum::{IsGreaterOrEqual, Prod, Sum, True, U2};
use hybrid_array::{Array, ArraySize}; use hybrid_array::{Array, ArraySize};
use rand_core::TryCryptoRng; use rand_core::TryCryptoRng;
+3 -3
View File
@@ -15,10 +15,10 @@ use curve25519_dalek::traits::Identity;
use digest::block_api::BlockSizeUser; use digest::block_api::BlockSizeUser;
use digest::{FixedOutput, HashMarker}; use digest::{FixedOutput, HashMarker};
use hash2curve::{ExpandMsg, ExpandMsgXmd, Expander}; use hash2curve::{ExpandMsg, ExpandMsgXmd, Expander};
use hybrid_array::typenum::{
IsGreaterOrEqual, IsLess, IsLessOrEqual, Prod, True, U16, U2, U256, U32, U64,
};
use hybrid_array::Array; use hybrid_array::Array;
use hybrid_array::typenum::{
IsGreaterOrEqual, IsLess, IsLessOrEqual, Prod, True, U2, U16, U32, U64, U256,
};
use rand_core::{TryCryptoRng, TryRng}; use rand_core::{TryCryptoRng, TryRng};
use subtle::ConstantTimeEq; use subtle::ConstantTimeEq;
+5 -5
View File
@@ -12,13 +12,13 @@ use core::iter::{self, Map};
use derive_where::derive_where; use derive_where::derive_where;
use digest::{Digest, Output}; use digest::{Digest, Output};
use hybrid_array::typenum::Unsigned;
use hybrid_array::Array; use hybrid_array::Array;
use hybrid_array::typenum::Unsigned;
use rand_core::{TryCryptoRng, TryRng}; use rand_core::{TryCryptoRng, TryRng};
use crate::common::{ use crate::common::{
derive_key_internal, deterministic_blind_unchecked, hash_to_group, i2osp_2, BlindedElement, EvaluationElement, Mode, STR_FINALIZE, derive_key_internal,
server_evaluate_hash_input, BlindedElement, EvaluationElement, Mode, STR_FINALIZE, deterministic_blind_unchecked, hash_to_group, i2osp_2, server_evaluate_hash_input,
}; };
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
use crate::serialization::serde::Scalar; use crate::serialization::serde::Scalar;
@@ -267,12 +267,12 @@ fn finalize_after_unblind<
mod tests { mod tests {
use core::ptr; use core::ptr;
use rand::rngs::SysRng;
use rand::TryRng; use rand::TryRng;
use rand::rngs::SysRng;
use super::*; use super::*;
use crate::common::{Dst, STR_HASH_TO_GROUP};
use crate::Group; use crate::Group;
use crate::common::{Dst, STR_HASH_TO_GROUP};
fn prf<CS: CipherSuite>( fn prf<CS: CipherSuite>(
input: &[u8], input: &[u8],
+4 -4
View File
@@ -19,9 +19,9 @@ use hybrid_array::{Array, ArraySize};
use rand_core::{TryCryptoRng, TryRng}; use rand_core::{TryCryptoRng, TryRng};
use crate::common::{ use crate::common::{
derive_keypair, deterministic_blind_unchecked, generate_proof, hash_to_group, i2osp_2, BlindedElement, Dst, EvaluationElement, Mode, PreparedEvaluationElement, Proof, STR_FINALIZE,
server_evaluate_hash_input, verify_proof, BlindedElement, Dst, EvaluationElement, Mode, STR_HASH_TO_SCALAR, STR_INFO, derive_keypair, deterministic_blind_unchecked, generate_proof,
PreparedEvaluationElement, Proof, STR_FINALIZE, STR_HASH_TO_SCALAR, STR_INFO, hash_to_group, i2osp_2, server_evaluate_hash_input, verify_proof,
}; };
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
use crate::serialization::serde::{Element, Scalar}; use crate::serialization::serde::{Element, Scalar};
@@ -736,8 +736,8 @@ mod tests {
use rand::rngs::SysRng; use rand::rngs::SysRng;
use super::*; use super::*;
use crate::common::STR_HASH_TO_GROUP;
use crate::Group; use crate::Group;
use crate::common::STR_HASH_TO_GROUP;
fn prf<CS: CipherSuite>( fn prf<CS: CipherSuite>(
input: &[u8], input: &[u8],
+1 -1
View File
@@ -9,8 +9,8 @@
//! Handles the serialization of each of the components used in the VOPRF //! Handles the serialization of each of the components used in the VOPRF
//! protocol //! protocol
use hybrid_array::typenum::{Sum, Unsigned};
use hybrid_array::Array; use hybrid_array::Array;
use hybrid_array::typenum::{Sum, Unsigned};
use crate::{ use crate::{
BlindedElement, CipherSuite, Error, EvaluationElement, Group, OprfClient, OprfServer, BlindedElement, CipherSuite, Error, EvaluationElement, Group, OprfClient, OprfServer,
+4 -4
View File
@@ -14,14 +14,14 @@ use core::iter::{self, Map, Repeat, Zip};
use derive_where::derive_where; use derive_where::derive_where;
use digest::{Digest, Output}; use digest::{Digest, Output};
use hybrid_array::typenum::Unsigned;
use hybrid_array::Array; use hybrid_array::Array;
use hybrid_array::typenum::Unsigned;
use rand_core::{TryCryptoRng, TryRng}; use rand_core::{TryCryptoRng, TryRng};
use crate::common::{ use crate::common::{
BlindedElement, EvaluationElement, Mode, PreparedEvaluationElement, Proof, STR_FINALIZE,
derive_keypair, deterministic_blind_unchecked, generate_proof, hash_to_group, i2osp_2, derive_keypair, deterministic_blind_unchecked, generate_proof, hash_to_group, i2osp_2,
server_evaluate_hash_input, verify_proof, BlindedElement, EvaluationElement, Mode, server_evaluate_hash_input, verify_proof,
PreparedEvaluationElement, Proof, STR_FINALIZE,
}; };
#[cfg(feature = "serde")] #[cfg(feature = "serde")]
use crate::serialization::serde::{Element, Scalar}; use crate::serialization::serde::{Element, Scalar};
@@ -553,8 +553,8 @@ mod tests {
use rand::rngs::SysRng; use rand::rngs::SysRng;
use super::*; use super::*;
use crate::common::{Dst, STR_HASH_TO_GROUP};
use crate::Group; use crate::Group;
use crate::common::{Dst, STR_HASH_TO_GROUP};
fn prf<CS: CipherSuite>( fn prf<CS: CipherSuite>(
input: &[u8], input: &[u8],