1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 8 #ifndef LLF_ECPKI_ERROR_H 9 #define LLF_ECPKI_ERROR_H 10 11 #include "cc_error.h" 12 13 #ifdef __cplusplus 14 extern "C" 15 { 16 #endif 17 18 /* base address: LLF_ECPKI_MODULE_ERROR_BASE = 0x00F10800 */ 19 20 /* The PkaEcdsaVerify related functions errors */ 21 #define ECWRST_DSA_VERIFY_CALC_SIGN_C_INVALID_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x01UL) 22 #define ECWRST_DSA_VERIFY_CALC_SIGN_D_INVALID_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x02UL) 23 #define ECWRST_DSA_VERIFY_CALC_SIGNATURE_IS_INVALID (LLF_ECPKI_MODULE_ERROR_BASE + 0x03UL) 24 #define ECWRST_DSA_VERIFY_2MUL_FIRST_B2_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x04UL) 25 #define ECWRST_DSA_VERIFY_2MUL_NEXT_B2_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x05UL) 26 #define ECWRST_DSA_VERIFY_2MUL_FACTOR_A_NULL_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x06UL) 27 #define ECWRST_DSA_VERIFY_2MUL_FACTOR_B_NULL_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x07UL) 28 /* The CalcSignature function errors */ 29 #define ECWRST_DSA_SIGN_BAD_EPHEMER_KEY_TRY_AGAIN_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x10UL) 30 #define ECWRST_DSA_SIGN_CALC_CANNOT_CREATE_SIGNATURE (LLF_ECPKI_MODULE_ERROR_BASE + 0x11UL) 31 32 /* The EcWrstDhDeriveSharedSecret function errors */ 33 #define ECWRST_DH_SHARED_VALUE_IS_ON_INFINITY_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x20UL) 34 35 /* The PkaEcWrstScalarMult function errors */ 36 #define ECWRST_SCALAR_MULT_INVALID_SCALAR_VALUE_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x30UL) 37 #define ECWRST_SCALAR_MULT_INVALID_MOD_ORDER_SIZE_ERROR (LLF_ECPKI_MODULE_ERROR_BASE + 0x31UL) 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif 44 45