Skip to content

Decode FORS indices similarly to WOTS - #51

Open
bwesterb wants to merge 1 commit into
masterfrom
consistent-basew
Open

Decode FORS indices similarly to WOTS#51
bwesterb wants to merge 1 commit into
masterfrom
consistent-basew

Conversation

@bwesterb

@bwesterb bwesterb commented May 2, 2023

Copy link
Copy Markdown
Contributor

@sfluhrer sfluhrer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me

@sfluhrer

sfluhrer commented May 3, 2023

Copy link
Copy Markdown
Contributor

Oops, David Cooper is right; this does flip the bit order for each leaf. What we want is:

indices[i] ^= ((m[offset >> 3] >> (~offset & 0x7)) & 0x1) << (SPX_FORS_HEIGHT-1-j);

@bwesterb

bwesterb commented May 4, 2023

Copy link
Copy Markdown
Contributor Author

Indeed, whoops. Generating new test vectors now ...

@bwesterb
bwesterb force-pushed the consistent-basew branch from 3af71be to c8116bc Compare May 4, 2023 11:32
@bwesterb

bwesterb commented May 4, 2023

Copy link
Copy Markdown
Contributor Author

Done.

@sfluhrer sfluhrer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Now it looks good

@mberry

mberry commented Jun 27, 2023

Copy link
Copy Markdown

Is there a timeline for this getting merged? It's a breaking change so perhaps should come with some forewarning?

@bwesterb

Copy link
Copy Markdown
Contributor Author

Is there a timeline for this getting merged? It's a breaking change so perhaps should come with some forewarning?

SPHINCS+ (or SLH-DSA as it will be called by NIST) is not finalised, and could very well see even more changes. If you want to adopt early, you should fix on a specific commit (and keep track for bug fixes.) I'm sorry, this is annoying for early adopters, but that's the risk of adopting early.

@mberry

mberry commented Jun 27, 2023

Copy link
Copy Markdown

It's all good, was simply wondering about how the rollout would happen.

Codewise the change is trivial, it is more the versioning and nomenclature around this change.

blakehartin pushed a commit to blakehartin/dp-hybrid-pqc that referenced this pull request Nov 25, 2023
@bwesterb

Copy link
Copy Markdown
Contributor Author

Rebased on master.

@bwesterb

Copy link
Copy Markdown
Contributor Author

Rebased to include fix of #59. /cc @kste

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