SPAKE2+: Prover key pair import and export #819

Open
sigvartmh wants to merge 9 commits from sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342 into development
sigvartmh commented 2026-06-21 16:49:04 -05:00 (Migrated from github.com)

Description

Extend psa_import_key/psa_export_key() to handle PSA_KEY_TYPE_SPAKE2P_KEY_PAIR on top of the public-key support from https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/817 which should be merged first.

This addresses Mbed-TLS issue https://github.com/Mbed-TLS/mbedtls/issues/9343

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

  • changelog provided | not required because:
  • framework PR provided Mbed-TLS/mbedtls-framework# | not required
  • TF-PSA-Crypto development PR provided # | not required because:
  • mbedtls development PR provided Mbed-TLS/mbedtls# | not required because:
  • tests provided
## Description Extend `psa_import_key/psa_export_key()` to handle `PSA_KEY_TYPE_SPAKE2P_KEY_PAIR` on top of the public-key support from https://github.com/Mbed-TLS/TF-PSA-Crypto/pull/817 which should be merged first. This addresses Mbed-TLS issue https://github.com/Mbed-TLS/mbedtls/issues/9343 ## PR checklist Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line. If the provided content is part of the present PR remove the # symbol. - [X] **changelog** provided | not required because: - [X] **framework PR** provided Mbed-TLS/mbedtls-framework# | not required - [X] **TF-PSA-Crypto development PR** provided # | not required because: - [X] **mbedtls development PR** provided Mbed-TLS/mbedtls# | not required because: - [X] **tests** provided
sigvartmh (Migrated from github.com) reviewed 2026-06-21 16:51:10 -05:00
@ -108,4 +108,11 @@
#error "PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS defined, but not all prerequisites"
sigvartmh (Migrated from github.com) commented 2026-06-21 16:51:10 -05:00

Eventually we will strip this config out as in SPAKE2+ keys are password derived so generating a key-pair does not make sense for this use-case.

Eventually we will strip this config out as in SPAKE2+ keys are password derived so generating a key-pair does not make sense for this use-case.
This pull request has changes conflicting with the target branch.
  • include/psa/crypto_extra.h
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342:sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git switch 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'development'
git merge --no-ff 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git switch 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git rebase 'development'
git switch 'development'
git merge --ff-only 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git switch 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git rebase 'development'
git switch 'development'
git merge --no-ff 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git switch 'development'
git merge --squash 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git switch 'development'
git merge --ff-only 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git switch 'development'
git merge 'sigvartmh/pr/spake2p-9343-key-pair-import-export-depends-on-9342'
git push origin 'development'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/TF-PSA-Crypto!819
No description provided.