mirror of
https://github.com/ruby/ruby.git
synced 2026-08-01 17:57:19 +08:00
OpenSSL::PKCS7#decrypt is unreliable when given only a private key and the PKCS#7 structure contains multiple recipients. It may occasionally raise an exception or return garbage data. Update the test to avoid this. This became much more visible in CI after upgrading to OpenSSL versions released on 2026-06-09, which enable the implicit rejection mechanism for PKCS#1 v1.5 decryption in PKCS#7. https://github.com/ruby/openssl/commit/f7c51a2c0c