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

Commits on Mar 8, 2024

  1. parsec-openssl2: Add ossl_algorithm macro

    This macro makes creating OSSL_ALGORITHM structures from rust code
    easier.
    
    Signed-off-by: Tomás González <[email protected]>
    tgonzalezorlandoarm committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    732bd0c View commit details
    Browse the repository at this point in the history
  2. keymgmt: KEYMGMT library <-> provider functions

    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]>
    tgonzalezorlandoarm committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    f33e362 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Add OSSL_FUNC_KEYMGMT_FREE

    Signed-off-by: Tomás González <[email protected]>
    tgonzalezorlandoarm committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    d256f8b View commit details
    Browse the repository at this point in the history
  2. keymgmt: Add OSSL_FUNC_KEYMGMT_SETTABLE_PARAMS

    The only settable parameters for a Key Object Context should be
    PARSEC_PROVIDER_KEY_NAME.
    
    Signed-off-by: Tomás González <[email protected]>
    tgonzalezorlandoarm committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    60af7b1 View commit details
    Browse the repository at this point in the history
  3. kmgmt: Add OSSL_FUNC_KEYMGMT_SET_PARAMS

    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]>
    tgonzalezorlandoarm committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    0fd1562 View commit details
    Browse the repository at this point in the history
  4. keymgmt: Add OSSL_FUNC_KEYMGMT_IMPORT

    Signed-off-by: Tomás González <[email protected]>
    tgonzalezorlandoarm committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    4e75a16 View commit details
    Browse the repository at this point in the history
  5. keymgmt: Add Key Objects checks for filled data

    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]>
    tgonzalezorlandoarm committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    ee34784 View commit details
    Browse the repository at this point in the history