diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2020-05-22 16:10:35 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2021-07-18 17:44:58 +0900 |
commit | 4ebff35971d499f4ddd13f48bff0444f77d63421 (patch) | |
tree | 528fa77adf94975df77bc359f911070a47784cce /missing/file.h | |
parent | cbc560e38f9127c723f6b91734abbc0a1b0c14cc (diff) |
[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.
https://github.com/ruby/openssl/commit/16cca4e0c4
Diffstat (limited to 'missing/file.h')
0 files changed, 0 insertions, 0 deletions