Home
last modified time | relevance | path

Searched refs:modSizeInWords (Results 1 – 6 of 6) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dec_wrst.c40 uint32_t modSizeInBits, modSizeInWords; in EcWrstInitPubKey() local
50 modSizeInWords = CALC_FULL_32BIT_WORDS(modSizeInBits); in EcWrstInitPubKey()
52 if (modSizeInWords > CC_ECPKI_MODUL_MAX_LENGTH_IN_WORDS) in EcWrstInitPubKey()
62 PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, 1, pDomain->ecP, modSizeInWords); in EcWrstInitPubKey()
68 PkaCopyDataIntoPkaReg(PKA_REG_X/*dstReg*/, 1, pPublKey->x, modSizeInWords); in EcWrstInitPubKey()
71 PkaCopyDataIntoPkaReg(PKA_REG_EC_A/*dstReg*/, 1, pDomain->ecA, modSizeInWords); in EcWrstInitPubKey()
72 PkaCopyDataIntoPkaReg(PKA_REG_EC_B/*dstReg*/, 1, pDomain->ecB, modSizeInWords); in EcWrstInitPubKey()
83 PkaCopyDataIntoPkaReg(PKA_REG_Y/*dstReg*/, 1, pPublKey->y, modSizeInWords); in EcWrstInitPubKey()
112 PkaCopyDataFromPkaReg(pPublKey->y/*dst*/, modSizeInWords, PKA_REG_Y/*src reg*/); in EcWrstInitPubKey()
136 uint32_t ordSizeInWords, modSizeInWords, sizeBits; in EcWrstFullCheckPublKey() local
[all …]
Dec_wrst_dsa_verify.c43 int32_t modSizeInBits, modSizeInWords, ordSizeInBits, ordSizeInWords; in EcWrstDsaVerify() local
49 modSizeInWords = CALC_FULL_32BIT_WORDS(modSizeInBits); in EcWrstDsaVerify()
73 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_TMP_N, 1, domain->ecP, modSizeInWords); in EcWrstDsaVerify()
76 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_P_GX, 1, domain->ecGx, modSizeInWords); in EcWrstDsaVerify()
77 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_P_GY, 1, domain->ecGy, modSizeInWords); in EcWrstDsaVerify()
79 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_P_WX, 1, pSignPublKey->x, modSizeInWords); in EcWrstDsaVerify()
80 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_P_WY, 1, pSignPublKey->y, modSizeInWords); in EcWrstDsaVerify()
81 PkaCopyDataIntoPkaReg(ECC_REG_EC_A, 1, domain->ecA, modSizeInWords); in EcWrstDsaVerify()
Dec_wrst_dsa.c62 uint32_t ordSizeInWords, modSizeInWords; in CalcSignature() local
77 modSizeInWords = CALC_FULL_32BIT_WORDS(pDomain->modSizeInBits); in CalcSignature()
79 (modSizeInWords > CC_ECPKI_MODUL_MAX_LENGTH_IN_WORDS)) { in CalcSignature()
96 PkaCopyDataIntoPkaReg(rC, 1, pEphemPublX, modSizeInWords); in CalcSignature()
201 uint32_t ordSizeInBits, ordSizeInWords, modSizeInWords; in EcWrstDsaSign() local
211 modSizeInWords = CALC_FULL_32BIT_WORDS(pDomain->modSizeInBits); in EcWrstDsaSign()
213 (modSizeInWords > CC_ECPKI_MODUL_MAX_LENGTH_IN_WORDS)) { in EcWrstDsaSign()
219 pEphemKeyBuf = pEphemPublX + modSizeInWords; in EcWrstDsaSign()
221 pMaxVect = pEphemPublY + modSizeInWords; in EcWrstDsaSign()
298 int32_t modSizeInBits, modSizeInWords, ordSizeInBits, ordSizeInWords; in EcWrstDsaVerify() local
[all …]
Dpka_ec_wrst_smul_no_scap.c236 uint32_t modSizeInBits, modSizeInWords, ordSizeInWords; in ScalarMultAff() local
248 modSizeInWords = CALC_FULL_32BIT_WORDS(modSizeInBits); in ScalarMultAff()
252 (modSizeInWords > CC_ECPKI_MODUL_MAX_LENGTH_IN_WORDS)) { in ScalarMultAff()
277 PkaCopyDataIntoPkaReg(ECC_REG_N, 1, domain->ecP/*src_ptr*/, modSizeInWords); in ScalarMultAff()
280 PkaCopyDataIntoPkaReg(ECC_REG_EC_A, 1, domain->ecA, modSizeInWords); in ScalarMultAff()
282 PkaCopyDataIntoPkaReg(xp, 1, bxp, modSizeInWords); in ScalarMultAff()
283 PkaCopyDataIntoPkaReg(yp, 1, byp, modSizeInWords); in ScalarMultAff()
289 PkaCopyDataFromPkaReg(bxr, modSizeInWords, xr); in ScalarMultAff()
290 PkaCopyDataFromPkaReg(byr, modSizeInWords, yr); in ScalarMultAff()
Dpka_ec_wrst_smul_scap.c324 uint32_t modSizeInBits, modSizeInWords; in ScalarMultSca() local
329 modSizeInWords = CALC_FULL_32BIT_WORDS(modSizeInBits); in ScalarMultSca()
342 PkaCopyDataIntoPkaReg(ECC_REG_N, 1, domain->ecP/*src_ptr*/, modSizeInWords); in ScalarMultSca()
345 PkaCopyDataIntoPkaReg(ECC_REG_EC_A, 1, domain->ecA, modSizeInWords); in ScalarMultSca()
348 PkaCopyDataIntoPkaReg(rxp, 1, bxp, modSizeInWords); in ScalarMultSca()
349 PkaCopyDataIntoPkaReg(ryp, 1, byp, modSizeInWords); in ScalarMultSca()
357 PkaCopyDataFromPkaReg(bxr, modSizeInWords, rxp); in ScalarMultSca()
358 PkaCopyDataFromPkaReg(byr, modSizeInWords, ryp); in ScalarMultSca()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ec_wrst/
Dcc_ecpki_build_publ.c46 uint32_t modSizeInBytes, modSizeInWords; in CC_EcpkiPublKeyBuildAndCheck() local
80 modSizeInWords = CALC_32BIT_WORDS_FROM_BYTES(modSizeInBytes); in CC_EcpkiPublKeyBuildAndCheck()
82 … if(modSizeInWords>=CC_ECPKI_MODUL_MAX_LENGTH_IN_WORDS){ /*To remove static analyzer warning*/ in CC_EcpkiPublKeyBuildAndCheck()
116 cmp = CC_CommonCmpLsWordsUnsignedCounters(pPublKey->x, modSizeInWords, in CC_EcpkiPublKeyBuildAndCheck()
117 pDomain->ecP, modSizeInWords); in CC_EcpkiPublKeyBuildAndCheck()
133 cmp = CC_CommonCmpLsWordsUnsignedCounters(pPublKey->y, modSizeInWords, in CC_EcpkiPublKeyBuildAndCheck()
134 pDomain->ecP, modSizeInWords); in CC_EcpkiPublKeyBuildAndCheck()
228 uint32_t modSizeInBytes, modSizeInWords; in CC_EcpkiPubKeyExport() local
259 modSizeInWords = CALC_FULL_32BIT_WORDS(publKey->domain.modSizeInBits); in CC_EcpkiPubKeyExport()
275 … pExportPublKey + 1, 4*modSizeInWords, in CC_EcpkiPubKeyExport()