/*****************************************************************************
 *
 * Copyright (c) 2018-19, Eduard Gerlits, Paula Herber, Josef Treus
 * Westfälische Wilhelms-Universität Münster, AG Embedded Systems 
 * All rights reserved.
 *
 * This file is part of SysCSec
 *
 * SysCSec is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * SysCSec is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SysCSec.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 *  Please report any problems or bugs to: sysc.sec@uni-muenster.de
 *
 ****************************************************************************/


/// ECC DOMAIN PARAMETERS

// for a simple elliptic curve
// y^2 = x^3 + 4x + 7 over GF(13)
// with point G=(5,3) and 
// prime order n=13


#define _STD_ECC_PARAM_A_ 4
#define _STD_ECC_PARAM_B_ 7
#define _STD_ECC_PARAM_M_ 11
#define _STD_ECC_PARAM_G_X_ 5
#define _STD_ECC_PARAM_G_Y_ 3
#define _STD_ECC_PARAM_N_ 13


// for a simple elliptic curve
// y^2 = x^3 + 2x + 4 over GF(23)
// with point G=(12,10) and 
// prime order n=13


#define _STD2_ECC_PARAM_A_ 2
#define _STD2_ECC_PARAM_B_ 4
#define _STD2_ECC_PARAM_M_ 23
#define _STD2_ECC_PARAM_G_X_ 12
#define _STD2_ECC_PARAM_G_Y_ 10
#define _STD2_ECC_PARAM_N_ 13


#define _STD3_ECC_PARAM_A_ 54
#define _STD3_ECC_PARAM_B_ 158
#define _STD3_ECC_PARAM_M_ 331
#define _STD3_ECC_PARAM_G_X_ 55
#define _STD3_ECC_PARAM_G_Y_ 32
#define _STD3_ECC_PARAM_N_ 341

// recommended ECC parameters according to secp128r1
#define _SECP128R1_ECC_PARAM_A_ "0x0FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC"
#define _SECP128R1_ECC_PARAM_B_ "0x0E87579C11079F43DD824993C2CEE5ED3"
#define _SECP128R1_ECC_PARAM_M_ "0x0FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF"
#define _SECP128R1_ECC_PARAM_G_X_ "0x0161FF7528B899B2D0C28607CA52C5B86"
#define _SECP128R1_ECC_PARAM_G_Y_ "0x0CF5AC8395BAFEB13C02DA292DDED7A83"
#define _SECP128R1_ECC_PARAM_N_ "0x0FFFFFFFE0000000075A30D1B9038A115"



// recommended ECC parameters according to secp128r2

#define _SECP128R2_ECC_PARAM_A_ "0x0D6031998D1B3BBFEBF59CC9BBFF9AEE1"
#define _SECP128R2_ECC_PARAM_B_ "0x05EEEFCA380D02919DC2C6558BB6D8A5D"
#define _SECP128R2_ECC_PARAM_M_ "0x0FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF"
#define _SECP128R2_ECC_PARAM_G_X_ "0x07B6AA5D85E572983E6FB32A7CDEBC140" 
#define _SECP128R2_ECC_PARAM_G_Y_ "0x027B6916A894D3AEE7106FE805FC34B44"
#define _SECP128R2_ECC_PARAM_N_ "0x03FFFFFFF7FFFFFFFBE0024720613B5A3"
