-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_psa_crypto_driver_v2.yml
537 lines (504 loc) · 19 KB
/
add_psa_crypto_driver_v2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
---
__variable__:
psa_crypto_driver_version: 1.0.0
psa_crypto_driver_dir: components/psa_crypto_driver
components.psa_crypto_driver.ui_control:
section-type: component_support
component_info:
common:
fixed_id: nxp_psa_crypto_driver
type: software_component
ui_name: PSA CRYPTO DRIVER
ui_description: PSA crypto driver interface to use cryptographic library running on NXP crypto Hardware IP
ui_control: true
ui_category: Middleware
ui_release_specific: true
user_visible: false
manifest_name: psa_crypto_driver
ui_control_default: true
version: "${psa_crypto_driver_version}"
component_set_path:
repo_base_path: "${psa_crypto_driver_dir}"
__requires__:
- device.RW610
- device.RW612
# --------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------
# template for default config
# --------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------
components.psa_crypto_driver.template:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
contents:
cc-define:
MBEDTLS_CONFIG_FILE: '"mcux_mbedtls_config.h"'
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: "./"
files:
- source: mcux_mbedtls_config.h
- source: mbedtls_accelerator_config.h
component_info:
common:
description: psa_crypto_driver Template with config files.
version: "${psa_crypto_driver_version}"
type: project_template
full_name: psa_crypto_driver Template
change_log: "./ChangeLogKSDK.txt"
user_visible: false
manifest_name: psa crypto driver config template
cmsis_pack:
sub: psa_crypto_driver_template
components.psa_crypto_driver.config_default:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
contents:
cc-define:
MBEDTLS_CONFIG_FILE: '"mcux_mbedtls_config.h"'
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: "./"
files:
- source: mcux_mbedtls_config.h
- source: mbedtls_accelerator_config.h
component_info:
common:
description: Psa crypto driver library config files for mbedtls3x
version: "${psa_crypto_driver_version}"
type: software_component
full_name: Psa crypto driver config layer
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa crypto driver config_default
cmsis_pack:
sub: psa_crypto_driver_config_default
components.psa_crypto_driver.config_mbedcrypto:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
contents:
cc-define:
MBEDTLS_CONFIG_FILE: '"mcux_mbedcrypto_config.h"'
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: "./"
files:
- source: mcux_mbedcrypto_config.h
- source: mbedtls_accelerator_config.h
component_info:
common:
description: Psa crypto driver library config files for mbedcrypto
version: "${psa_crypto_driver_version}"
type: software_component
full_name: Psa crypto driver config layer
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa crypto driver config mbedcrypto only
cmsis_pack:
sub: psa_crypto_driver_config_mbedcrypto
# Temporary solution to add a functions which is not implemented in tfm via the IPC
components.psa_crypto_driver.psa_crypto_client:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control components.psa_crypto_driver.rng
contents:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: psa_crypto_client
files:
- source: psa_crypto_client/psa_crypto_client.c
component_info:
common:
description: Psa crypto driver library for ELS S50 with PSA crypto client
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_els_cryptoclient
full_name: Psa crypto driver port layer with PSA crypto client
cmsis_pack:
sub: psa_crypto_driver_psa_crypto_client
components.psa_crypto_driver.osal:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
contents:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: osal
files:
- source: osal/osal_mutex.h
component_info:
common:
description: OS Abstraction Layer for utilities for MCUX Psa crypto driver
version: "${psa_crypto_driver_version}"
type: software_component
full_name: Psa crypto driver osal layer
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_osal
cmsis_pack:
sub: psa_crypto_driver_osal
components.psa_crypto_driver.osal.frtos:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.osal
contents:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: osal/frtos
files:
- source: osal/frtos/osal_mutex.c
- source: osal/frtos/osal_mutex_platform.h
component_info:
common:
description: OS Abstraction Layer for utilities for Psa crypto driver with Free RTOS
version: "${psa_crypto_driver_version}"
type: software_component
full_name: Psa crypto driver osal layer for FRTOS
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_osal_frtos
cmsis_pack:
sub: psa_crypto_driver_osal_frtos
components.psa_crypto_driver.osal.baremetal:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.osal
contents:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: osal/baremetal
files:
- source: osal/baremetal/osal_mutex.c
- source: osal/baremetal/osal_mutex_platform.h
component_info:
common:
description: OS Abstraction Layer for utilities for baremetal Psa crypto driver
version: "${psa_crypto_driver_version}"
type: software_component
full_name: Psa crypto driver osal layer for bare metal implementations
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_osal_baremetal
cmsis_pack:
sub: psa_crypto_driver_osal_baremetal
components.psa_crypto_driver.rng:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
configuration:
tools:
__common__:
config:
__common__:
cc-define:
contents:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: rng
files:
- source: rng/psa_mcux_entropy.c
component_info:
common:
description: Psa crypto driver library for entropy for all RNG and TRNG based devices
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_port_mcux_rng
full_name: Psa crypto driver layer for RNG
cmsis_pack:
sub: psa_crypto_driver_rng
components.psa_crypto_driver.els_pkc.devices:
section-type: component_support
__requires__:
- device.RW612
- device.RW610
components.psa_crypto_driver.els_pkc_oracle:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.els_pkc.devices
configuration:
tools:
__common__:
config:
__common__:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
contents:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC: # enable usage of HW Accelerated apis in mbedcrypto for mcux stand-alone applications
MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: # by default enabled in tfm examples and Oracle also expects it to be enabled
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: els_pkc/oracle/
- repo_relative_path: els_pkc/oracle/inc
files:
- source: els_pkc/oracle/src/mcuxClPsaDriver_Oracle.c
- source: els_pkc/oracle/src/mcuxClPsaDriver_Oracle_ElsUtils.c
- source: els_pkc/oracle/src/mcuxClPsaDriver_Oracle_Utils.c
- source: els_pkc/oracle/inc/mcuxClPsaDriver_Oracle_ElsUtils.h
- source: els_pkc/oracle/inc/mcuxClPsaDriver_Oracle_Macros.h
- source: els_pkc/oracle/inc/mcuxClPsaDriver_Oracle_Utils.h
component_info:
common:
description: Psa crypto driver with oracle to support els_pkc
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: Psa crypto driver via oracle
full_name: Psa crypto driver with oracle files for els_pkc
cmsis_pack:
sub: psa_crypto_driver_oracle
components.psa_crypto_driver.els_pkc_psa_transparent:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.els_pkc.devices
configuration:
tools:
__common__:
config:
__common__:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
contents:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: els_pkc
- repo_relative_path: els_pkc/include/common
- repo_relative_path: els_pkc/include/transparent
files:
- source: els_pkc/els_pkc_crypto_primitives.h
- source: els_pkc/els_pkc_crypto_composites.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_init.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_init.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_hash.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_hash.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_aead.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_aead.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_cipher.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_cipher.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_key_generation.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_key_generation.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_mac.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_mac.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_asymmetric_encryption.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_asymmetric_encryption.h
- source: els_pkc/src/transparent/mcux_psa_els_pkc_asymmetric_signature.c
- source: els_pkc/include/transparent/mcux_psa_els_pkc_asymmetric_signature.h
component_info:
common:
description: Psa crypto driver for els_pkc
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_els_pkc_psa_transparent
full_name: Psa crypto driver layer via els_pkc
cmsis_pack:
sub: psa_crypto_driver_els_pkc_transparent
components.psa_crypto_driver.els_pkc_psa_opaque:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.els_pkc.devices
configuration:
tools:
__common__:
config:
__common__:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
contents:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: els_pkc
- repo_relative_path: els_pkc/include/common
- repo_relative_path: els_pkc/include/opaque
files:
- source: els_pkc/els_pkc_crypto_primitives.h
- source: els_pkc/els_pkc_crypto_composites.h
- source: els_pkc/src/opaque/mcux_psa_els_pkc_opaque_init.c
- source: els_pkc/include/opaque/mcux_psa_els_pkc_opaque_init.h
- source: els_pkc/src/opaque/mcux_psa_els_pkc_opaque_key_generation.c
- source: els_pkc/include/opaque/mcux_psa_els_pkc_opaque_key_generation.h
- source: els_pkc/src/opaque/mcux_psa_els_pkc_opaque_asymmetric_signature.c
- source: els_pkc/include/opaque/mcux_psa_els_pkc_opaque_asymmetric_signature.h
- source: els_pkc/src/opaque/mcux_psa_els_pkc_opaque_cipher.c
- source: els_pkc/include/opaque/mcux_psa_els_pkc_opaque_cipher.h
- source: els_pkc/src/opaque/mcux_psa_els_pkc_opaque_aead.c
- source: els_pkc/include/opaque/mcux_psa_els_pkc_opaque_aead.h
- source: els_pkc/src/opaque/mcux_psa_els_pkc_opaque_mac.c
- source: els_pkc/include/opaque/mcux_psa_els_pkc_opaque_mac.h
component_info:
common:
description: Psa crypto driver for ELS PKC
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: psa_crypto_driver_els_pkc_psa_opaque
full_name: Psa crypto driver layer via ELS PKC
cmsis_pack:
sub: psa_crypto_driver_els_pkc_opaque
components.psa_crypto_driver.psa_driver_els_pkc:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.els_pkc.devices
component.els_pkc.psa_driver
components.psa_crypto_driver.els_pkc_oracle
components.psa_crypto_driver.els_pkc_psa_opaque
components.psa_crypto_driver.els_pkc_psa_transparent
components.psa_crypto_driver.osal
components.psa_crypto_driver.osal.baremetal
driver.trng
configuration:
tools:
__common__:
config:
__common__:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
contents:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: "./"
- repo_relative_path: els_pkc
- repo_relative_path: els_pkc/include
- repo_relative_path: els_pkc/include/common
files:
- source: els_pkc/els_pkc_driver.h
- source: els_pkc/src/common/mcux_psa_els_pkc_common_init.c
- source: els_pkc/include/common/mcux_psa_els_pkc_common_init.h
- source: els_pkc/src/common/mcux_psa_els_pkc_entropy.c
- source: els_pkc/include/common/mcux_psa_els_pkc_entropy.h
component_info:
common:
description: Psa crypto driver library to be used with els_pkc
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: false
manifest_name: mbedtls_els_pkc
full_name: Psa crypto driver layer to be used with els_pkc
cmsis_pack:
sub: psa_crypto_driver_for_els_pkc
# --------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------
# Interface that can be used via mbedcrypto
# --------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------
components.psa_crypto_driver.psa_driver_els_pkc_with_mbedcrypto:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.psa_driver_els_pkc
components.psa_crypto_driver.config_mbedcrypto
middleware.mbedcrypto
configuration:
tools:
__common__:
config:
__common__:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
contents:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
MBEDTLS_PSA_CRYPTO_C:
MBEDTLS_PSA_CRYPTO_DRIVERS:
MBEDTLS_CONFIG_FILE: '"mcux_mbedcrypto_config.h"'
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: "./"
component_info:
common:
description: Psa crypto driver library to be used with els_pkc via mbedcrypto
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: true
manifest_name: psa_crypto_driver_els_pkc_mbedcrypto
full_name: Psa crypto driver layer to be used with els_pkc via mbedcrypto
cmsis_pack:
sub: psa_crypto_driver_for_els_pkc_via_mbedcrypto
# --------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------
# Interface that can be used via mbedtls3x
# --------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------
components.psa_crypto_driver.psa_driver_els_pkc_with_mbedtls3x:
section-type: component
__requires__:
- components.psa_crypto_driver.ui_control
components.psa_crypto_driver.psa_driver_els_pkc
components.psa_crypto_driver.config_default
middleware.mbedtls3x
configuration:
tools:
__common__:
config:
__common__:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
contents:
cc-define:
PSA_CRYPTO_DRIVER_ELS_PKC:
MBEDTLS_CONFIG_FILE: '"mcux_mbedtls_config.h"'
repo_base_path: "${psa_crypto_driver_dir}"
project_base_path: component/psa_crypto_driver
cc-include:
- repo_relative_path: "./"
component_info:
common:
description: Psa crypto driver library to be used with els_pkc via mbedtls3x
type: software_component
version: "${psa_crypto_driver_version}"
change_log: "./ChangeLogKSDK.txt"
component_bundle: bundles.drivers
user_visible: true
manifest_name: psa_crypto_driver_els_pkc_via_mbedtls3x
full_name: Psa crypto driver layer to be used with els_pkc via mbedtls3x
cmsis_pack:
sub: psa_crypto_driver_for_els_pkc_via_mbedtls3x