Skip to content

Conversation

@mpg
Copy link
Contributor

@mpg mpg commented Nov 12, 2025

Description

Alternative approach to computing d, just to check if it changes anything noticeable in terms of performance.

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:
  • development PR provided # | not required because:
  • TF-PSA-Crypto PR provided # | not required because:
  • framework PR provided Mbed-TLS/mbedtls-framework# | not required
  • 3.6 PR provided # | not required because:
  • tests provided | not required because:

mpg added 3 commits November 10, 2025 12:50
Also strengthen the tests a bit. In particular, when the DH flag is not
set, we want the generated primes to have the exact bit length
requested.

This ensures for RSA that both P and Q will have the same limb size,
which simplifies the use of new bignum.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
@mpg mpg self-assigned this Nov 12, 2025
@mpg mpg changed the base branch from development to mbedtls-3.6 November 14, 2025 09:25
@mpg mpg changed the title [prototype] Improve rsa keygen [prototype] [3.6] Improve rsa keygen Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant