1 /*
2  * Copyright (C) 2021 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 #pragma once
18 
19 /**
20  * enum apploader_package_format_version - Version number for the apploader
21  *                                         package format
22  * @APPLOADER_PACKAGE_FORMAT_VERSION_CURRENT:
23  *      The current version of the apploader package format
24  */
25 enum apploader_package_format_version : uint64_t {
26     APPLOADER_PACKAGE_FORMAT_VERSION_CURRENT = 1,
27 };
28 
29 /**
30  * enum apploader_package_header_label - Key labels for the ```headers```
31  *                                       field in apploader packages
32  * @APPLOADER_PACKAGE_HEADER_LABEL_CONTENT_IS_COSE_ENCRYPT:
33  *      The ```contents``` field is a ```COSE_Encrypt``` structure
34  *      holding an encrypted ELF file.
35  */
36 enum apploader_package_header_label : uint64_t {
37     APPLOADER_PACKAGE_HEADER_LABEL_CONTENT_IS_COSE_ENCRYPT = 1,
38 };
39 
40 /**
41  * enum apploader_package_cbor_tag - CBOR tags used by the apploader
42  * @APPLOADER_PACKAGE_CBOR_TAG_APP:
43  *      Tag marking an application package
44  */
45 enum apploader_package_cbor_tag : uint64_t {
46     APPLOADER_PACKAGE_CBOR_TAG_APP = 65536,
47 };
48 
49 /**
50  * enum apploader_signature_format_version - Version number for the
51  *                                           apploader signature format
52  * @APPLOADER_SIGNATURE_FORMAT_VERSION_CURRENT:
53  *      The current version of the apploader package signature format
54  */
55 enum apploader_signature_format_version : uint64_t {
56     APPLOADER_SIGNATURE_FORMAT_VERSION_CURRENT = 1,
57 };
58