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