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
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.

None yet

2 participants