Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
robinhundt committed Mar 26, 2024
1 parent 93fdbf8 commit e1b0434
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Cache
uses: Swatinem/rust-cache@v2
- name: Create Docs
run: cargo doc --workspace --verbose --all-features --no-deps
run: cargo doc --workspace --verbose --all-features --no-deps -Zunstable-options -Zrustdoc-scrape-examples
- name: Fix permissions
run: |
chmod -c -R +rX "target/doc/" | while read line; do
Expand Down
2 changes: 2 additions & 0 deletions crates/seec-bitmatrix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ where
self.cols, rhs.rows,
"Illegal dimensions for matrix multiplication"
);
// TODO this can likely be heavily optimized. One option is to use the raw_rows iterator
// if possible to do the dotp on the raw elements. This should be significantly faster.
let dotp = |l_row: &BitSlice<T>, r_row| -> bool {
let and = l_row.to_bitvec() & r_row;
and.iter().by_vals().reduce(BitXor::bitxor).unwrap()
Expand Down
1 change: 1 addition & 0 deletions crates/seec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ silent-ot = ["zappot/silent-ot-libote-codes"]
[[example]]
name = "bristol"
required-features = ["bench-api"]
doc-scrape-examples = true

[[example]]
name = "aes_cbc"
Expand Down
2 changes: 1 addition & 1 deletion crates/seec/examples/bristol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! optionally generating the multiplication triples via a third trusted party
//! (see the `trusted_party_mts.rs` example).
//!
//! It also demonstrates how to use the [`Statistics`] API to track the communication of
//! It also demonstrates how to use the [`BenchParty`] API to track the communication of
//! different phases and write it to a file.
use anyhow::{Context, Result};
Expand Down
4 changes: 2 additions & 2 deletions crates/zappot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ cc = "1.0.90"
[[bench]]
name = "bench_main"
harness = false
required-features = ["silent-ot", "silent-ot-quasi-cyclic-code"]
required-features = ["silent-ot-libote-codes", "silent-ot-quasi-cyclic-code"]

[[example]]
name = "silent_ot"
required-features = ["silent-ot", "silent-ot-quasi-cyclic-code"]
required-features = ["silent-ot-libote-codes", "silent-ot-quasi-cyclic-code"]

0 comments on commit e1b0434

Please sign in to comment.