1sample:
2  description: An example to illustrate the usage of
3    crypto APIs
4  name: Crypto APIs
5common:
6  tags: crypto
7  min_ram: 20
8tests:
9  sample.drivers.crypto.mbedtls:
10    min_flash: 34
11    harness: console
12    extra_args: EXTRA_CONF_FILE=prj_mtls_shim.conf
13    integration_platforms:
14      - native_sim
15    harness_config:
16      type: multi_line
17      regex:
18        - ".*: ECB mode ENCRYPT - Match"
19        - ".*: ECB mode DECRYPT - Match"
20        - ".*: CBC mode ENCRYPT - Match"
21        - ".*: CBC mode DECRYPT - Match"
22        - ".*: CCM mode ENCRYPT - Match"
23        - ".*: CCM mode DECRYPT - Match"
24        - ".*: GCM mode ENCRYPT - Match"
25        - ".*: GCM mode DECRYPT - Match"
26  sample.drivers.crypto.stm32:
27    tags: crypto
28    filter: dt_compat_enabled("st,stm32-aes") or dt_compat_enabled("st,stm32-cryp")
29    integration_platforms:
30      - stm32l562e_dk
31    harness: console
32    harness_config:
33      type: multi_line
34      regex:
35        - ".*: Cipher Sample"
36        - ".*: ECB mode ENCRYPT - Match"
37        - ".*: ECB mode DECRYPT - Match"
38        - ".*: CBC mode ENCRYPT - Match"
39        - ".*: CBC mode DECRYPT - Match"
40        - ".*: CTR mode ENCRYPT - Match"
41        - ".*: CTR mode DECRYPT - Match"
42  sample.drivers.crypto.mcux_dcp:
43    tags: crypto
44    filter: dt_compat_enabled("nxp,mcux-dcp")
45    integration_platforms:
46      - mimxrt1064_evk
47    harness: console
48    harness_config:
49      type: multi_line
50      regex:
51        - ".*: Cipher Sample"
52        - ".*: ECB mode ENCRYPT - Match"
53        - ".*: ECB mode DECRYPT - Match"
54        - ".*: CBC mode ENCRYPT - Match"
55        - ".*: CBC mode DECRYPT - Match"
56  sample.drivers.crypto.si32:
57    tags: crypto
58    filter: dt_compat_enabled("silabs,si32-aes")
59    integration_platforms:
60      - sim3u1xx_dk
61    harness: console
62    harness_config:
63      type: multi_line
64      regex:
65        - ".*: Cipher Sample"
66        - ".*: ECB mode ENCRYPT - Match"
67        - ".*: ECB mode DECRYPT - Match"
68        - ".*: CBC mode ENCRYPT - Match"
69        - ".*: CBC mode DECRYPT - Match"
70        - ".*: CTR mode ENCRYPT - Match"
71        - ".*: CTR mode DECRYPT - Match"
72  sample.drivers.crypto.cc23x0_dma:
73    tags: crypto
74    filter: dt_compat_enabled("ti,cc23x0-aes") and dt_compat_enabled("ti,cc23x0-dma")
75    integration_platforms:
76      - lp_em_cc2340r5
77    harness: console
78    harness_config:
79      type: multi_line
80      regex:
81        - ".*: Cipher Sample"
82        - ".*: ECB mode ENCRYPT - Match"
83        - ".*: CTR mode ENCRYPT - Match"
84        - ".*: CTR mode DECRYPT - Match"
85    extra_configs:
86      - CONFIG_CRYPTO_CC23X0_DMA=y
87  sample.drivers.crypto.esp32:
88    tags: crypto
89    filter: dt_compat_enabled("espressif,esp32-aes")
90    integration_platforms:
91      - esp32_devkitc/esp32/procpu
92      - esp32s2_devkitc
93      - esp32s3_devkitc/esp32s3/procpu
94      - esp32c3_devkitc
95      - esp32c6_devkitc/esp32c6/hpcore
96      - esp32h2_devkitm
97    harness: console
98    harness_config:
99      type: multi_line
100      regex:
101        - ".*: Cipher Sample"
102        - ".*: ECB mode ENCRYPT - Match"
103        - ".*: ECB mode DECRYPT - Match"
104        - ".*: CBC mode ENCRYPT - Match"
105        - ".*: CBC mode DECRYPT - Match"
106        - ".*: CTR mode ENCRYPT - Match"
107        - ".*: CTR mode DECRYPT - Match"
108