Skip to content

Conversation

TychoVrahe
Copy link

fixes sigmask handling, see #4 (comment)

@TychoVrahe TychoVrahe changed the base branch from main to trezor-v2.1.0-ncs3 July 21, 2025 11:34
@TychoVrahe TychoVrahe self-assigned this Jul 21, 2025
@TychoVrahe TychoVrahe requested a review from matejcik July 21, 2025 11:35
@matejcik matejcik requested a review from cepetr July 21, 2025 11:42
Copy link

@matejcik matejcik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK from me, @cepetr please also double-check

Copy link

@cepetr cepetr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

int sig0_idx = sigmask & (1 << 0) ? 0 : 1;
int sig1_idx = sigmask & (1 << 2) ? 2 : 1;

if (FIH_NOT_EQ(__builtin_popcount(sigmask), 2)) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks okay, but I fixed the same thing in the PQ boardloader a bit differently - I think it's more readable.

see trezor/trezor-firmware@ce32830

@TychoVrahe TychoVrahe merged commit 1e6be31 into trezor-v2.1.0-ncs3 Jul 21, 2025
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants