Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
- name: format
run: cargo fmt -- --check

# Broken or private intra-doc links fail here rather than on docs.rs.
- name: docs
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --no-deps --all-features

- name: test
run: cargo test --all-features

Expand Down
2 changes: 1 addition & 1 deletion packages/ore-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub mod ct_bench {

/// The reference builder's Fisher–Yates swap loop alone (no inverse
/// fill): swaps at the secret draw-derived index. The loop is
/// [`oblivious::reference::build`]'s, restated so it can be timed
/// `oblivious::reference::build`'s, restated so it can be timed
/// without the fill; a test pins it to that builder's permutation.
#[inline(never)]
pub fn fy_swaps_only(stream: &[u8; 512], out: &mut Line) {
Expand Down
6 changes: 3 additions & 3 deletions packages/ore-rs/src/scheme/bit2_w6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! prefix, fixed-N)` scheme from the ORE v2 plan.
//!
//! Plaintext bytes are decomposed MSB-first into 6-bit block values (see
//! [`crate::scheme::decompose`]); `N` in the types below counts *blocks*,
//! the crate-private `scheme::decompose`); `N` in the types below counts *blocks*,
//! not bytes (a `u64` is 11 blocks). Compared to the legacy 8-bit scheme,
//! each block costs 64 random-oracle evaluations instead of 256 and stores
//! an 8-byte right block instead of 32 — a `u64` ciphertext is 295 bytes
Expand All @@ -17,7 +17,7 @@
//!
//! **Status: wire format NOT yet frozen.** The Z2 hash is the fixed-π MMO
//! construction proposed in plan §6 (option 3), pending crypto review;
//! flipping [`Z2Hash`] re-keys the right ciphertexts without any other
//! flipping the private `Z2Hash` alias re-keys the right ciphertexts without any other
//! code change. Do not store ciphertexts produced by this scheme until
//! the review lands and vectors are pinned.
//!
Expand Down Expand Up @@ -258,7 +258,7 @@ impl<R: Rng + SeedableRng> OreCipher for OreAes128Bit6<R> {
}

/// Encrypt `x`, whose entries are **6-bit block values** (`< 64`, as
/// [`crate::scheme::decompose`] produces); `N` is the block count
/// the crate-private `scheme::decompose` produces); `N` is the block count
/// (≤ [`MAX_BLOCKS`]). The [`crate::OreEncrypt`] impls handle the
/// byte→block decomposition for primitive types and skip the check
/// below. A value `>= 64` returns [`OreError::PrpError`].
Expand Down
Loading