blob: 3afe93826c17f8dfded7456cb01b4f933f33e60b [file] [log] [blame]
David Drysdaleb95093d2024-01-11 19:26:57 +00001/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17//! Test helper functions.
18
19pub mod dice_sample;
20
21// Constants for DICE map keys.
22
23/// Map key for authority hash.
24pub const AUTHORITY_HASH: i64 = -4670549;
25/// Map key for config descriptor.
26pub const CONFIG_DESC: i64 = -4670548;
27/// Map key for component name.
28pub const COMPONENT_NAME: i64 = -70002;
29/// Map key for component version.
30pub const COMPONENT_VERSION: i64 = -70003;
Shikha Panwar9e15e5e2024-01-25 11:16:28 +000031/// Map key for Resettable.
32pub const COMPONENT_RESETTABLE: i64 = -70004;
David Drysdaleb95093d2024-01-11 19:26:57 +000033/// Map key for security version.
34pub const SECURITY_VERSION: i64 = -70005;
35/// Map key for mode.
36pub const MODE: i64 = -4670551;
Shikha Panwar9e15e5e2024-01-25 11:16:28 +000037/// Map key for SubcomponentDescriptor.
38pub const SUBCOMPONENT_DESCRIPTORS: i64 = -71002;
39/// Map key for name of subcomponent.
40pub const SUBCOMPONENT_NAME: i64 = 1;
41/// Map key for Security Version of subcomponent.
42pub const SUBCOMPONENT_SECURITY_VERSION: i64 = 2;
43/// Map key for Code hash of subcomponent.
44pub const SUBCOMPONENT_CODE_HASH: i64 = 3;
45/// Map key for Authority Hash of subcomponent.
46pub const SUBCOMPONENT_AUTHORITY_HASH: i64 = 4;