2 AES-128-GCM (probably same in AES-256-GCM) bug?
OpenSSL::Cipher::AES.new(128, :GDM) doesn't work
You can't set iv before key
Sample code here.
- ext/openssl/ossl_cipher.c: remove the encryption key initialization from Cipher#initialize. This is effectively a revert of r32723 ("Avoid possible SEGV from AES encryption/decryption", 2011-07-28). the patch is derived from https://github.com/ruby/openssl/commit/8108e0a6db133f3375608303fdd2083eb5115062, written by Kazuki Yamaguchi. [Backport #8221]
#2 [ruby-core:54728] Updated by nobu (Nobuyoshi Nakada) over 4 years ago
- ruby -v set to 2.1.0
Is this related to ((URL:https://s3.amazonaws.com/archive.travis-ci.org/jobs/6783150/log.txt))?
OpenSSL::Cipher::CipherError: unable to set GCM tag
#5 [ruby-core:56219] Updated by naruse (Yui NARUSE) about 4 years ago
#7 [ruby-core:77439] Updated by rhenium (Kazuki Yamaguchi) 11 months ago
- Backport set to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED
- Status changed from Assigned to Closed
Fixed by the following commits at ruby/openssl.
AES-GCM ciphers does not have uppercase short name
The ordering issue of key and IV