rhe ce635262f5 openssl: make Cipher#key= and #iv= reject too long values
* ext/openssl/ossl_cipher.c (ossl_cipher_set_key, ossl_cipher_set_iv):
  Reject too long values as well as too short ones. Currently they
  just truncate the input but this would hide bugs and lead to
  unexpected encryption/decryption results.

* test/openssl/test_cipher.rb: Test that Cipher#key= and #iv= reject
  Strings with invalid length.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-05-24 13:09:03 +00:00
..
2016-05-22 07:27:02 +00:00
2016-05-23 12:33:39 +00:00
2015-12-16 05:31:54 +00:00
2016-04-11 11:50:00 +00:00
2016-05-20 13:21:55 +00:00
2016-05-23 04:31:55 +00:00
2016-04-11 11:50:00 +00:00
2015-12-16 05:31:54 +00:00
2015-12-16 05:31:54 +00:00
2015-12-16 05:31:54 +00:00
2015-12-16 05:31:54 +00:00
2016-04-15 06:15:54 +00:00
2015-12-16 05:31:54 +00:00
2016-04-11 11:50:00 +00:00
2016-05-08 09:59:36 +00:00
2015-12-16 05:31:54 +00:00
2016-04-30 01:12:52 +00:00
2015-12-16 05:31:54 +00:00
2016-04-11 11:50:00 +00:00
2016-04-25 07:56:06 +00:00
2016-05-23 04:31:55 +00:00
2016-04-11 11:50:00 +00:00
2016-04-27 06:47:56 +00:00
2016-04-11 11:50:00 +00:00
2016-04-11 11:50:00 +00:00
2016-05-23 04:40:43 +00:00
2016-04-10 11:54:17 +00:00
2016-05-20 12:17:14 +00:00
2016-05-16 00:16:13 +00:00
2016-04-30 02:56:17 +00:00
2015-12-20 11:54:54 +00:00
2015-12-20 11:54:54 +00:00