aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_pkey_ec.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-05-22 16:10:35 +0900
committerKazuki Yamaguchi <k@rhe.jp>2021-05-25 18:58:13 +0900
commit16cca4e0c4330b66f6f5bc00f0ed41835d0145dc (patch)
tree236b330741d78d18e8bf9bc82b99e1a4eda2640e /ext/openssl/ossl_pkey_ec.c
parentb8a434e46243ddd87ea80169a5870b87b843e1be (diff)
downloadruby-openssl-16cca4e0c4330b66f6f5bc00f0ed41835d0145dc.tar.gz
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.
Diffstat (limited to 'ext/openssl/ossl_pkey_ec.c')
0 files changed, 0 insertions, 0 deletions