1 /* 2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef PKA_EC_MONT_GLOB_REGS_DEF_H 8 #define PKA_EC_MONT_GLOB_REGS_DEF_H 9 10 /*! Note: Don't change registers ID-s ! */ 11 12 /*! Define global PKA registers ID-s used in EC Montgomry operations */ 13 /* global regs. */ 14 #define EC_MONT_REG_N PKA_REG_N /* EC mod. */ 15 #define EC_MONT_REG_NP PKA_REG_NP /* EC Barr.tag */ 16 #define EC_MONT_REG_T 2 17 #define EC_MONT_REG_T1 3 18 #define EC_MONT_REG_T2 4 19 #define EC_MONT_REG_N4 5 /* 4*mod */ 20 #define EC_MONT_REG_A24 6 /* ec parameter (A+2)/4 */ 21 /*! scalarmult in/out and local regs. */ 22 #define EC_MONT_REG_RES 7 /* result point */ 23 #define EC_MONT_REG_X1 8 /* inputt point */ 24 #define EC_MONT_REG_X2 9 25 #define EC_MONT_REG_Z2 10 26 #define EC_MONT_REG_X3 11 27 #define EC_MONT_REG_Z3 12 28 29 #define EC_MONT_PKA_REGS_USED 13 /* beside 2 PKA temp regs. */ 30 #endif 31