Skip to content

x-wing: correct usage of ECC#116

Merged
tarcieri merged 1 commit intoRustCrypto:masterfrom
Christiaan676:correct_ecc
Apr 21, 2025
Merged

x-wing: correct usage of ECC#116
tarcieri merged 1 commit intoRustCrypto:masterfrom
Christiaan676:correct_ecc

Conversation

@Christiaan676
Copy link
Copy Markdown
Contributor

Noticed I made a mistake in the way the ECC ephemeral keys are created:

let ek_x: SharedSecret = generate(rng);
let ct_x = x25519(ek_x, X25519_BASEPOINT_BYTES);

This result may not always be correct as no clamping is done on the generated ek_x.

@tarcieri tarcieri changed the title Correct usage of ECC x-wing: correct usage of ECC Apr 21, 2025
@tarcieri tarcieri merged commit 66c96f2 into RustCrypto:master Apr 21, 2025
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