Skip to content

Conversation

@rhenium
Copy link
Member

@rhenium rhenium commented Oct 17, 2025

The EVP_CIPHER_CTX = OpenSSL::Cipher interface for AEAD ciphers is notoriously complicated and full of pitfalls. I tried to clarify docs so that users can hopefully connect the Ruby methods with the corresponding OpenSSL man pages more easily.

  • Call out the common mistakes with Cipher#iv= and Cipher#auth_tag= with AES-GCM.
  • Update outdated notes about the method calling order requirements with AEAD ciphers.
  • Add references to the man page where the behavior varies according to the specific cipher algorithm and we cannot document every detail.
  • Various style/wording updates.

The EVP_CIPHER_CTX = OpenSSL::Cipher interface for AEAD ciphers is
notoriously complicated and full of pitfalls. I tried to clarify docs
so that users can hopefully connect the Ruby methods with the
corresponding OpenSSL man pages more easily.

- Call out the common mistakes with Cipher#iv= and Cipher#auth_tag=
  with AES-GCM.
- Update outdated notes about the method calling order requirements
  with AEAD ciphers.
- Add references to the man page where the behavior varies according to
  the specific cipher algorithm and we cannot document every detail.
- Various style/wording updates.
@rhenium rhenium merged commit 2967c1e into ruby:master Oct 27, 2025
44 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.

1 participant