Kazuki Yamaguchi 7a4de4748a [ruby/openssl] pkcs7: fix flaky test test_enveloped
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
2026-07-28 19:26:48 +00:00
..