Project

General

Profile

Actions

Bug #8221

closed

2 AES-128-GCM (probably same in AES-256-GCM) bug?

Added by nov (nov matake) over 11 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:54001]

Description

  1. OpenSSL::Cipher::AES.new(128, :GDM) doesn't work

  2. You can't set iv before key

Sample code here.
https://gist.github.com/nov/5311749

Actions #1

Updated by naruse (Yui NARUSE) over 11 years ago

  • Tracker changed from Backport to Bug
  • Project changed from Backport200 to Ruby master
  • Status changed from Open to Assigned
  • Assignee set to MartinBosslet (Martin Bosslet)

Updated by nobu (Nobuyoshi Nakada) over 11 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))?

  1. 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:in auth_tag=' /home/travis/build/ruby/ruby/test/openssl/test_cipher.rb:190:in test_aes_gcm_wrong_tag'
    =end

Updated by naruse (Yui NARUSE) over 11 years ago

  • Category set to ext/openssl
  • Target version set to 2.1.0

Updated by naruse (Yui NARUSE) over 11 years ago

  • Assignee changed from MartinBosslet (Martin Bosslet) to 7150

Updated by hsbt (Hiroshi SHIBATA) almost 11 years ago

  • Target version changed from 2.1.0 to 2.2.0

Updated by rhenium (Kazuki Yamaguchi) about 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.

  1. AES-GCM ciphers does not have uppercase short name

    https://github.com/ruby/openssl/commit/2ed10db12deb114066443b4a0f1ffd49a8f612b2

  2. The ordering issue of key and IV

    https://github.com/ruby/openssl/commit/8108e0a6db133f3375608303fdd2083eb5115062

Actions #8

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: DONTNEED
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0