Skip to content

Using a provider for signing #22372

Answered by mattcaswell
jjeffroberts asked this question in Q&A
Discussion options

You must be logged in to vote

For signatures you need to:

  1. Implement a key manager in the provider

  2. Implement the relevant signature functions

See the following man page for information about writing a key manager:

https://www.openssl.org/docs/man3.1/man7/provider-keymgmt.html

This page gives information on the relevant "signing" functions:

https://www.openssl.org/docs/man3.1/man7/provider-signature.html

The function call EVP_PKEY_sign_init will be passed to the provider's OSSL_FUNC_signature_sign_init function, passing a reference to the key established via the key manager.

You might like to take some inspiration from the "fake-rsa" provider in our test code here:

https://github.com/openssl/openssl/blob/master/te…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jjeffroberts
Comment options

@mattcaswell
Comment options

Answer selected by jjeffroberts
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants