diff options
| author | Samuel Williams <samuel.williams@shopify.com> | 2025-09-18 00:32:47 +1200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-09-17 12:32:50 +0000 |
| commit | a1f39b4b807a5412181ca3f1bf87e7c7d2d9f542 (patch) | |
| tree | 7c69f43cb2920e3a42d339866114e6eca52e05d9 /test/ruby/test_transcode.rb | |
| parent | 0f3c6ca480d3dab95b355392658972323f890e7d (diff) | |
[ruby/openssl] Add AuthTagError exception for AEAD authentication
failures
(https://github.com/ruby/openssl/pull/939)
* Add AuthTagError exception for AEAD authentication failures
- Add OpenSSL::Cipher::AuthTagError as a subclass of CipherError
- Raise AuthTagError specifically for AEAD cipher authentication tag verification failures
- Enhanced error messages: 'AEAD authentication tag verification failed' for auth failures
- Precise detection: Only EVP_CipherFinal_ex failures in AEAD ciphers raise AuthTagError
- All other errors (key setup, IV setup, update failures, etc.) still raise CipherError
- Comprehensive test coverage for GCM/CCM modes and error inheritance
- Fully backwards compatible: AuthTagError < CipherError
https://github.com/ruby/openssl/commit/9663b09040
Diffstat (limited to 'test/ruby/test_transcode.rb')
0 files changed, 0 insertions, 0 deletions
