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

Use a constant-time hash in Random OT Extension #9

Open
cronokirby opened this issue Jul 10, 2023 · 1 comment
Open

Use a constant-time hash in Random OT Extension #9

cronokirby opened this issue Jul 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cronokirby
Copy link
Owner

See https://github.com/cronokirby/cait-sith/blob/e08a60f7601cc8d20ad78973e13ff1b7318f453b/src/triples/random_ot_extension.rs#L23C1-L43 for where this happens.

Using a constant-time hash is necessary here, because we don't want to leak information about the values being hashed.

@cronokirby cronokirby added the bug Something isn't working label Jul 10, 2023
@cronokirby
Copy link
Owner Author

Seems like there's not really a generic way in Rust-Crypto elliptic curves to do wide reduction, outside of hash2curve, which isn't implemented for the Secp256k1 curve in the k256 crate. Sigh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant