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

[capture] Fix bug in capture_ibex #380

Merged
merged 1 commit into from
Dec 3, 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
14 changes: 7 additions & 7 deletions capture/capture_ibex.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ def capture(scope: Scope, ot_ibex: OTIbex, ot_prng: OTPRNG,
data_bytes = []
for d in data:
data_bytes.append(d.to_bytes(4, "little"))
# Sanity check retrieved data (wave).
assert len(waves[0, :]) >= 1
# Store trace into database.
project.append_trace(wave = waves[0, :],
plaintext = b''.join(data_bytes),
ciphertext = None,
key = None)
# Sanity check retrieved data (wave).
assert len(waves[0, :]) >= 1
# Store trace into database.
project.append_trace(wave = waves[0, :],
plaintext = b''.join(data_bytes),
ciphertext = None,
key = None)

# Memory allocation optimization for CW trace library.
num_segments_storage = project.optimize_capture(num_segments_storage)
Expand Down