Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSSL_FUNC_KEYMGMT_HAS #12

Closed
wants to merge 7 commits into from

Conversation

tgonzalezorlandoarm
Copy link
Member

@tgonzalezorlandoarm tgonzalezorlandoarm commented Mar 11, 2024

Implement:

  1. OSSL_FUNC_KEYMGMT_HAS

for key objects as indicated by
https://www.openssl.org/docs/man3.0/man7/provider-keymgmt.html

This currently only checks whether selection is
'OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS' and the key_name has been
filled, as currently we don't support any other selection/data
in Key Objects.

This macro makes creating OSSL_ALGORITHM structures from rust code
easier.

Signed-off-by: Tomás González <[email protected]>
Start implemententing the keymgmt functions:

 * parsec_provider_query now returns the function table for
   OSSL_OP_KEYMGMT
 * Implement OSSL_FUNC_keymgmt_new, returning a dummy Key Object.

Signed-off-by: Tomás González <[email protected]>
Signed-off-by: Tomás González <[email protected]>
The only settable parameters for a Key Object Context should be
PARSEC_PROVIDER_KEY_NAME.

Signed-off-by: Tomás González <[email protected]>
Implement the OSSL_FUNC_KEYMGMT_SET_PARAMS, where the only parameter
to be set is the key name, PARSEC_PROVIDER_KEY_NAME.

Signed-off-by: Tomás González <[email protected]>
Implement:

 1. OSSL_FUNC_KEYMGMT_HAS

for key objects as indicated by
https://www.openssl.org/docs/man3.0/man7/provider-keymgmt.html

This currently only checks whether selection is
'OSSL_KEYMGMT_SELECT_OTHER_PARAMETERS' and the key_name has been
filled, as currently we don't support any other selection/data
in Key Objects.

Signed-off-by: Tomás González <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant