From: tomykaira@... Date: 2014-10-23T02:53:59+00:00 Subject: [ruby-core:65864] [ruby-trunk - Bug #10420] [Open] Cannot set IV length to OpenSSL::Cipher Issue #10420 has been reported by tomy kaira. ---------------------------------------- Bug #10420: Cannot set IV length to OpenSSL::Cipher https://bugs.ruby-lang.org/issues/10420 * Author: tomy kaira * Status: Open * Priority: Normal * Assignee: * Category: ext/openssl * Target version: * ruby -v: ruby 2.2.0dev (2014-10-23 trunk 48106) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- GCM cipher accepts variable iv length, but Ruby OpenSSL implementation does not provide a way to set it. This is critical because ruby cannot decrypt cryptograms whose iv length is not 12 (openssl crypto default). CCM's iv length is also variable, but CCM is not yet supported. So my patch handles only GCM. ---Files-------------------------------- ossl_set_iv_len.patch (3.17 KB) -- https://bugs.ruby-lang.org/