1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/openssl
Kazuki Yamaguchi 4ebff35971 [ruby/openssl] pkey: implement PKey#sign_raw, #verify_raw, and #verify_recover
Add a variant of PKey#sign and #verify that do not hash the data
automatically.

Sometimes the caller has the hashed data only, but not the plaintext
to be signed. In that case, users would have to use the low-level API
such as RSA#private_encrypt or #public_decrypt directly.

OpenSSL 1.0.0 and later supports EVP_PKEY_sign() and EVP_PKEY_verify()
which provide the same functionality as part of the EVP API. This patch
adds wrappers for them.

16cca4e0c4
2021-07-18 17:44:58 +09:00
..
fixtures/pkey [ruby/openssl] Implement Certificate.load to load certificate chain. (https://github.com/ruby/openssl/pull/441) 2021-07-18 17:44:55 +09:00
test_asn1.rb [ruby/openssl] require OpenSSL >= 1.0.2 and LibreSSL >= 3.1 2021-07-18 17:44:41 +09:00
test_bn.rb [ruby/openssl] BN.abs and BN uplus 2021-07-18 17:44:39 +09:00
test_buffering.rb
test_cipher.rb test/openssl/test_cipher: skip AES-CCM tests on OpenSSL <= 1.1.1b 2021-03-16 22:30:18 +09:00
test_config.rb test/openssl/test_config: skip tests for .include on older OpenSSL 2021-03-16 22:30:33 +09:00
test_digest.rb
test_engine.rb
test_fips.rb
test_hmac.rb [ruby/openssl] hmac: implement base64digest methods 2021-03-16 19:16:11 +09:00
test_kdf.rb
test_ns_spki.rb
test_ocsp.rb [ruby/openssl] require OpenSSL >= 1.0.2 and LibreSSL >= 3.1 2021-07-18 17:44:41 +09:00
test_ossl.rb
test_pair.rb
test_pkcs7.rb [ruby/openssl] pkcs7: keep private key when duplicating PKCS7_SIGNER_INFO 2021-03-31 18:05:07 +09:00
test_pkcs12.rb
test_pkey.rb [ruby/openssl] pkey: implement #to_text using EVP API 2021-07-18 17:44:50 +09:00
test_pkey_dh.rb [ruby/openssl] pkey/dh, pkey/ec: use EVP_PKEY_check() family 2021-07-18 17:44:52 +09:00
test_pkey_dsa.rb [ruby/openssl] pkey: implement PKey#sign_raw, #verify_raw, and #verify_recover 2021-07-18 17:44:58 +09:00
test_pkey_ec.rb [ruby/openssl] pkey: implement PKey#sign_raw, #verify_raw, and #verify_recover 2021-07-18 17:44:58 +09:00
test_pkey_rsa.rb [ruby/openssl] pkey: implement PKey#sign_raw, #verify_raw, and #verify_recover 2021-07-18 17:44:58 +09:00
test_random.rb
test_ssl.rb [ruby/openssl] Add SSLSocket#getbyte 2021-07-18 17:44:53 +09:00
test_ssl_session.rb [ruby/openssl] Enhance TLS 1.3 support on LibreSSL 3.2/3.3 2021-03-16 19:37:06 +09:00
test_ts.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00
test_x509attr.rb
test_x509cert.rb [ruby/openssl] Implement Certificate.load to load certificate chain. (https://github.com/ruby/openssl/pull/441) 2021-07-18 17:44:55 +09:00
test_x509crl.rb
test_x509ext.rb
test_x509name.rb
test_x509req.rb
test_x509store.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00
ut_eof.rb [ruby/openssl] Add SSLSocket#getbyte 2021-07-18 17:44:53 +09:00
utils.rb [ruby/openssl] test: adjust test cases for LibreSSL 3.2.4 2021-03-16 19:37:06 +09:00