WIP: Add AI generated code for adding ecdh and ffdh to benchmark #725

Draft
bjwtaylor wants to merge 2 commits from bjwtaylor/reintroduce-dh into development
bjwtaylor commented 2026-03-24 09:19:24 -05:00 (Migrated from github.com)

Description

Add AI generated code for adding ecdh and ffdh to benchmark resolves: https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/670

PR checklist

  • changelog provided
  • framework PR not required
  • mbedtls development PR not required because: No changes
  • mbedtls 3.6 PR not required because: No backports
  • tests provided
## Description Add AI generated code for adding ecdh and ffdh to benchmark resolves: https://github.com/Mbed-TLS/TF-PSA-Crypto/issues/670 ## PR checklist - [ ] **changelog** provided - [ ] **framework PR** not required - [ ] **mbedtls development PR** not required because: No changes - [ ] **mbedtls 3.6 PR** not required because: No backports - **tests** provided
mpg (Migrated from github.com) reviewed 2026-03-24 09:19:24 -05:00
davidhorstmann-arm (Migrated from github.com) reviewed 2026-03-24 09:19:24 -05:00
bjwtaylor commented 2026-03-24 09:22:53 -05:00 (Migrated from github.com)

The results of an academic exercise discussed with @mpg to generate code from a issue specification. What it's produced seems functional, though has some interesting design decisions such as the argument parsing and the use of MBEDTLS_SVC_KEY_ID_INIT when destroying a key. Thought it might be a good discussion point though.

The results of an academic exercise discussed with @mpg to generate code from a issue specification. What it's produced seems functional, though has some interesting design decisions such as the argument parsing and the use of MBEDTLS_SVC_KEY_ID_INIT when destroying a key. Thought it might be a good discussion point though.
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'bjwtaylor/reintroduce-dh:bjwtaylor/reintroduce-dh'
git switch 'bjwtaylor/reintroduce-dh'

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 'bjwtaylor/reintroduce-dh'
git switch 'bjwtaylor/reintroduce-dh'
git rebase 'development'
git switch 'development'
git merge --ff-only 'bjwtaylor/reintroduce-dh'
git switch 'bjwtaylor/reintroduce-dh'
git rebase 'development'
git switch 'development'
git merge --no-ff 'bjwtaylor/reintroduce-dh'
git switch 'development'
git merge --squash 'bjwtaylor/reintroduce-dh'
git switch 'development'
git merge --ff-only 'bjwtaylor/reintroduce-dh'
git switch 'development'
git merge 'bjwtaylor/reintroduce-dh'
git push origin 'development'
Sign in to join this conversation.
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!725
No description provided.