1 /*
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 
19 pub mod dice_sample;
20 
21 // Constants for DICE map keys.
22 
23 /// Map key for authority hash.
24 pub const AUTHORITY_HASH: i64 = -4670549;
25 /// Map key for config descriptor.
26 pub const CONFIG_DESC: i64 = -4670548;
27 /// Map key for component name.
28 pub const COMPONENT_NAME: i64 = -70002;
29 /// Map key for component version.
30 pub const COMPONENT_VERSION: i64 = -70003;
31 /// Map key for Resettable.
32 pub const COMPONENT_RESETTABLE: i64 = -70004;
33 /// Map key for security version.
34 pub const SECURITY_VERSION: i64 = -70005;
35 /// Map key for mode.
36 pub const MODE: i64 = -4670551;
37 /// Map key for SubcomponentDescriptor.
38 pub const SUBCOMPONENT_DESCRIPTORS: i64 = -71002;
39 /// Map key for name of subcomponent.
40 pub const SUBCOMPONENT_NAME: i64 = 1;
41 /// Map key for Security Version of subcomponent.
42 pub const SUBCOMPONENT_SECURITY_VERSION: i64 = 2;
43 /// Map key for Code hash of subcomponent.
44 pub const SUBCOMPONENT_CODE_HASH: i64 = 3;
45 /// Map key for Authority Hash of subcomponent.
46 pub const SUBCOMPONENT_AUTHORITY_HASH: i64 = 4;
47