diff options
author | Matt Caswell <matt@openssl.org> | 2019-08-30 13:33:10 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-09-09 13:52:26 +0100 |
commit | dfcb5d29b525f5d2b6bd80602dca5efe5fca77bb (patch) | |
tree | 2cfb247b0ec70de547f7d376a090e57727d49771 /crypto/include | |
parent | 2b95e8efcf8b99892106070d9ac745a0a369f503 (diff) | |
download | openssl-dfcb5d29b525f5d2b6bd80602dca5efe5fca77bb.zip openssl-dfcb5d29b525f5d2b6bd80602dca5efe5fca77bb.tar.gz openssl-dfcb5d29b525f5d2b6bd80602dca5efe5fca77bb.tar.bz2 |
Add the ability to perform signatures in a provider
This makes EVP_PKEY_sign and EVP_PKEY_sign_init provider aware. It
also introduces the new type EVP_SIGNATURE to represent signature
algorithms. This also automatically makes the EVP_Sign* APIs provider
aware because they use EVP_Digest* (which is already provider aware)
and EVP_PKEY_sign(_init) under the covers.
At this stage there are no signature algorithms in any providers. That
will come in the following commits.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9753)
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/evp_int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/include/internal/evp_int.h b/crypto/include/internal/evp_int.h index d54edc7..2b49e68 100644 --- a/crypto/include/internal/evp_int.h +++ b/crypto/include/internal/evp_int.h @@ -21,6 +21,9 @@ struct evp_pkey_ctx_st { EVP_KEYEXCH *exchange; void *exchprovctx; + EVP_SIGNATURE *signature; + void *sigprovctx; + /* Legacy fields below */ /* Method associated with this operation */ |