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
8  arch_exclude: xtensa
9tests:
10  sample.drivers.crypto.mbedtls:
11    min_flash: 34
12    harness: console
13    extra_args: EXTRA_CONF_FILE=prj_mtls_shim.conf
14    integration_platforms:
15      - native_sim
16    harness_config:
17      type: multi_line
18      regex:
19        - ".*: Cipher Sample"
20        - ".*: CBC Mode"
21        - ".*: CTR Mode"
22        - ".*: CCM Mode"
23        - ".*: GCM Mode"
24  sample.drivers.crypto.stm32:
25    tags: crypto
26    filter: dt_compat_enabled("st,stm32-aes") or dt_compat_enabled("st,stm32-cryp")
27    integration_platforms:
28      - stm32l562e_dk
29    harness: console
30    harness_config:
31      type: multi_line
32      regex:
33        - ".*: Cipher Sample"
34        - ".*: ECB mode ENCRYPT - Match"
35        - ".*: ECB mode DECRYPT - Match"
36        - ".*: CBC mode ENCRYPT - Match"
37        - ".*: CBC mode DECRYPT - Match"
38        - ".*: CTR mode ENCRYPT - Match"
39        - ".*: CTR mode DECRYPT - Match"
40  sample.drivers.crypto.mcux_dcp:
41    tags: crypto
42    filter: dt_compat_enabled("nxp,mcux-dcp")
43    integration_platforms:
44      - mimxrt1064_evk
45    harness: console
46    harness_config:
47      type: multi_line
48      regex:
49        - ".*: Cipher Sample"
50        - ".*: ECB mode ENCRYPT - Match"
51        - ".*: ECB mode DECRYPT - Match"
52        - ".*: CBC mode ENCRYPT - Match"
53        - ".*: CBC mode DECRYPT - Match"
54  sample.drivers.crypto.si32:
55    tags: crypto
56    filter: dt_compat_enabled("silabs,si32-aes")
57    integration_platforms:
58      - sim3u1xx_dk
59    harness: console
60    harness_config:
61      type: multi_line
62      regex:
63        - ".*: Cipher Sample"
64        - ".*: ECB mode ENCRYPT - Match"
65        - ".*: ECB mode DECRYPT - Match"
66        - ".*: CBC mode ENCRYPT - Match"
67        - ".*: CBC mode DECRYPT - Match"
68        - ".*: CTR mode ENCRYPT - Match"
69        - ".*: CTR mode DECRYPT - Match"
70  sample.drivers.crypto.cc23x0_dma:
71    tags: crypto
72    filter: dt_compat_enabled("ti,cc23x0-aes") and dt_compat_enabled("ti,cc23x0-dma")
73    integration_platforms:
74      - lp_em_cc2340r5
75    harness: console
76    harness_config:
77      type: multi_line
78      regex:
79        - ".*: Cipher Sample"
80        - ".*: ECB mode ENCRYPT - Match"
81        - ".*: CTR mode ENCRYPT - Match"
82        - ".*: CTR mode DECRYPT - Match"
83    extra_configs:
84      - CONFIG_CRYPTO_CC23X0_DMA=y
85