Skip to content

Commit

Permalink
Changelog entry for the move from key_ext to key_custom functions
Browse files Browse the repository at this point in the history
Document psa_generate_key_ext() and psa_key_derivation_output_key_ext() as
deprecated in favor of psa_generate_key_custom() and
psa_key_derivation_output_key_custom(), and no longer declared in C++ builds.

Resolves Mbed-TLS#9020.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
  • Loading branch information
gilles-peskine-arm committed Jun 6, 2024
1 parent 8a95bf4 commit 0fe1264
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ChangeLog.d/psa_generate_key_custom.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
API changes
* The experimental functions psa_generate_key_ext() and
psa_key_derivation_output_key_ext() are no longer declared when compiling
in C++. This resolves a build failure under C++ compilers that do not
support flexible array members (a C99 feature not adopted by C++).
Fixes #9020.

New deprecations
* The experimental functions psa_generate_key_ext() and
psa_key_derivation_output_key_ext() are deprecated in favor of
psa_generate_key_custom() and psa_key_derivation_output_key_custom().
They have almost exactly the same interface, but the variable-length
data is passed in a separate parameter instead of a flexible array
member.

0 comments on commit 0fe1264

Please sign in to comment.