1/* 2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15#ifndef __HVB_RSA_VERIFY_H_ 16#define __HVB_RSA_VERIFY_H_ 17 18#include "hvb_sysdeps.h" 19 20#define PARAM_EMPTY_ERROR (-1) 21#define MOD_EXP_CALC_FAIL (-2) 22#define DIGEST_LEN_ERROR (-3) 23#define PUBKEY_EMPTY_ERROR (-4) 24#define PUBKEY_LEN_ERROR (-5) 25#define CALC_EM_ERROR (-6) 26#define CALC_DB_ERROR (-7) 27#define CALC_MASK_ERROR (-8) 28#define CALC_EMLEN_ERROR (-9) 29#define HASH_CMP_FAIL (-10) 30#define CALC_0XBC_ERROR (-11) 31#define SIGN_EMPTY_ERROR (-12) 32#define SIGN_LEN_ERROR (-13) 33#define CHECK_DB_ERROR (-14) 34#define CMP_DB_FAIL (-15) 35#define SALT_LEN_ZERO (-16) 36#define MEMORY_ERROR (-17) 37 38#endif 39