From 4a745e3c313c7e86a8f7643f9ff741d4ed69e1e3 Mon Sep 17 00:00:00 2001 From: Tomasz Chyrowicz Date: Fri, 22 Nov 2024 16:56:33 +0100 Subject: [PATCH] suit: Add tests for severable sequences Add a test that verifies installation of manifests with severable sequences. Update suit-processor revision to make it possible. Ref: NCSDK-29653 Signed-off-by: Tomasz Chyrowicz --- .../suit/manifest_common/regenerate_all.sh | 12 + .../manifest/sample_valid_root_severable.yaml | 214 ++++++++++++++++++ .../sample_valid_root_severable_54.yaml | 214 ++++++++++++++++++ .../manifest/sample_valid_severable.yaml | 146 ++++++++++++ .../manifest/sample_valid_severable_54.yaml | 146 ++++++++++++ .../src/manifest_valid_app_severable.c | 87 +++++++ .../src/manifest_valid_app_severable_54.c | 87 +++++++ .../manifest/src/manifest_valid_severable.c | 146 ++++++++++++ .../src/manifest_valid_severable_54.c | 146 ++++++++++++ .../orchestrator_sdfw/src/test_boot_mode.c | 45 ++++ west.yml | 2 +- 11 files changed, 1244 insertions(+), 1 deletion(-) create mode 100644 tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable.yaml create mode 100644 tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable_54.yaml create mode 100644 tests/subsys/suit/orchestrator/manifest/sample_valid_severable.yaml create mode 100644 tests/subsys/suit/orchestrator/manifest/sample_valid_severable_54.yaml create mode 100644 tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable.c create mode 100644 tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable_54.c create mode 100644 tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable.c create mode 100644 tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable_54.c diff --git a/tests/subsys/suit/manifest_common/regenerate_all.sh b/tests/subsys/suit/manifest_common/regenerate_all.sh index daab173e4cdc..20b315d6db55 100755 --- a/tests/subsys/suit/manifest_common/regenerate_all.sh +++ b/tests/subsys/suit/manifest_common/regenerate_all.sh @@ -89,6 +89,10 @@ declare -A dependency_envelopes=( ../orchestrator/manifest/src/manifest_valid_app_54.c" ["../orchestrator/manifest/sample_valid.yaml"]=" ../orchestrator/manifest/src/manifest_valid_app.c" + ["../orchestrator/manifest/sample_valid_severable_54.yaml"]=" + ../orchestrator/manifest/src/manifest_valid_app_severable_54.c" + ["../orchestrator/manifest/sample_valid_severable.yaml"]=" + ../orchestrator/manifest/src/manifest_valid_app_severable.c" ) declare -A root_envelopes=( ["../storage/manifest/manifest_root.yaml"]=" @@ -101,6 +105,10 @@ declare -A root_envelopes=( ../orchestrator/manifest/src/manifest_valid_54.c" ["../orchestrator/manifest/sample_valid_root.yaml"]=" ../orchestrator/manifest/src/manifest_valid.c" + ["../orchestrator/manifest/sample_valid_root_severable_54.yaml"]=" + ../orchestrator/manifest/src/manifest_valid_severable_54.c" + ["../orchestrator/manifest/sample_valid_root_severable.yaml"]=" + ../orchestrator/manifest/src/manifest_valid_severable.c" ) declare -A envelope_dependency_names=( ["../storage/manifest/manifest_app.yaml"]="app.suit" @@ -114,6 +122,10 @@ declare -A envelope_dependency_names=( ["../orchestrator/manifest/sample_valid.yaml"]="sample_app_posix.suit" ["../orchestrator/manifest/sample_valid_root_54.yaml"]="sample_root.suit" ["../orchestrator/manifest/sample_valid_root.yaml"]="sample_root_posix.suit" + ["../orchestrator/manifest/sample_valid_severable_54.yaml"]="sample_app_severable.suit" + ["../orchestrator/manifest/sample_valid_severable.yaml"]="sample_app_severable_posix.suit" + ["../orchestrator/manifest/sample_valid_root_severable_54.yaml"]="sample_root_severable.suit" + ["../orchestrator/manifest/sample_valid_root_severable.yaml"]="sample_root_severable_posix.suit" ) diff --git a/tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable.yaml b/tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable.yaml new file mode 100644 index 000000000000..d855c9eecf60 --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable.yaml @@ -0,0 +1,214 @@ +SUIT_Envelope_Tagged: + suit-authentication-wrapper: + SuitDigest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-manifest: + suit-manifest-version: 1 + suit-manifest-sequence-number: 1 + suit-common: + suit-components: + - - CAND_MFST + - 0 + - - INSTLD_MFST + - RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_app + suit-shared-sequence: + - suit-directive-set-component-index: 1 + - suit-directive-override-parameters: + suit-parameter-vendor-identifier: + RFC4122_UUID: nordicsemi.com + suit-parameter-class-identifier: + RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_root + + - suit-condition-vendor-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-class-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-dependencies: + # Key is the index of suit-components that describe the dependency manifest + "0": {} + "1": {} + + suit-validate: + - suit-directive-set-component-index: 1 + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-invoke: + - suit-directive-set-component-index: 1 + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + ### + # All SUIT_Severable_Members_Choice + ### + suit-payload-fetch: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-install: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-text: + suit-digest-algorithm-id: cose-alg-sha-256 + + ### + # All severable-manifest-members-choice-extensions + ### + suit-dependency-resolution: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-candidate-verification: + suit-digest-algorithm-id: cose-alg-sha-256 + + suit-manifest-component-id: + - INSTLD_MFST + - RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_root + + ### + # All SUIT_Severable_Manifest_Members + ### + suit-payload-fetch: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app_posix.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-install: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app_posix.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + # Manifest copied to I/APP s a result of sequence completion + # Manifest copied to I/ROOT s a result of sequence completion + + suit-text: + en: + '["CAND_MFST", 0]': + suit-text-vendor-name: Nordic Semiconductor ASA + suit-text-model-name: test + suit-text-vendor-domain: nordicsemi.com + suit-text-model-info: The test root manifest + suit-text-component-description: Sample root manifest + suit-text-component-version: v1.0.0 + + ### + # All SUIT_severable-members-extensions + ### + suit-dependency-resolution: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app_posix.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-candidate-verification: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app_posix.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-integrated-dependencies: + '#app.suit': sample_app_severable_posix.suit diff --git a/tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable_54.yaml b/tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable_54.yaml new file mode 100644 index 000000000000..fefdfec11607 --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/sample_valid_root_severable_54.yaml @@ -0,0 +1,214 @@ +SUIT_Envelope_Tagged: + suit-authentication-wrapper: + SuitDigest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-manifest: + suit-manifest-version: 1 + suit-manifest-sequence-number: 1 + suit-common: + suit-components: + - - CAND_MFST + - 0 + - - INSTLD_MFST + - RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_app + suit-shared-sequence: + - suit-directive-set-component-index: 1 + - suit-directive-override-parameters: + suit-parameter-vendor-identifier: + RFC4122_UUID: nordicsemi.com + suit-parameter-class-identifier: + RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_root + + - suit-condition-vendor-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-class-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-dependencies: + # Key is the index of suit-components that describe the dependency manifest + "0": {} + "1": {} + + suit-validate: + - suit-directive-set-component-index: 1 + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-invoke: + - suit-directive-set-component-index: 1 + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + ### + # All SUIT_Severable_Members_Choice + ### + suit-payload-fetch: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-install: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-text: + suit-digest-algorithm-id: cose-alg-sha-256 + + ### + # All severable-manifest-members-choice-extensions + ### + suit-dependency-resolution: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-candidate-verification: + suit-digest-algorithm-id: cose-alg-sha-256 + + suit-manifest-component-id: + - INSTLD_MFST + - RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_root + + ### + # All SUIT_Severable_Manifest_Members + ### + suit-payload-fetch: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-install: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + # Manifest copied to I/APP s a result of sequence completion + # Manifest copied to I/ROOT s a result of sequence completion + + suit-text: + en: + '["CAND_MFST", 0]': + suit-text-vendor-name: Nordic Semiconductor ASA + suit-text-model-name: test + suit-text-vendor-domain: nordicsemi.com + suit-text-model-info: The test root manifest + suit-text-component-description: Sample root manifest + suit-text-component-version: v1.0.0 + + ### + # All SUIT_severable-members-extensions + ### + suit-dependency-resolution: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-candidate-verification: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#app.suit' + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + envelope: sample_app.suit + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-dependency-integrity: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-directive-process-dependency: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-integrated-dependencies: + '#app.suit': sample_app_severable.suit diff --git a/tests/subsys/suit/orchestrator/manifest/sample_valid_severable.yaml b/tests/subsys/suit/orchestrator/manifest/sample_valid_severable.yaml new file mode 100644 index 000000000000..7dd49fd5c1f2 --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/sample_valid_severable.yaml @@ -0,0 +1,146 @@ +SUIT_Envelope_Tagged: + suit-authentication-wrapper: + SuitDigest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-manifest: + suit-manifest-version: 1 + suit-manifest-sequence-number: 1 + suit-common: + suit-components: + - - CAND_IMG + - 0 + - - MEM + - 0 + - 524288 + - 4096 + suit-shared-sequence: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + file: file.bin + - suit-directive-set-component-index: 1 + - suit-directive-override-parameters: + suit-parameter-vendor-identifier: + RFC4122_UUID: nordicsemi.com + suit-parameter-class-identifier: + RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_app + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + file: file.bin + suit-parameter-image-size: + file: file.bin + - suit-condition-vendor-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-class-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-validate: + - suit-directive-set-component-index: 1 + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-invoke: + - suit-directive-set-component-index: 1 + - suit-directive-invoke: + - suit-send-record-failure + + ### + # All SUIT_Severable_Members_Choice + ### + suit-payload-fetch: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-install: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-text: + suit-digest-algorithm-id: cose-alg-sha-256 + + ### + # All severable-manifest-members-choice-extensions + ### + suit-dependency-resolution: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-candidate-verification: + suit-digest-algorithm-id: cose-alg-sha-256 + + suit-manifest-component-id: + - INSTLD_MFST + - RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_app + + ### + # All SUIT_Severable_Manifest_Members + ### + suit-payload-fetch: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-install: + - suit-directive-set-component-index: 1 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-text: + en: + '["MEM", 0, 524288, 4096]': + suit-text-vendor-name: Nordic Semiconductor ASA + suit-text-model-name: test + suit-text-vendor-domain: nordicsemi.com + suit-text-model-info: The test application + suit-text-component-description: Sample application for tests + suit-text-component-version: v1.0.0 + + ### + # All SUIT_severable-members-extensions + ### + suit-dependency-resolution: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-candidate-verification: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-integrated-payloads: + '#file.bin': file.bin diff --git a/tests/subsys/suit/orchestrator/manifest/sample_valid_severable_54.yaml b/tests/subsys/suit/orchestrator/manifest/sample_valid_severable_54.yaml new file mode 100644 index 000000000000..94ba2db03e10 --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/sample_valid_severable_54.yaml @@ -0,0 +1,146 @@ +SUIT_Envelope_Tagged: + suit-authentication-wrapper: + SuitDigest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-manifest: + suit-manifest-version: 1 + suit-manifest-sequence-number: 1 + suit-common: + suit-components: + - - CAND_IMG + - 0 + - - MEM + - 0 + - 0x0E0AA000 + - 4096 + suit-shared-sequence: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + file: file.bin + - suit-directive-set-component-index: 1 + - suit-directive-override-parameters: + suit-parameter-vendor-identifier: + RFC4122_UUID: nordicsemi.com + suit-parameter-class-identifier: + RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_app + suit-parameter-image-digest: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-digest-bytes: + file: file.bin + suit-parameter-image-size: + file: file.bin + - suit-condition-vendor-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + - suit-condition-class-identifier: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-validate: + - suit-directive-set-component-index: 1 + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-invoke: + - suit-directive-set-component-index: 1 + - suit-directive-invoke: + - suit-send-record-failure + + ### + # All SUIT_Severable_Members_Choice + ### + suit-payload-fetch: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-install: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-text: + suit-digest-algorithm-id: cose-alg-sha-256 + + ### + # All severable-manifest-members-choice-extensions + ### + suit-dependency-resolution: + suit-digest-algorithm-id: cose-alg-sha-256 + suit-candidate-verification: + suit-digest-algorithm-id: cose-alg-sha-256 + + suit-manifest-component-id: + - INSTLD_MFST + - RFC4122_UUID: + namespace: nordicsemi.com + name: test_sample_app + + ### + # All SUIT_Severable_Manifest_Members + ### + suit-payload-fetch: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-install: + - suit-directive-set-component-index: 1 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-text: + en: + '["MEM", 0, 235577344, 4096]': + suit-text-vendor-name: Nordic Semiconductor ASA + suit-text-model-name: test + suit-text-vendor-domain: nordicsemi.com + suit-text-model-info: The test application + suit-text-component-description: Sample application for tests + suit-text-component-version: v1.0.0 + + ### + # All SUIT_severable-members-extensions + ### + suit-dependency-resolution: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + suit-candidate-verification: + - suit-directive-set-component-index: 0 + - suit-directive-override-parameters: + suit-parameter-uri: '#file.bin' + - suit-directive-fetch: + - suit-send-record-failure + - suit-condition-image-match: + - suit-send-record-success + - suit-send-record-failure + - suit-send-sysinfo-success + - suit-send-sysinfo-failure + + suit-integrated-payloads: + '#file.bin': file.bin diff --git a/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable.c b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable.c new file mode 100644 index 000000000000..4af64cbc980b --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable.c @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2023 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +#if defined(CONFIG_SOC_NRF52840) || defined(CONFIG_BOARD_NATIVE_POSIX) +#include +#include + +/** @brief Valid SUIT envelope, based on ../manifest/sample_valid_severable.yaml + * + */ +uint8_t manifest_valid_app_severable_buf[] = { + 0xD8, 0x6B, 0xA8, 0x02, 0x58, 0x7A, 0x82, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x25, 0xB7, + 0x0D, 0xD4, 0x9F, 0xD5, 0xB4, 0x15, 0x81, 0x37, 0x43, 0xCB, 0xE5, 0x16, 0x08, 0x10, 0x30, + 0x44, 0xA6, 0x91, 0xFB, 0xEC, 0x53, 0xB7, 0x92, 0x54, 0xF9, 0x6D, 0xD5, 0xBB, 0x51, 0xD5, + 0x58, 0x51, 0xD2, 0x84, 0x4A, 0xA2, 0x01, 0x26, 0x04, 0x45, 0x1A, 0x40, 0x00, 0x00, 0x00, + 0xA0, 0xF6, 0x58, 0x40, 0x62, 0x9A, 0x43, 0x39, 0x4B, 0xEB, 0xD7, 0xBE, 0xC2, 0x8A, 0x20, + 0x54, 0xE6, 0x4A, 0xA3, 0x42, 0x3E, 0x72, 0xC3, 0x15, 0xCD, 0x60, 0x3D, 0x02, 0x41, 0xF8, + 0x79, 0xAD, 0x10, 0x44, 0x9D, 0x9C, 0x79, 0xC5, 0x48, 0xF5, 0xE0, 0xAD, 0xAD, 0xAE, 0xF5, + 0x46, 0x0A, 0x8D, 0x02, 0xB9, 0xFB, 0xD2, 0x98, 0xFE, 0x99, 0x5D, 0xFF, 0xC7, 0x74, 0xA0, + 0x2C, 0xC4, 0x8F, 0x33, 0x68, 0xDC, 0x8C, 0x98, 0x03, 0x59, 0x01, 0x97, 0xAB, 0x01, 0x01, + 0x02, 0x01, 0x03, 0x58, 0xA8, 0xA2, 0x02, 0x82, 0x82, 0x49, 0x68, 0x43, 0x41, 0x4E, 0x44, + 0x5F, 0x49, 0x4D, 0x47, 0x41, 0x00, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, + 0x1A, 0x00, 0x08, 0x00, 0x00, 0x43, 0x19, 0x10, 0x00, 0x04, 0x58, 0x83, 0x8C, 0x0C, 0x00, + 0x14, 0xA1, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, 0x54, 0xBF, 0x8E, 0x8C, + 0x50, 0xFB, 0x4F, 0xBC, 0x2C, 0xFA, 0xEB, 0x04, 0x53, 0x41, 0xC9, 0x80, 0x6D, 0xEA, 0xBD, + 0xCB, 0x41, 0x54, 0xFB, 0x79, 0xCC, 0xA4, 0xF0, 0xC9, 0x8C, 0x12, 0x0C, 0x01, 0x14, 0xA4, + 0x01, 0x50, 0x76, 0x17, 0xDA, 0xA5, 0x71, 0xFD, 0x5A, 0x85, 0x8F, 0x94, 0xE2, 0x8D, 0x73, + 0x5C, 0xE9, 0xF4, 0x02, 0x50, 0x5B, 0x46, 0x9F, 0xD1, 0x90, 0xEE, 0x53, 0x9C, 0xA3, 0x18, + 0x68, 0x1B, 0x03, 0x69, 0x5E, 0x36, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, + 0x54, 0xBF, 0x8E, 0x8C, 0x50, 0xFB, 0x4F, 0xBC, 0x2C, 0xFA, 0xEB, 0x04, 0x53, 0x41, 0xC9, + 0x80, 0x6D, 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0, 0x12, 0x82, 0x2F, 0x58, 0x20, 0xD0, 0x04, 0x42, 0x1F, 0x9B, + 0x91, 0xCA, 0x5E, 0x0C, 0xE8, 0x53, 0x1E, 0x54, 0x8E, 0xDC, 0x3F, 0xEF, 0x00, 0x0A, 0x2F, + 0x3F, 0x9F, 0x77, 0x77, 0x46, 0xA3, 0xB5, 0x4C, 0x66, 0xE2, 0x70, 0xC0, 0x05, 0x82, 0x4C, + 0x6B, 0x49, 0x4E, 0x53, 0x54, 0x4C, 0x44, 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x50, 0x5B, 0x46, + 0x9F, 0xD1, 0x90, 0xEE, 0x53, 0x9C, 0xA3, 0x18, 0x68, 0x1B, 0x03, 0x69, 0x5E, 0x36, 0x10, + 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, + 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x14, 0x54, 0x88, 0x0C, 0x01, 0x14, 0xA1, 0x15, 0x69, + 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x17, 0x58, + 0x86, 0xA1, 0x62, 0x65, 0x6E, 0xA1, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, + 0x1A, 0x00, 0x08, 0x00, 0x00, 0x43, 0x19, 0x10, 0x00, 0xA6, 0x01, 0x78, 0x18, 0x4E, 0x6F, + 0x72, 0x64, 0x69, 0x63, 0x20, 0x53, 0x65, 0x6D, 0x69, 0x63, 0x6F, 0x6E, 0x64, 0x75, 0x63, + 0x74, 0x6F, 0x72, 0x20, 0x41, 0x53, 0x41, 0x02, 0x64, 0x74, 0x65, 0x73, 0x74, 0x03, 0x6E, + 0x6E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x73, 0x65, 0x6D, 0x69, 0x2E, 0x63, 0x6F, 0x6D, 0x04, + 0x74, 0x54, 0x68, 0x65, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x05, 0x78, 0x1C, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, + 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x66, 0x6F, + 0x72, 0x20, 0x74, 0x65, 0x73, 0x74, 0x73, 0x06, 0x66, 0x76, 0x31, 0x2E, 0x30, 0x2E, 0x30, + 0x0F, 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, + 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x12, 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, + 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x69, + 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x59, 0x01, 0x00, 0xC7, 0x9C, 0xAB, + 0x9D, 0xE8, 0x33, 0x7F, 0x30, 0x14, 0xEB, 0xAC, 0x02, 0xAF, 0x26, 0x01, 0x5E, 0x80, 0x6D, + 0x88, 0xA1, 0xDB, 0x11, 0xA7, 0x31, 0xDF, 0xA6, 0xEC, 0xCB, 0x9B, 0x48, 0x0D, 0xC8, 0x34, + 0x40, 0x6D, 0x30, 0x86, 0x7D, 0xE8, 0x1B, 0xEC, 0x3C, 0xF5, 0x40, 0xD0, 0x48, 0x18, 0x82, + 0x11, 0x9D, 0x7C, 0x3F, 0x6C, 0xE5, 0x8F, 0xF1, 0xD3, 0x5D, 0xE1, 0x51, 0xF7, 0x6A, 0x0F, + 0xAF, 0x0B, 0xBD, 0x4C, 0x5F, 0x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 0xB0, 0xE8, 0x57, 0x8C, 0x92, 0x53, 0x81}; + +size_t manifest_valid_app_severable_len = sizeof(manifest_valid_app_severable_buf); + +#endif /* CONFIG_SOC_NRF52840 || CONFIG_BOARD_NATIVE_POSIX */ diff --git a/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable_54.c b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable_54.c new file mode 100644 index 000000000000..63d4ff7bb13e --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_app_severable_54.c @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2023 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +#if defined(CONFIG_SOC_SERIES_NRF54HX) +#include +#include + +/** @brief Valid SUIT envelope, based on ../manifest/sample_valid_severable_54.yaml + * + */ +uint8_t manifest_valid_app_severable_buf[] = { + 0xD8, 0x6B, 0xA8, 0x02, 0x58, 0x7A, 0x82, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0xCD, 0xD4, + 0x9E, 0xD5, 0x5A, 0x2C, 0xDC, 0x2A, 0x50, 0x43, 0xBD, 0x0B, 0x94, 0x73, 0x4D, 0xBD, 0xB6, + 0x8F, 0x25, 0xAB, 0xF7, 0xBD, 0x5A, 0x90, 0xC0, 0xBD, 0xB9, 0xAF, 0x94, 0xA9, 0x59, 0xCF, + 0x58, 0x51, 0xD2, 0x84, 0x4A, 0xA2, 0x01, 0x26, 0x04, 0x45, 0x1A, 0x40, 0x00, 0x00, 0x00, + 0xA0, 0xF6, 0x58, 0x40, 0xF7, 0x15, 0xC8, 0xA8, 0x2C, 0x8E, 0x67, 0xCB, 0x20, 0x06, 0x0B, + 0x47, 0xC8, 0xF9, 0x0E, 0x0D, 0x41, 0x11, 0x42, 0x1C, 0xE2, 0xB5, 0x5F, 0x70, 0xBE, 0x69, + 0x00, 0xA8, 0xBB, 0x0D, 0xA6, 0xC8, 0xD1, 0x61, 0xA6, 0xFF, 0x6B, 0x3A, 0x56, 0xE9, 0x05, + 0x35, 0x53, 0x04, 0xB9, 0x15, 0xB6, 0x25, 0xB6, 0x47, 0x69, 0xB8, 0x14, 0x14, 0x08, 0x42, + 0xA1, 0xE6, 0xCB, 0xC5, 0x07, 0x79, 0x5B, 0x19, 0x03, 0x59, 0x01, 0x97, 0xAB, 0x01, 0x01, + 0x02, 0x01, 0x03, 0x58, 0xA8, 0xA2, 0x02, 0x82, 0x82, 0x49, 0x68, 0x43, 0x41, 0x4E, 0x44, + 0x5F, 0x49, 0x4D, 0x47, 0x41, 0x00, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, + 0x1A, 0x0E, 0x0A, 0xA0, 0x00, 0x43, 0x19, 0x10, 0x00, 0x04, 0x58, 0x83, 0x8C, 0x0C, 0x00, + 0x14, 0xA1, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, 0x54, 0xBF, 0x8E, 0x8C, + 0x50, 0xFB, 0x4F, 0xBC, 0x2C, 0xFA, 0xEB, 0x04, 0x53, 0x41, 0xC9, 0x80, 0x6D, 0xEA, 0xBD, + 0xCB, 0x41, 0x54, 0xFB, 0x79, 0xCC, 0xA4, 0xF0, 0xC9, 0x8C, 0x12, 0x0C, 0x01, 0x14, 0xA4, + 0x01, 0x50, 0x76, 0x17, 0xDA, 0xA5, 0x71, 0xFD, 0x5A, 0x85, 0x8F, 0x94, 0xE2, 0x8D, 0x73, + 0x5C, 0xE9, 0xF4, 0x02, 0x50, 0x5B, 0x46, 0x9F, 0xD1, 0x90, 0xEE, 0x53, 0x9C, 0xA3, 0x18, + 0x68, 0x1B, 0x03, 0x69, 0x5E, 0x36, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, + 0x54, 0xBF, 0x8E, 0x8C, 0x50, 0xFB, 0x4F, 0xBC, 0x2C, 0xFA, 0xEB, 0x04, 0x53, 0x41, 0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 0xE2, 0x70, 0xC0, 0x12, 0x82, 0x2F, 0x58, 0x20, 0xD0, 0x04, 0x42, 0x1F, 0x9B, + 0x91, 0xCA, 0x5E, 0x0C, 0xE8, 0x53, 0x1E, 0x54, 0x8E, 0xDC, 0x3F, 0xEF, 0x00, 0x0A, 0x2F, + 0x3F, 0x9F, 0x77, 0x77, 0x46, 0xA3, 0xB5, 0x4C, 0x66, 0xE2, 0x70, 0xC0, 0x05, 0x82, 0x4C, + 0x6B, 0x49, 0x4E, 0x53, 0x54, 0x4C, 0x44, 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x50, 0x5B, 0x46, + 0x9F, 0xD1, 0x90, 0xEE, 0x53, 0x9C, 0xA3, 0x18, 0x68, 0x1B, 0x03, 0x69, 0x5E, 0x36, 0x10, + 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, + 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x14, 0x54, 0x88, 0x0C, 0x01, 0x14, 0xA1, 0x15, 0x69, + 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x17, 0x58, + 0x86, 0xA1, 0x62, 0x65, 0x6E, 0xA1, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, + 0x1A, 0x0E, 0x0A, 0xA0, 0x00, 0x43, 0x19, 0x10, 0x00, 0xA6, 0x01, 0x78, 0x18, 0x4E, 0x6F, + 0x72, 0x64, 0x69, 0x63, 0x20, 0x53, 0x65, 0x6D, 0x69, 0x63, 0x6F, 0x6E, 0x64, 0x75, 0x63, + 0x74, 0x6F, 0x72, 0x20, 0x41, 0x53, 0x41, 0x02, 0x64, 0x74, 0x65, 0x73, 0x74, 0x03, 0x6E, + 0x6E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x73, 0x65, 0x6D, 0x69, 0x2E, 0x63, 0x6F, 0x6D, 0x04, + 0x74, 0x54, 0x68, 0x65, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x05, 0x78, 0x1C, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, + 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x66, 0x6F, + 0x72, 0x20, 0x74, 0x65, 0x73, 0x74, 0x73, 0x06, 0x66, 0x76, 0x31, 0x2E, 0x30, 0x2E, 0x30, + 0x0F, 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, + 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x12, 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, + 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x69, + 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x59, 0x01, 0x00, 0xC7, 0x9C, 0xAB, + 0x9D, 0xE8, 0x33, 0x7F, 0x30, 0x14, 0xEB, 0xAC, 0x02, 0xAF, 0x26, 0x01, 0x5E, 0x80, 0x6D, + 0x88, 0xA1, 0xDB, 0x11, 0xA7, 0x31, 0xDF, 0xA6, 0xEC, 0xCB, 0x9B, 0x48, 0x0D, 0xC8, 0x34, + 0x40, 0x6D, 0x30, 0x86, 0x7D, 0xE8, 0x1B, 0xEC, 0x3C, 0xF5, 0x40, 0xD0, 0x48, 0x18, 0x82, + 0x11, 0x9D, 0x7C, 0x3F, 0x6C, 0xE5, 0x8F, 0xF1, 0xD3, 0x5D, 0xE1, 0x51, 0xF7, 0x6A, 0x0F, + 0xAF, 0x0B, 0x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, 0x6A, 0xA9, 0x11, 0xB0, 0xE8, 0x57, 0x8C, 0x92, 0x53, 0x81}; + +size_t manifest_valid_app_severable_len = sizeof(manifest_valid_app_severable_buf); + +#endif /* CONFIG_SOC_SERIES_NRF54HX */ diff --git a/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable.c b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable.c new file mode 100644 index 000000000000..cd335b360fee --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable.c @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2023 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +#if defined(CONFIG_SOC_NRF52840) || defined(CONFIG_BOARD_NATIVE_POSIX) +#include +#include + +/** @brief Valid SUIT envelope, based on ../manifest/sample_valid_root_severable.yaml + * + */ +uint8_t manifest_valid_severable_buf[] = { + 0xD8, 0x6B, 0xA8, 0x02, 0x58, 0x7A, 0x82, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0xD2, 0x6B, + 0x4A, 0x00, 0x98, 0xD5, 0xC6, 0x9B, 0x63, 0xAF, 0x02, 0x34, 0x5D, 0xB7, 0x15, 0xEF, 0x27, + 0x27, 0x2B, 0x35, 0xB2, 0xE4, 0xA1, 0xC0, 0xAA, 0xAF, 0x75, 0x6F, 0x1A, 0xF4, 0x9E, 0xCF, + 0x58, 0x51, 0xD2, 0x84, 0x4A, 0xA2, 0x01, 0x26, 0x04, 0x45, 0x1A, 0x40, 0x00, 0x00, 0x00, + 0xA0, 0xF6, 0x58, 0x40, 0x89, 0x24, 0x83, 0x21, 0x2B, 0xA8, 0x7D, 0x05, 0xA7, 0x05, 0xF8, + 0xE9, 0xC5, 0xB1, 0xBF, 0xD7, 0x04, 0x71, 0x5F, 0x4C, 0x65, 0xA6, 0x3B, 0x3F, 0x42, 0xA1, + 0xCD, 0xEC, 0x48, 0x09, 0xB3, 0x80, 0x13, 0xBA, 0x99, 0x6E, 0xB3, 0x49, 0xCD, 0x73, 0xD8, + 0xA7, 0x71, 0xC9, 0x6B, 0xB0, 0x74, 0x20, 0xEB, 0x00, 0xEE, 0xA0, 0x1A, 0x45, 0xC1, 0x8D, + 0xE8, 0xD8, 0xE3, 0x71, 0x3C, 0x4B, 0xC8, 0x12, 0x03, 0x59, 0x01, 0x59, 0xAB, 0x01, 0x01, + 0x02, 0x01, 0x03, 0x58, 0x66, 0xA3, 0x02, 0x82, 0x82, 0x4A, 0x69, 0x43, 0x41, 0x4E, 0x44, + 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x41, 0x00, 0x82, 0x4C, 0x6B, 0x49, 0x4E, 0x53, 0x54, 0x4C, + 0x44, 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x50, 0x5B, 0x46, 0x9F, 0xD1, 0x90, 0xEE, 0x53, 0x9C, + 0xA3, 0x18, 0x68, 0x1B, 0x03, 0x69, 0x5E, 0x36, 0x04, 0x58, 0x2D, 0x88, 0x0C, 0x01, 0x14, + 0xA2, 0x01, 0x50, 0x76, 0x17, 0xDA, 0xA5, 0x71, 0xFD, 0x5A, 0x85, 0x8F, 0x94, 0xE2, 0x8D, + 0x73, 0x5C, 0xE9, 0xF4, 0x02, 0x50, 0x97, 0x05, 0x48, 0x23, 0x4C, 0x3D, 0x59, 0xA1, 0x89, + 0x86, 0xA5, 0x46, 0x60, 0xA1, 0x4B, 0x0A, 0x01, 0x0F, 0x02, 0x0F, 0x01, 0xA2, 0x00, 0xA0, + 0x01, 0xA0, 0x07, 0x47, 0x86, 0x0C, 0x01, 0x07, 0x0F, 0x0B, 0x0F, 0x09, 0x47, 0x86, 0x0C, + 0x01, 0x07, 0x0F, 0x0B, 0x0F, 0x10, 0x82, 0x2F, 0x58, 0x20, 0xA0, 0xAA, 0x5B, 0x72, 0xE8, + 0x79, 0xF4, 0x27, 0x6F, 0x38, 0xD2, 0x14, 0x61, 0xF7, 0x90, 0x8E, 0xC1, 0x3E, 0xCE,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C, 0x3D, 0x59, 0xA1, 0x89, 0x86, 0xA5, 0x46, 0x60, 0xA1, 0x4B, 0x0A, 0x10, 0x58, 0x3F, + 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, 0x69, 0x23, 0x61, 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, + 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x36, 0xAF, 0xCE, 0xE6, 0x29, 0x57, 0x87, + 0x04, 0x13, 0xAB, 0x72, 0x9D, 0x08, 0x52, 0xBE, 0x38, 0x5D, 0x61, 0xD2, 0x30, 0xA0, 0x15, + 0x28, 0x71, 0x93, 0x2D, 0xB6, 0x68, 0x87, 0xF5, 0xF8, 0x4A, 0x15, 0x02, 0x03, 0x0F, 0x07, + 0x0F, 0x0B, 0x0F, 0x14, 0x58, 0x3F, 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, 0x69, 0x23, 0x61, + 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x36, + 0xAF, 0xCE, 0xE6, 0x29, 0x57, 0x87, 0x04, 0x13, 0xAB, 0x72, 0x9D, 0x08, 0x52, 0xBE, 0x38, + 0x5D, 0x61, 0xD2, 0x30, 0xA0, 0x15, 0x28, 0x71, 0x93, 0x2D, 0xB6, 0x68, 0x87, 0xF5, 0xF8, + 0x4A, 0x15, 0x02, 0x03, 0x0F, 0x07, 0x0F, 0x0B, 0x0F, 0x17, 0x58, 0x7B, 0xA1, 0x62, 0x65, + 0x6E, 0xA1, 0x82, 0x4A, 0x69, 0x43, 0x41, 0x4E, 0x44, 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x41, + 0x00, 0xA6, 0x01, 0x78, 0x18, 0x4E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x20, 0x53, 0x65, 0x6D, + 0x69, 0x63, 0x6F, 0x6E, 0x64, 0x75, 0x63, 0x74, 0x6F, 0x72, 0x20, 0x41, 0x53, 0x41, 0x02, + 0x64, 0x74, 0x65, 0x73, 0x74, 0x03, 0x6E, 0x6E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x73, 0x65, + 0x6D, 0x69, 0x2E, 0x63, 0x6F, 0x6D, 0x04, 0x76, 0x54, 0x68, 0x65, 0x20, 0x74, 0x65, 0x73, + 0x74, 0x20, 0x72, 0x6F, 0x6F, 0x74, 0x20, 0x6D, 0x61, 0x6E, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x05, 0x74, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x20, 0x72, 0x6F, 0x6F, 0x74, 0x20, 0x6D, + 0x61, 0x6E, 0x69, 0x66, 0x65, 0x73, 0x74, 0x06, 0x66, 0x76, 0x31, 0x2E, 0x30, 0x2E, 0x30, + 0x0F, 0x58, 0x3F, 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, 0x69, 0x23, 0x61, 0x70, 0x70, 0x2E, + 0x73, 0x75, 0x69, 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x36, 0xAF, 0xCE, 0xE6, + 0x29, 0x57, 0x87, 0x04, 0x13, 0xAB, 0x72, 0x9D, 0x08, 0x52, 0xBE, 0x38, 0x5D, 0x61, 0xD2, + 0x30, 0xA0, 0x15, 0x28, 0x71, 0x93, 0x2D, 0xB6, 0x68, 0x87, 0xF5, 0xF8, 0x4A, 0x15, 0x02, + 0x03, 0x0F, 0x07, 0x0F, 0x0B, 0x0F, 0x12, 0x58, 0x3F, 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, + 0x69, 0x23, 0x61, 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, + 0x58, 0x20, 0x36, 0xAF, 0xCE, 0xE6, 0x29, 0x57, 0x87, 0x04, 0x13, 0xAB, 0x72, 0x9D, 0x08, + 0x52, 0xBE, 0x38, 0x5D, 0x61, 0xD2, 0x30, 0xA0, 0x15, 0x28, 0x71, 0x93, 0x2D, 0xB6, 0x68, + 0x87, 0xF5, 0xF8, 0x4A, 0x15, 0x02, 0x03, 0x0F, 0x07, 0x0F, 0x0B, 0x0F, 0x69, 0x23, 0x61, + 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, 0x74, 0x59, 0x04, 0x09, 0xD8, 0x6B, 0xA8, 0x02, 0x58, + 0x7A, 0x82, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x25, 0xB7, 0x0D, 0xD4, 0x9F, 0xD5, 0xB4, + 0x15, 0x81, 0x37, 0x43, 0xCB, 0xE5, 0x16, 0x08, 0x10, 0x30, 0x44, 0xA6, 0x91, 0xFB, 0xEC, + 0x53, 0xB7, 0x92, 0x54, 0xF9, 0x6D, 0xD5, 0xBB, 0x51, 0xD5, 0x58, 0x51, 0xD2, 0x84, 0x4A, + 0xA2, 0x01, 0x26, 0x04, 0x45, 0x1A, 0x40, 0x00, 0x00, 0x00, 0xA0, 0xF6, 0x58, 0x40, 0x62, + 0x9A, 0x43, 0x39, 0x4B, 0xEB, 0xD7, 0xBE, 0xC2, 0x8A, 0x20, 0x54, 0xE6, 0x4A, 0xA3, 0x42, + 0x3E, 0x72, 0xC3, 0x15, 0xCD, 0x60, 0x3D, 0x02, 0x41, 0xF8, 0x79, 0xAD, 0x10, 0x44, 0x9D, + 0x9C, 0x79, 0xC5, 0x48, 0xF5, 0xE0, 0xAD, 0xAD, 0xAE, 0xF5, 0x46, 0x0A, 0x8D, 0x02, 0xB9, + 0xFB, 0xD2, 0x98, 0xFE, 0x99, 0x5D, 0xFF, 0xC7, 0x74, 0xA0, 0x2C, 0xC4, 0x8F, 0x33, 0x68, + 0xDC, 0x8C, 0x98, 0x03, 0x59, 0x01, 0x97, 0xAB, 0x01, 0x01, 0x02, 0x01, 0x03, 0x58, 0xA8, + 0xA2, 0x02, 0x82, 0x82, 0x49, 0x68, 0x43, 0x41, 0x4E, 0x44, 0x5F, 0x49, 0x4D, 0x47, 0x41, + 0x00, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, 0x1A, 0x00, 0x08, 0x00, 0x00, + 0x43, 0x19, 0x10, 0x00, 0x04, 0x58, 0x83, 0x8C, 0x0C, 0x00, 0x14, 0xA1, 0x03, 0x58, 0x24, + 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, 0x54, 0xBF, 0x8E, 0x8C, 0x50, 0xFB, 0x4F, 0xBC, 0x2C, + 0xFA, 0xEB, 0x04, 0x53, 0x41, 0xC9, 0x80, 0x6D, 0xEA, 0xBD, 0xCB, 0x41, 0x54, 0xFB, 0x79, + 0xCC, 0xA4, 0xF0, 0xC9, 0x8C, 0x12, 0x0C, 0x01, 0x14, 0xA4, 0x01, 0x50, 0x76, 0x17, 0xDA, + 0xA5, 0x71, 0xFD, 0x5A, 0x85, 0x8F, 0x94, 0xE2, 0x8D, 0x73, 0x5C, 0xE9, 0xF4, 0x02, 0x50, + 0x5B, 0x46, 0x9F, 0xD1, 0x90, 0xEE, 0x53, 0x9C, 0xA3, 0x18, 0x68, 0x1B, 0x03, 0x69, 0x5E, + 0x36, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, 0x54, 0xBF, 0x8E, 0x8C, 0x50, + 0xFB, 0x4F, 0xBC, 0x2C, 0xFA, 0xEB, 0x04, 0x53, 0x41, 0xC9, 0x80, 0x6D, 0xEA, 0xBD, 0xCB, + 0x41, 0x54, 0xFB, 0x79, 0xCC, 0xA4, 0xF0, 0xC9, 0x8C, 0x12, 0x0E, 0x19, 0x01, 0x00, 0x01, + 0x0F, 0x02, 0x0F, 0x07, 0x45, 0x84, 0x0C, 0x01, 0x03, 0x0F, 0x09, 0x45, 0x84, 0x0C, 0x01, + 0x17, 0x02, 0x10, 0x82, 0x2F, 0x58, 0x20, 0xD0, 0x04, 0x42, 0x1F, 0x9B, 0x91, 0xCA, 0x5E, + 0x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 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x50, 0x5B, 0x46, 0x9F, 0xD1, 0x90, 0xEE, 0x53, + 0x9C, 0xA3, 0x18, 0x68, 0x1B, 0x03, 0x69, 0x5E, 0x36, 0x10, 0x54, 0x88, 0x0C, 0x00, 0x14, + 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, + 0x0F, 0x14, 0x54, 0x88, 0x0C, 0x01, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, + 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x17, 0x58, 0x86, 0xA1, 0x62, 0x65, 0x6E, + 0xA1, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, 0x1A, 0x00, 0x08, 0x00, 0x00, + 0x43, 0x19, 0x10, 0x00, 0xA6, 0x01, 0x78, 0x18, 0x4E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x20, + 0x53, 0x65, 0x6D, 0x69, 0x63, 0x6F, 0x6E, 0x64, 0x75, 0x63, 0x74, 0x6F, 0x72, 0x20, 0x41, + 0x53, 0x41, 0x02, 0x64, 0x74, 0x65, 0x73, 0x74, 0x03, 0x6E, 0x6E, 0x6F, 0x72, 0x64, 0x69, + 0x63, 0x73, 0x65, 0x6D, 0x69, 0x2E, 0x63, 0x6F, 0x6D, 0x04, 0x74, 0x54, 0x68, 0x65, 0x20, + 0x74, 0x65, 0x73, 0x74, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, + 0x6E, 0x05, 0x78, 0x1C, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x20, 0x61, 0x70, 0x70, 0x6C, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x74, 0x65,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0xD7, 0x38, 0x22, 0x98, 0x48, 0xF8, 0x7A, 0x67, 0xB2, 0xD9, 0xAC, 0xC5, 0x34, + 0xC1, 0x27, 0x82, 0x8E, 0x42, 0x79, 0x84, 0x21, 0x37, 0x4C, 0x41, 0x4A, 0x0F, 0xE2, 0x7F, + 0xA0, 0x6A, 0x19, 0x13, 0x3D, 0x52, 0x22, 0x7F, 0xD6, 0x2F, 0x71, 0x12, 0x76, 0xAB, 0x25, + 0x9C, 0xFC, 0x67, 0x08, 0x03, 0x7C, 0xDB, 0x18, 0xE6, 0x45, 0xF8, 0x99, 0xC2, 0x9E, 0x2C, + 0xE3, 0x9B, 0x25, 0xA9, 0x7B, 0x09, 0xFF, 0x00, 0x57, 0x26, 0x08, 0x0A, 0x11, 0x42, 0xCF, + 0x82, 0xA2, 0x6B, 0x2A, 0x99, 0xF9, 0x71, 0x9D, 0x14, 0x19, 0x5C, 0x5C, 0x78, 0x31, 0x60, + 0x42, 0x4A, 0x18, 0x1F, 0xEC, 0x78, 0x6A, 0x9A, 0x7C, 0x4F, 0xCF, 0xE8, 0x5A, 0x29, 0x65, + 0xCD, 0x01, 0x3B, 0x6D, 0x53, 0xBB, 0xC6, 0xDB, 0xDA, 0xD5, 0x8F, 0xF7, 0xF4, 0xD9, 0xB9, + 0x0A, 0x03, 0x4B, 0xFF, 0x33, 0xAB, 0x3B, 0xC5, 0xAF, 0xD0, 0xB8, 0x2C, 0x0F, 0x6A, 0xA9, + 0x11, 0xB0, 0xE8, 0x57, 0x8C, 0x92, 0x53, 0x81}; + +size_t manifest_valid_severable_len = sizeof(manifest_valid_severable_buf); + +#endif /* CONFIG_SOC_NRF52840 || CONFIG_BOARD_NATIVE_POSIX */ diff --git a/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable_54.c b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable_54.c new file mode 100644 index 000000000000..0d41309f69e8 --- /dev/null +++ b/tests/subsys/suit/orchestrator/manifest/src/manifest_valid_severable_54.c @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2023 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +#if defined(CONFIG_SOC_SERIES_NRF54HX) +#include +#include + +/** @brief Valid SUIT envelope, based on ../manifest/sample_valid_root_severable_54.yaml + * + */ +uint8_t manifest_valid_severable_buf[] = { + 0xD8, 0x6B, 0xA8, 0x02, 0x58, 0x7A, 0x82, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0x94, 0xEA, + 0xD5, 0xF9, 0x6C, 0xE7, 0x41, 0xAE, 0xA5, 0x1F, 0x48, 0x73, 0x40, 0x77, 0x69, 0xFF, 0xD5, + 0x6C, 0x32, 0xE6, 0x17, 0x67, 0xE1, 0xBB, 0x75, 0x93, 0x3F, 0x26, 0x78, 0xB4, 0xCB, 0xE4, + 0x58, 0x51, 0xD2, 0x84, 0x4A, 0xA2, 0x01, 0x26, 0x04, 0x45, 0x1A, 0x40, 0x00, 0x00, 0x00, + 0xA0, 0xF6, 0x58, 0x40, 0xB8, 0x97, 0xD7, 0x36, 0x51, 0x95, 0xBD, 0x03, 0x9B, 0x6E, 0xE6, + 0xCA, 0xDF, 0xFF, 0xF4, 0x13, 0x26, 0x6E, 0x84, 0xB3, 0x50, 0xA3, 0xA0, 0x19, 0xBC, 0xFD, + 0xCE, 0xB5, 0x62, 0xDA, 0x29, 0x34, 0x4E, 0xF7, 0x3D, 0xA0, 0x6D, 0xCE, 0x6E, 0x10, 0x86, + 0xC9, 0xC2, 0xA3, 0x40, 0x41, 0x1E, 0x4A, 0x9E, 0xD4, 0x24, 0x48, 0x4F, 0x27, 0x77, 0x56, + 0x9A, 0xF2, 0x4A, 0x0B, 0x27, 0x17, 0xA8, 0x2C, 0x03, 0x59, 0x01, 0x59, 0xAB, 0x01, 0x01, + 0x02, 0x01, 0x03, 0x58, 0x66, 0xA3, 0x02, 0x82, 0x82, 0x4A, 0x69, 0x43, 0x41, 0x4E, 0x44, + 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xDD, 0xD4, 0xF4, 0xC1, 0x0A, 0x17, 0xA1, 0x59, 0x57, + 0xD0, 0x9D, 0x2E, 0xD8, 0x78, 0x4D, 0x43, 0x08, 0x00, 0x51, 0x15, 0x02, 0x03, 0x0F, 0x07, + 0x0F, 0x0B, 0x0F, 0x14, 0x58, 0x3F, 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, 0x69, 0x23, 0x61, + 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0xB0, + 0x2F, 0xB6, 0x45, 0xCB, 0x95, 0x36, 0x8F, 0x81, 0xDE, 0x24, 0x8C, 0xBB, 0xDD, 0xD4, 0xF4, + 0xC1, 0x0A, 0x17, 0xA1, 0x59, 0x57, 0xD0, 0x9D, 0x2E, 0xD8, 0x78, 0x4D, 0x43, 0x08, 0x00, + 0x51, 0x15, 0x02, 0x03, 0x0F, 0x07, 0x0F, 0x0B, 0x0F, 0x17, 0x58, 0x7B, 0xA1, 0x62, 0x65, + 0x6E, 0xA1, 0x82, 0x4A, 0x69, 0x43, 0x41, 0x4E, 0x44, 0x5F, 0x4D, 0x46, 0x53, 0x54, 0x41, + 0x00, 0xA6, 0x01, 0x78, 0x18, 0x4E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x20, 0x53, 0x65, 0x6D, + 0x69, 0x63, 0x6F, 0x6E, 0x64, 0x75, 0x63, 0x74, 0x6F, 0x72, 0x20, 0x41, 0x53, 0x41, 0x02, + 0x64, 0x74, 0x65, 0x73, 0x74, 0x03, 0x6E, 0x6E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x73, 0x65, + 0x6D, 0x69, 0x2E, 0x63, 0x6F, 0x6D, 0x04, 0x76, 0x54, 0x68, 0x65, 0x20, 0x74, 0x65, 0x73, + 0x74, 0x20, 0x72, 0x6F, 0x6F, 0x74, 0x20, 0x6D, 0x61, 0x6E, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x05, 0x74, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x20, 0x72, 0x6F, 0x6F, 0x74, 0x20, 0x6D, + 0x61, 0x6E, 0x69, 0x66, 0x65, 0x73, 0x74, 0x06, 0x66, 0x76, 0x31, 0x2E, 0x30, 0x2E, 0x30, + 0x0F, 0x58, 0x3F, 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, 0x69, 0x23, 0x61, 0x70, 0x70, 0x2E, + 0x73, 0x75, 0x69, 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0xB0, 0x2F, 0xB6, 0x45, + 0xCB, 0x95, 0x36, 0x8F, 0x81, 0xDE, 0x24, 0x8C, 0xBB, 0xDD, 0xD4, 0xF4, 0xC1, 0x0A, 0x17, + 0xA1, 0x59, 0x57, 0xD0, 0x9D, 0x2E, 0xD8, 0x78, 0x4D, 0x43, 0x08, 0x00, 0x51, 0x15, 0x02, + 0x03, 0x0F, 0x07, 0x0F, 0x0B, 0x0F, 0x12, 0x58, 0x3F, 0x8C, 0x0C, 0x00, 0x14, 0xA2, 0x15, + 0x69, 0x23, 0x61, 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, 0x74, 0x03, 0x58, 0x24, 0x82, 0x2F, + 0x58, 0x20, 0xB0, 0x2F, 0xB6, 0x45, 0xCB, 0x95, 0x36, 0x8F, 0x81, 0xDE, 0x24, 0x8C, 0xBB, + 0xDD, 0xD4, 0xF4, 0xC1, 0x0A, 0x17, 0xA1, 0x59, 0x57, 0xD0, 0x9D, 0x2E, 0xD8, 0x78, 0x4D, + 0x43, 0x08, 0x00, 0x51, 0x15, 0x02, 0x03, 0x0F, 0x07, 0x0F, 0x0B, 0x0F, 0x69, 0x23, 0x61, + 0x70, 0x70, 0x2E, 0x73, 0x75, 0x69, 0x74, 0x59, 0x04, 0x09, 0xD8, 0x6B, 0xA8, 0x02, 0x58, + 0x7A, 0x82, 0x58, 0x24, 0x82, 0x2F, 0x58, 0x20, 0xCD, 0xD4, 0x9E, 0xD5, 0x5A, 0x2C, 0xDC, + 0x2A, 0x50, 0x43, 0xBD, 0x0B, 0x94, 0x73, 0x4D, 0xBD, 0xB6, 0x8F, 0x25, 0xAB, 0xF7, 0xBD, + 0x5A, 0x90, 0xC0, 0xBD, 0xB9, 0xAF, 0x94, 0xA9, 0x59, 0xCF, 0x58, 0x51, 0xD2, 0x84, 0x4A, + 0xA2, 0x01, 0x26, 0x04, 0x45, 0x1A, 0x40, 0x00, 0x00, 0x00, 0xA0, 0xF6, 0x58, 0x40, 0xF7, + 0x15, 0xC8, 0xA8, 0x2C, 0x8E, 0x67, 0xCB, 0x20, 0x06, 0x0B, 0x47, 0xC8, 0xF9, 0x0E, 0x0D, + 0x41, 0x11, 0x42, 0x1C, 0xE2, 0xB5, 0x5F, 0x70, 0xBE, 0x69, 0x00, 0xA8, 0xBB, 0x0D, 0xA6, + 0xC8, 0xD1, 0x61, 0xA6, 0xFF, 0x6B, 0x3A, 0x56, 0xE9, 0x05, 0x35, 0x53, 0x04, 0xB9, 0x15, + 0xB6, 0x25, 0xB6, 0x47, 0x69, 0xB8, 0x14, 0x14, 0x08, 0x42, 0xA1, 0xE6, 0xCB, 0xC5, 0x07, + 0x79, 0x5B, 0x19, 0x03, 0x59, 0x01, 0x97, 0xAB, 0x01, 0x01, 0x02, 0x01, 0x03, 0x58, 0xA8, + 0xA2, 0x02, 0x82, 0x82, 0x49, 0x68, 0x43, 0x41, 0x4E, 0x44, 0x5F, 0x49, 0x4D, 0x47, 0x41, + 0x00, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, 0x1A, 0x0E, 0x0A, 0xA0, 0x00, + 0x43, 0x19, 0x10, 0x00, 0x04, 0x58, 0x83, 0x8C, 0x0C, 0x00, 0x14, 0xA1, 0x03, 0x58, 0x24, + 0x82, 0x2F, 0x58, 0x20, 0x5F, 0xC3, 0x54, 0xBF, 0x8E, 0x8C, 0x50, 0xFB, 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, 0x0C, 0x01, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, + 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, 0x03, 0x0F, 0x17, 0x58, 0x86, 0xA1, 0x62, 0x65, 0x6E, + 0xA1, 0x84, 0x44, 0x63, 0x4D, 0x45, 0x4D, 0x41, 0x00, 0x45, 0x1A, 0x0E, 0x0A, 0xA0, 0x00, + 0x43, 0x19, 0x10, 0x00, 0xA6, 0x01, 0x78, 0x18, 0x4E, 0x6F, 0x72, 0x64, 0x69, 0x63, 0x20, + 0x53, 0x65, 0x6D, 0x69, 0x63, 0x6F, 0x6E, 0x64, 0x75, 0x63, 0x74, 0x6F, 0x72, 0x20, 0x41, + 0x53, 0x41, 0x02, 0x64, 0x74, 0x65, 0x73, 0x74, 0x03, 0x6E, 0x6E, 0x6F, 0x72, 0x64, 0x69, + 0x63, 0x73, 0x65, 0x6D, 0x69, 0x2E, 0x63, 0x6F, 0x6D, 0x04, 0x74, 0x54, 0x68, 0x65, 0x20, + 0x74, 0x65, 0x73, 0x74, 0x20, 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, + 0x6E, 0x05, 0x78, 0x1C, 0x53, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x20, 0x61, 0x70, 0x70, 0x6C, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x74, 0x65, 0x73, + 0x74, 0x73, 0x06, 0x66, 0x76, 0x31, 0x2E, 0x30, 0x2E, 0x30, 0x0F, 0x54, 0x88, 0x0C, 0x00, + 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, 0x65, 0x2E, 0x62, 0x69, 0x6E, 0x15, 0x02, + 0x03, 0x0F, 0x12, 0x54, 0x88, 0x0C, 0x00, 0x14, 0xA1, 0x15, 0x69, 0x23, 0x66, 0x69, 0x6C, + 0x65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 0x67, 0x08, 0x03, 0x7C, 0xDB, 0x18, 0xE6, 0x45, 0xF8, 0x99, 0xC2, 0x9E, 0x2C, + 0xE3, 0x9B, 0x25, 0xA9, 0x7B, 0x09, 0xFF, 0x00, 0x57, 0x26, 0x08, 0x0A, 0x11, 0x42, 0xCF, + 0x82, 0xA2, 0x6B, 0x2A, 0x99, 0xF9, 0x71, 0x9D, 0x14, 0x19, 0x5C, 0x5C, 0x78, 0x31, 0x60, + 0x42, 0x4A, 0x18, 0x1F, 0xEC, 0x78, 0x6A, 0x9A, 0x7C, 0x4F, 0xCF, 0xE8, 0x5A, 0x29, 0x65, + 0xCD, 0x01, 0x3B, 0x6D, 0x53, 0xBB, 0xC6, 0xDB, 0xDA, 0xD5, 0x8F, 0xF7, 0xF4, 0xD9, 0xB9, + 0x0A, 0x03, 0x4B, 0xFF, 0x33, 0xAB, 0x3B, 0xC5, 0xAF, 0xD0, 0xB8, 0x2C, 0x0F, 0x6A, 0xA9, + 0x11, 0xB0, 0xE8, 0x57, 0x8C, 0x92, 0x53, 0x81}; + +size_t manifest_valid_severable_len = sizeof(manifest_valid_severable_buf); + +#endif /* CONFIG_SOC_SERIES_NRF54HX */ diff --git a/tests/subsys/suit/orchestrator/orchestrator_sdfw/src/test_boot_mode.c b/tests/subsys/suit/orchestrator/orchestrator_sdfw/src/test_boot_mode.c index d5e4aea76fee..1caf8f629d64 100644 --- a/tests/subsys/suit/orchestrator/orchestrator_sdfw/src/test_boot_mode.c +++ b/tests/subsys/suit/orchestrator/orchestrator_sdfw/src/test_boot_mode.c @@ -66,6 +66,14 @@ extern size_t manifest_valid_len; extern uint8_t manifest_valid_app_buf[]; extern size_t manifest_valid_app_len; +/* Valid severable root envelope */ +extern uint8_t manifest_valid_severable_buf[]; +extern size_t manifest_valid_severable_len; + +/* Valid severable application envelope */ +extern uint8_t manifest_valid_app_severable_buf[]; +extern size_t manifest_valid_app_severable_len; + /* Originally valid envelope with manipulated single byte */ extern uint8_t manifest_manipulated_buf[]; extern size_t manifest_manipulated_len; @@ -278,6 +286,43 @@ ZTEST(orchestrator_boot_tests, test_valid_root_without_app_envelope) zassert_equal(EXECUTION_MODE_INVOKE, suit_execution_mode_get(), "Execution mode modified"); } +ZTEST(orchestrator_boot_tests, test_valid_severable_root_app_envelope) +{ + const uint8_t *buf; + size_t len; + + /* GIVEN empty flash (suit storage is erased)... */ + setup_erased_flash(); + /* ... and severable root envelope is installed... */ + setup_install_envelope(&root_class_id, manifest_valid_severable_buf, + manifest_valid_severable_len); + /* ... and severable application envelope is installed... */ + setup_install_envelope(&app_class_id, manifest_valid_app_severable_buf, + manifest_valid_app_severable_len); + /* ... and update candidate flag is not set... */ + /* ... and emergency flag is not set... */ + zassert_equal(SUIT_PLAT_ERR_NOT_FOUND, suit_storage_report_read(0, &buf, &len), + "Unexpected emergency recovery flag before test execution"); + /* ... and orchestrator is initialized... */ + zassert_equal(0, suit_orchestrator_init(), + "Orchestrator not initialized before test execution"); + /* ... and the execution mode is set to regular boot */ + zassert_equal(EXECUTION_MODE_INVOKE, suit_execution_mode_get(), + "Unexpected execution mode before test execution"); + + /* WHEN orchestrator is executed */ + int err = suit_orchestrator_entry(); + + /* THEN orchestrator succeeds... */ + zassert_equal(0, err, "Valid envelopes not accepted (err: %d)", err); + /* ... and the emergency flag is not set... */ + zassert_equal(SUIT_PLAT_ERR_NOT_FOUND, suit_storage_report_read(0, &buf, &len), + "Emergency flag set"); + /* ... and the execution mode is set to the POST INVOKE */ + zassert_equal(EXECUTION_MODE_POST_INVOKE, suit_execution_mode_get(), + "Execution mode modified"); +} + ZTEST(orchestrator_boot_tests, test_valid_root_app_envelope) { /* GIVEN empty flash (suit storage is erased)... */ diff --git a/west.yml b/west.yml index c5abea36bf43..4d38cbd3dbed 100644 --- a/west.yml +++ b/west.yml @@ -246,7 +246,7 @@ manifest: revision: 9c5e8f16ef49e5ffbdeabc87ffd60b82b1fd72b0 path: modules/lib/suit-generator - name: suit-processor - revision: 9b4987c1d01746a6558662487c29aa5c24b978ec + revision: c97fbb352687383378d9ee2f5017668ebaac9fc7 path: modules/lib/suit-processor - name: doc-internal repo-path: doc-internal