17310c0d0Sopenharmony_ci/* 27310c0d0Sopenharmony_ci * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 37310c0d0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 47310c0d0Sopenharmony_ci * you may not use this file except in compliance with the License. 57310c0d0Sopenharmony_ci * You may obtain a copy of the License at 67310c0d0Sopenharmony_ci * 77310c0d0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 87310c0d0Sopenharmony_ci * 97310c0d0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 107310c0d0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 117310c0d0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127310c0d0Sopenharmony_ci * See the License for the specific language governing permissions and 137310c0d0Sopenharmony_ci * limitations under the License. 147310c0d0Sopenharmony_ci */ 157310c0d0Sopenharmony_ci#ifndef __HVB_CMDLINE_H_ 167310c0d0Sopenharmony_ci#define __HVB_CMDLINE_H_ 177310c0d0Sopenharmony_ci 187310c0d0Sopenharmony_ci#include "hvb_ops.h" 197310c0d0Sopenharmony_ci#include "hvb.h" 207310c0d0Sopenharmony_ci 217310c0d0Sopenharmony_ci#ifdef __cplusplus 227310c0d0Sopenharmony_ciextern "C" 237310c0d0Sopenharmony_ci{ 247310c0d0Sopenharmony_ci#endif 257310c0d0Sopenharmony_ci 267310c0d0Sopenharmony_ci#define CMD_LINE_SIZE (4096UL) 277310c0d0Sopenharmony_ci 287310c0d0Sopenharmony_ci#define HVB_CMDLINE_VB_STATE "ohos.boot.hvb.enable" 297310c0d0Sopenharmony_ci#define HVB_CMDLINE_HASH_ALG "ohos.boot.hvb.hash_algo" 307310c0d0Sopenharmony_ci#define HVB_CMDLINE_CERT_DIGEST "ohos.boot.hvb.digest" 317310c0d0Sopenharmony_ci#define HVB_CMDLINE_RVT_SIZE "ohos.boot.hvb.size" 327310c0d0Sopenharmony_ci#define HVB_CMDLINE_VERSION "ohos.boot.hvb.version" 337310c0d0Sopenharmony_ci#define HVB_CMDLINE_DEV_STATE "ohos.boot.hvb.device_state" 347310c0d0Sopenharmony_ci 357310c0d0Sopenharmony_cienum hvb_errno hvb_creat_cmdline(struct hvb_ops *ops, struct hvb_verified_data *vd); 367310c0d0Sopenharmony_ci 377310c0d0Sopenharmony_ci#ifdef __cplusplus 387310c0d0Sopenharmony_ci} 397310c0d0Sopenharmony_ci#endif 407310c0d0Sopenharmony_ci 417310c0d0Sopenharmony_ci#endif