Skip to content

Add support for Key Wrapping using PSA Crypto API - #315

Open
tpambor wants to merge 2 commits into
Mbed-TLS:mainfrom
tpambor:key-wrap
Open

Add support for Key Wrapping using PSA Crypto API#315
tpambor wants to merge 2 commits into
Mbed-TLS:mainfrom
tpambor:key-wrap

Conversation

@tpambor

@tpambor tpambor commented Aug 2, 2026

Copy link
Copy Markdown

Description

Add support for the PSA key wrap algorithms and keys.

PR checklist

Please add the numbers (or links) of the associated pull requests for consuming branches. You can omit branches where this pull request is not needed.

tpambor added 2 commits August 2, 2026 10:05
Recognize the KW and KWP block cipher modes as key wrap algorithms
and add the WRAP and UNWRAP usage flags to the KEY_WRAP algorithm
category.

Currently, only AES-KW and AES-KWP are supported by tf-psa-crypto.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
Add exercise_key_wrap_key() to exercise key wrap keys using
wrap and unwrap operations and add the WRAP and UNWRAP usage
flags to the key usage flags returned by
mbedtls_test_psa_usage_to_exercise().

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
@tpambor
tpambor marked this pull request as ready for review August 2, 2026 11:26
@yiwu0b11 yiwu0b11 added enhancement New feature or request needs-review Every commit must be reviewed by at least two team members. needs-reviewer This PR needs someone to pick it up for review priority-medium Medium priority - this can be reviewed as time permits size-xs Estimated task size: extra small (a few hours at most) labels Aug 3, 2026
@gilles-peskine-arm
gilles-peskine-arm self-requested a review August 4, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request needs-review Every commit must be reviewed by at least two team members. needs-reviewer This PR needs someone to pick it up for review priority-medium Medium priority - this can be reviewed as time permits size-xs Estimated task size: extra small (a few hours at most)

Projects

Status: No status
Status: In Development

Development

Successfully merging this pull request may close these issues.

3 participants