Commit 89419b3
[nrf noup] Constant size for psa_core_key_attributes_t struct
-There is an inconsistency between PSA Crypto API specification in
Mbed TLS and in the interface exposed by TF-M for key representation
where an additional type has been added to hold information about owner.
This functionality is controlled by setting the configuration
MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER which configures the type
Mbed TLS internal type mbedtls_svc_key_id_t to a structure type of two
words and not as a single word compatible with the PSA Crypto API
type psk_key_id_t.
This commit adds a reserved word in psa_core_key_attributes_t after
the instance of mbedtls_svc_key_id_t to ensure that this structure
is binary compatible with PSA Crypto drivers that are built with
MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER.
This is a [noup] commit as this problem for our pre-built PSA
crypto drivers which is required to be compiled with the configuration
MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER enabled to ensure support
with and without TF-M using the same library.
ref: NCSDK-17464
Signed-off-by: Markus Swarowsky <markus.swarowsky@nordicsemi.no>
Signed-off-by: Frank Audun Kvamtrø <frank.kvamtro@nordicsemi.no>1 parent 127985b commit 89419b3
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
322 | 327 | | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
326 | 331 | | |
327 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
328 | 339 | | |
329 | 340 | | |
330 | 341 | | |
331 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
332 | 349 | | |
333 | 350 | | |
334 | 351 | | |
335 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
336 | 360 | | |
337 | 361 | | |
338 | 362 | | |
| |||
0 commit comments