ActionsLike0
Bug #8221
closed2 AES-128-GCM (probably same in AES-256-GCM) bug?
Description
-
OpenSSL::Cipher::AES.new(128, :GDM) doesn't work
-
You can't set iv before key
Sample code here.
https://gist.github.com/nov/5311749
Updated by nobu (Nobuyoshi Nakada) about 12 years ago
- ruby -v set to 2.1.0
=begin
Is this related to ((URL:https://s3.amazonaws.com/archive.travis-ci.org/jobs/6783150/log.txt))?
- Error:
test_aes_gcm_wrong_tag(OpenSSL::TestCipher):
OpenSSL::Cipher::CipherError: unable to set GCM tag
/home/travis/build/ruby/ruby/test/openssl/test_cipher.rb:190:inauth_tag=' /home/travis/build/ruby/ruby/test/openssl/test_cipher.rb:190:in
test_aes_gcm_wrong_tag'
=end
Updated by naruse (Yui NARUSE) almost 12 years ago
Updated by rhenium (Kazuki Yamaguchi) over 8 years ago
- Status changed from Assigned to Closed
- Backport set to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED
Fixed by the following commits at ruby/openssl.
-
AES-GCM ciphers does not have uppercase short name
https://github.com/ruby/openssl/commit/2ed10db12deb114066443b4a0f1ffd49a8f612b2
-
The ordering issue of key and IV
https://github.com/ruby/openssl/commit/8108e0a6db133f3375608303fdd2083eb5115062
ActionsLike0