Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multithreaded Encryption #1491

Merged
merged 2 commits into from
Dec 12, 2024
Merged
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
9 changes: 6 additions & 3 deletions ipa-core/src/query/runner/hybrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ use crate::{
replicated::semi_honest::AdditiveShare as Replicated, BitDecomposed, TransposeFrom,
Vectorizable,
},
seq_join::seq_join,
sharding::{ShardConfiguration, Sharded},
};

Expand Down Expand Up @@ -130,10 +131,12 @@ where
}))
})
.try_flatten()
.take(sz);
.take(sz)
.map(|v| async move { v });

let (decrypted_reports, resharded_tags) = reshard_aad(
ctx.narrow(&HybridStep::ReshardByTag),
stream,
seq_join(ctx.active_work(), stream),
|ctx, _, tag| tag.shard_picker(ctx.shard_count()),
)
.await?;
Expand Down Expand Up @@ -344,7 +347,7 @@ mod tests {
}

// cannot test for Err directly because join3v calls unwrap. This should be sufficient.
#[tokio::test]
#[tokio::test(flavor = "multi_thread", worker_threads = 3)]
#[should_panic(expected = "DuplicateBytes")]
async fn duplicate_encrypted_hybrid_reports() {
const SHARDS: usize = 2;
Expand Down
Loading