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

Added ctx string to DPF computation #1146

Merged
merged 6 commits into from
Nov 27, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Now passing: test that checked that Mastic API matches VDAF spec one
Michael Rosenberg committed Nov 26, 2024
commit b98624ad23284b118deb03fd54df633906863131
5 changes: 4 additions & 1 deletion src/vdaf/xof.rs
Original file line number Diff line number Diff line change
@@ -361,7 +361,10 @@ impl Xof<16> for XofFixedKeyAes128 {
let mut fixed_key_deriver = TurboShake128::from_core(TurboShake128Core::new(2u8));
Update::update(
&mut fixed_key_deriver,
&[dst.len().try_into().expect("dst must be at most 255 bytes")],
u16::try_from(dst.len())
.expect("dst must be at most 65536 bytes")
.to_le_bytes()
.as_slice(),
);
Update::update(&mut fixed_key_deriver, dst);
Self {