Searched refs:edwSizeWords (Results 1 – 2 of 2) sorted by relevance
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | ec_edw.c | 58 uint32_t edwSizeWords = pEcDomain->ecModSizeInWords; in EcEdwSeedKeyPair() local 59 uint32_t edwSizeBytes = edwSizeWords * sizeof(uint32_t); in EcEdwSeedKeyPair() 63 uint32_t *pPublKey32/*az*/ = pPrivKey32 + edwSizeWords; in EcEdwSeedKeyPair() 64 uint32_t *pCoordX32/*az*/ = pPublKey32 + edwSizeWords; in EcEdwSeedKeyPair() 114 pPrivKey32[edwSizeWords-1] &= 0x3FFFFFFF;// & 63; in EcEdwSeedKeyPair() 115 pPrivKey32[edwSizeWords-1] |= 0x40000000;// | 64; in EcEdwSeedKeyPair() 122 edwSizeWords, in EcEdwSeedKeyPair() 129 pPublKey32[edwSizeWords-1] |= ((pCoordX32[0] & 1) << 31); in EcEdwSeedKeyPair() 133 CC_CommonConvertLswMswWordsToLsbMsbBytes(pPublKey, pPublKey32, edwSizeWords); in EcEdwSeedKeyPair() 166 size_t edwSizeWords = pEcDomain->ecModSizeInWords; in EcEdwScalarMultBase() local [all …]
|
D | pka_ec_edw.c | 447 size_t edwSizeWords = pEcDomain->ecModSizeInWords; in PkaEcEdwAddTwoScalarMult() local 457 PkaCopyDataIntoPkaReg(EDW_REG_D2, LEN_ID_N_PKA_REG_BITS, pEcDomain->ecParamD, edwSizeWords); in PkaEcEdwAddTwoScalarMult() 464 PkaCopyDataIntoPkaReg(EDW_REG_XG, LEN_ID_N_PKA_REG_BITS, pEcDomain->ecGenX, edwSizeWords); in PkaEcEdwAddTwoScalarMult() 465 PkaCopyDataIntoPkaReg(EDW_REG_YG, LEN_ID_N_PKA_REG_BITS, pEcDomain->ecGenY, edwSizeWords); in PkaEcEdwAddTwoScalarMult() 468 PkaCopyDataIntoPkaReg(EDW_REG_TG, LEN_ID_N_PKA_REG_BITS, pEcDomain->ecGenT, edwSizeWords); in PkaEcEdwAddTwoScalarMult() 471 PkaCopyDataIntoPkaReg(EDW_REG_SG1, LEN_ID_N_PKA_REG_BITS, pEcDomain->sg, edwSizeWords); in PkaEcEdwAddTwoScalarMult() 472 PkaCopyDataIntoPkaReg(EDW_REG_DG1, LEN_ID_N_PKA_REG_BITS, pEcDomain->dg, edwSizeWords); in PkaEcEdwAddTwoScalarMult() 473 PkaCopyDataIntoPkaReg(EDW_REG_PG1, LEN_ID_N_PKA_REG_BITS, pEcDomain->pg, edwSizeWords); in PkaEcEdwAddTwoScalarMult()
|