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

Remove transparent key check in psa_asymmetric_encrypt/decrypto() #8481

Closed
wants to merge 1 commit into from

Commits on Nov 6, 2023

  1. crypto: Remove transparent key check in psa_asymmetric_encrypt()

    In `psa_asymmetric_encrypt()` and `psa_asymmetric_decrypt()`,
    `psa_get_and_lock_transparent_key_slot_with_policy()` is called to check
    if the key is transparent. The check is incorrect, it always fails in
    the case of opaque driver.
    
    The commit replaced `psa_get_and_lock_transparent_key_slot_with_policy`
    with `psa_get_and_lock_key_slot_with_policy`.
    
    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    8c7f914 View commit details
    Browse the repository at this point in the history