Skip to content

p521: fix size of CompressedPoint#1652

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
ANtutov:fix-p521-compressed-point-size
Apr 8, 2026
Merged

p521: fix size of CompressedPoint#1652
tarcieri merged 1 commit intoRustCrypto:masterfrom
ANtutov:fix-p521-compressed-point-size

Conversation

@ANtutov
Copy link
Copy Markdown
Contributor

@ANtutov ANtutov commented Feb 4, 2026

Cause: The P-521 CompressedPoint alias used U66 (field size) instead of the full SEC1 compressed length, omitting the one-byte prefix. This was inconsistent with SEC1, the generic sec1::CompressedPoint implementation, and the other curves in this repo.

Summary: Import U67 and update the P-521 CompressedPoint alias to Array<u8, U67>, so it matches the SEC1 compressed point size and the behavior of the generic sec1 encoding utilities.

@tarcieri tarcieri changed the title fix: correct P-521 compressed point size p521: fix size of CompressedPoint Apr 8, 2026
@tarcieri tarcieri merged commit b557dee into RustCrypto:master Apr 8, 2026
13 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.

2 participants