[ruby-cvs:62552] rhe:r55388 (trunk): openssl: support non AES-GCM AEAD ciphers in OpenSSL::Cipher

rhe at ruby-lang.org rhe at ruby-lang.org
Sun Jun 12 14:06:18 JST 2016


rhe	2016-06-12 14:06:18 +0900 (Sun, 12 Jun 2016)

  New Revision: 55388

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55388

  Log:
    openssl: support non AES-GCM AEAD ciphers in OpenSSL::Cipher
    
    * ext/openssl/ossl_cipher.c (ossl_cipher_get_auth_tag,
      ossl_cipher_set_auth_tag): Check if the cipher flags retrieved by
      EVP_CIPHER_CTX_flags() includes EVP_CIPH_FLAG_AEAD_CIPHER to see if
      the cipher supports AEAD. AES-GCM was the only supported in OpenSSL
      1.0.1.
    
      (Init_ossl_cipher): Fix doc; OpenSSL::Cipher::AES.new(128, :GCM) can't
      work.
    
    * ext/openssl/openssl_missing.h: Define EVP_CTRL_AEAD_{GET,SET}_TAG if
      missing. They are added in OpenSSL 1.1.0, and have the same value as
      EVP_CTRL_GCM_{GET,SET}_TAG and EVP_CTRL_CCM_{GET,SET}_TAG.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/openssl_missing.h
    trunk/ext/openssl/ossl_cipher.c


More information about the ruby-cvs mailing list