Project

General

Profile

Actions

Feature #10420

closed

Cannot set IV length to OpenSSL::Cipher

Added by tomykaira (tomy kaira) about 10 years ago. Updated over 8 years ago.

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

Description

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) ossl_set_iv_len.patch Patch that fixes this problem tomykaira (tomy kaira), 10/23/2014 02:53 AM

Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #8667: Unable to set OpenSSL GCM iv_length in RubyClosedActions
Actions #1

Updated by zzak (zzak _) over 9 years ago

  • Assignee set to 7150
Actions #2

Updated by rhenium (Kazuki Yamaguchi) over 8 years ago

  • Related to Feature #8667: Unable to set OpenSSL GCM iv_length in Ruby added

Updated by rhenium (Kazuki Yamaguchi) over 8 years ago

  • Tracker changed from Bug to Feature
  • Status changed from Open to Closed

Thanks for providing a patch! I made it in a generic way. Please see:

https://github.com/ruby/openssl/pull/58

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0