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_RSA_VERIFY_H_
167310c0d0Sopenharmony_ci#define __HVB_RSA_VERIFY_H_
177310c0d0Sopenharmony_ci
187310c0d0Sopenharmony_ci#include "hvb_sysdeps.h"
197310c0d0Sopenharmony_ci
207310c0d0Sopenharmony_ci#define PARAM_EMPTY_ERROR      (-1)
217310c0d0Sopenharmony_ci#define MOD_EXP_CALC_FAIL      (-2)
227310c0d0Sopenharmony_ci#define DIGEST_LEN_ERROR       (-3)
237310c0d0Sopenharmony_ci#define PUBKEY_EMPTY_ERROR     (-4)
247310c0d0Sopenharmony_ci#define PUBKEY_LEN_ERROR       (-5)
257310c0d0Sopenharmony_ci#define CALC_EM_ERROR          (-6)
267310c0d0Sopenharmony_ci#define CALC_DB_ERROR          (-7)
277310c0d0Sopenharmony_ci#define CALC_MASK_ERROR        (-8)
287310c0d0Sopenharmony_ci#define CALC_EMLEN_ERROR       (-9)
297310c0d0Sopenharmony_ci#define HASH_CMP_FAIL          (-10)
307310c0d0Sopenharmony_ci#define CALC_0XBC_ERROR        (-11)
317310c0d0Sopenharmony_ci#define SIGN_EMPTY_ERROR       (-12)
327310c0d0Sopenharmony_ci#define SIGN_LEN_ERROR         (-13)
337310c0d0Sopenharmony_ci#define CHECK_DB_ERROR         (-14)
347310c0d0Sopenharmony_ci#define CMP_DB_FAIL            (-15)
357310c0d0Sopenharmony_ci#define SALT_LEN_ZERO          (-16)
367310c0d0Sopenharmony_ci#define MEMORY_ERROR           (-17)
377310c0d0Sopenharmony_ci
387310c0d0Sopenharmony_ci#endif
39