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

Convert AESGCM AEAD to Rust #9181

Merged
merged 1 commit into from
Jan 28, 2024
Merged

Convert AESGCM AEAD to Rust #9181

merged 1 commit into from
Jan 28, 2024

Conversation

alex
Copy link
Member

@alex alex commented Jul 5, 2023

No description provided.

@alex
Copy link
Member Author

alex commented Jul 5, 2023

Ok, LibreSSL is failing because:

  • rust-openssl has an assert, when you set an IV, that the iv.len() <= EVP_CIPHER_CTX_iv_length()
  • On LibreSSL EVP_CIPHER_CTX_iv_length always returns the cipher's length, it does not respect EVP_CTRL_AEAD_SET_IVLEN
  • The cipher's length is 12.
  • Therefore using an IV shorter than 12 bytes will always hit this assert on LibreSSL

Not immediately sure what the right fix it. This feels like a LibreSSL bug, but would take a while to roll out.

@alex
Copy link
Member Author

alex commented Jul 5, 2023

Looks like BoringSSL will have this same problem.

@alex alex mentioned this pull request Jul 7, 2023
22 tasks
@alex alex force-pushed the aead-rust branch 3 times, most recently from ae2be04 to 0885437 Compare August 14, 2023 12:51
@alex alex force-pushed the aead-rust branch 2 times, most recently from bc2acc0 to 9c81b3c Compare August 27, 2023 16:30
@alex alex force-pushed the aead-rust branch 3 times, most recently from 8ec3e30 to 4677a1f Compare September 12, 2023 21:44
@alex alex force-pushed the aead-rust branch 2 times, most recently from 4b45717 to 12b90fb Compare September 14, 2023 00:06
@alex alex marked this pull request as draft September 14, 2023 12:31
@alex alex force-pushed the aead-rust branch 2 times, most recently from 5f9c81a to ccdfc52 Compare September 19, 2023 18:17
@alex alex force-pushed the aead-rust branch 2 times, most recently from 7134cc7 to e100499 Compare November 4, 2023 05:30
@alex alex force-pushed the aead-rust branch 5 times, most recently from 4b51aa4 to 961e284 Compare January 13, 2024 01:44
@alex
Copy link
Member Author

alex commented Jan 13, 2024

Ok this is now green, minus LibreSSL 3.7.3, meaning that we're waiting for May 1 when the relevant OpenBSD version is dropped.

@jlaine jlaine mentioned this pull request Jan 17, 2024
@alex alex marked this pull request as ready for review January 28, 2024 22:04
@reaperhulk
Copy link
Member

Presented without comment:
image

@reaperhulk reaperhulk merged commit ea5a5b4 into pyca:main Jan 28, 2024
57 checks passed
@alex alex deleted the aead-rust branch January 28, 2024 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants