Home
last modified time | relevance | path

Searched refs:PkaCopyDataIntoPkaReg (Results 1 – 18 of 18) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/
Dec_wrst_dsa_verify.c65 PkaCopyDataIntoPkaReg(ECC_REG_N/*dest_reg*/, 1, domain->ecR/*src_ptr*/, ordSizeInWords); in EcWrstDsaVerify()
66PkaCopyDataIntoPkaReg(ECC_REG_NP, 1, llfBuff->ordTag, CC_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS); in EcWrstDsaVerify()
68 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_C, 1, pSignC, ordSizeInWords); in EcWrstDsaVerify()
69 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_D, 1, pSignD, ordSizeInWords); in EcWrstDsaVerify()
71 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_F, 1, pMsgRepres, msgRepresSizeWords); in EcWrstDsaVerify()
73 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_TMP_N, 1, domain->ecP, modSizeInWords); in EcWrstDsaVerify()
74PkaCopyDataIntoPkaReg(EC_VERIFY_REG_TMP_NP, 1, llfBuff->modTag, CC_PKA_BARRETT_MOD_TAG_BUFF_SIZE_I… 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()
[all …]
Dec_wrst_dsa.c93 PkaCopyDataIntoPkaReg(ECC_REG_N, 1, pDomain->ecR/*src_ptr*/, ordSizeInWords); in CalcSignature()
94 PkaCopyDataIntoPkaReg(ECC_REG_NP, 1, ((EcWrstDomain_t*)&(pDomain->llfBuff))->ordTag, in CalcSignature()
96 PkaCopyDataIntoPkaReg(rC, 1, pEphemPublX, modSizeInWords); in CalcSignature()
97 PkaCopyDataIntoPkaReg(rM, 1, pMsgRepres, ordSizeInWords); in CalcSignature()
98 PkaCopyDataIntoPkaReg(rEphK, 1, pEphemPrivKey, ordSizeInWords); in CalcSignature()
99 PkaCopyDataIntoPkaReg(rK, 1, pSignPrivKey, ordSizeInWords); in CalcSignature()
324 PkaCopyDataIntoPkaReg(ECC_REG_N/*dest_reg*/, 1, domain->ecR/*src_ptr*/, ordSizeInWords); in EcWrstDsaVerify()
325PkaCopyDataIntoPkaReg(ECC_REG_NP, 1, llfBuff->ordTag, CC_PKA_BARRETT_MOD_TAG_BUFF_SIZE_IN_WORDS); in EcWrstDsaVerify()
327 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_C, 1, pSignC, ordSizeInWords); in EcWrstDsaVerify()
328 PkaCopyDataIntoPkaReg(EC_VERIFY_REG_D, 1, pSignD, ordSizeInWords); in EcWrstDsaVerify()
[all …]
Dec_wrst.c62 PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, 1, pDomain->ecP, modSizeInWords); in EcWrstInitPubKey()
64 PkaCopyDataIntoPkaReg(PKA_REG_NP/*dstReg*/, 1, pDomain->llfBuff/*NP*/, 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()
Dpka_ec_wrst_smul_no_scap.c277 PkaCopyDataIntoPkaReg(ECC_REG_N, 1, domain->ecP/*src_ptr*/, modSizeInWords); in ScalarMultAff()
278 PkaCopyDataIntoPkaReg(ECC_REG_NP, 1, ((EcWrstDomain_t*)&domain->llfBuff)->modTag, 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()
Dpka_ec_wrst_smul_scap.c342 PkaCopyDataIntoPkaReg(ECC_REG_N, 1, domain->ecP/*src_ptr*/, modSizeInWords); in ScalarMultSca()
343 PkaCopyDataIntoPkaReg(ECC_REG_NP, 1, ((EcWrstDomain_t*)&domain->llfBuff)->modTag, in ScalarMultSca()
345 PkaCopyDataIntoPkaReg(ECC_REG_EC_A, 1, domain->ecA, modSizeInWords); in ScalarMultSca()
346 PkaCopyDataIntoPkaReg(ord, 1, domain->ecR, CALC_FULL_32BIT_WORDS(domain->ordSizeInBits)); in ScalarMultSca()
348 PkaCopyDataIntoPkaReg(rxp, 1, bxp, modSizeInWords); in ScalarMultSca()
349 PkaCopyDataIntoPkaReg(ryp, 1, byp, modSizeInWords); in ScalarMultSca()
351 PkaCopyDataIntoPkaReg(rk, 1, k, CALC_FULL_32BIT_WORDS(kSizeBit)); in ScalarMultSca()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/
Dec_edw.c180 PkaCopyDataIntoPkaReg(EDW_REG_N, LEN_ID_MAX_BITS, pEcDomain->ecModP, edwSizeWords); in EcEdwScalarMultBase()
181 PkaCopyDataIntoPkaReg(EDW_REG_NP, LEN_ID_MAX_BITS, pEcDomain->ecModBarrTag, in EcEdwScalarMultBase()
185 PkaCopyDataIntoPkaReg(EDW_REG_SG, LEN_ID_MAX_BITS, pEcDomain->sg, edwSizeWords); in EcEdwScalarMultBase()
186 PkaCopyDataIntoPkaReg(EDW_REG_DG, LEN_ID_MAX_BITS, pEcDomain->dg, edwSizeWords); in EcEdwScalarMultBase()
187 PkaCopyDataIntoPkaReg(EDW_REG_PG, LEN_ID_MAX_BITS, pEcDomain->pg, edwSizeWords); in EcEdwScalarMultBase()
188 PkaCopyDataIntoPkaReg(EDW_REG_MPG, LEN_ID_MAX_BITS, pEcDomain->mpg, edwSizeWords); in EcEdwScalarMultBase()
189 PkaCopyDataIntoPkaReg(EDW_REG_SG2, LEN_ID_MAX_BITS, pEcDomain->sg2, edwSizeWords); in EcEdwScalarMultBase()
190 PkaCopyDataIntoPkaReg(EDW_REG_DG2, LEN_ID_MAX_BITS, pEcDomain->dg2, edwSizeWords); in EcEdwScalarMultBase()
191 PkaCopyDataIntoPkaReg(EDW_REG_PG2, LEN_ID_MAX_BITS, pEcDomain->pg2, edwSizeWords); in EcEdwScalarMultBase()
192 PkaCopyDataIntoPkaReg(EDW_REG_MPG2, LEN_ID_MAX_BITS, pEcDomain->mpg2, edwSizeWords); in EcEdwScalarMultBase()
[all …]
Dpka_ec_edw.c457 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()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa_private.c71PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->n/*srcPtr*/,modSize… in RsaExecPrivKeyExpNonCrt()
74 PkaCopyDataIntoPkaReg(PKA_REG_NP/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, in RsaExecPrivKeyExpNonCrt()
79PkaCopyDataIntoPkaReg( rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivData->DataIn, modSizeWords); in RsaExecPrivKeyExpNonCrt()
82PkaCopyDataIntoPkaReg( rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.NonCrt.d, dSi… in RsaExecPrivKeyExpNonCrt()
162PkaCopyDataIntoPkaReg( rN/*0 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.Q/*src_p… in RsaExecPrivKeyExpCrt()
164PkaCopyDataIntoPkaReg( rD/*2 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.dQ/*src_… in RsaExecPrivKeyExpCrt()
166PkaCopyDataIntoPkaReg( rNP/*1 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPrivKeyDb_t*)(pPrivKey->ccR… in RsaExecPrivKeyExpCrt()
169PkaCopyDataIntoPkaReg(rT/*3 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivData->DataIn/*src_ptr*/, modS… in RsaExecPrivKeyExpCrt()
183PkaCopyDataIntoPkaReg(rQ/*6 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.P/*src_pt… in RsaExecPrivKeyExpCrt()
192PkaCopyDataIntoPkaReg(rNP/*1 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPrivKeyDb_t*)(pPrivKey->ccRS… in RsaExecPrivKeyExpCrt()
[all …]
Drsa_public.c89 PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPubKey->n/*srcPtr*/, in RsaExecPubKeyExp()
93PkaCopyDataIntoPkaReg(PKA_REG_NP/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPubKeyDb_t*)(pPubKey->c… in RsaExecPubKeyExp()
97 PkaCopyDataIntoPkaReg( rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, in RsaExecPubKeyExp()
101 PkaCopyDataIntoPkaReg(rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, in RsaExecPubKeyExp()
Drsa_genkey.c337PkaCopyDataIntoPkaReg( rT1/*dstReg*/, LEN_ID_MAX_BITS, pTempB/*src_ptr*/, pSizeInWords); in PkaRsaKgX931MillerRabinTest()
1155PkaCopyDataIntoPkaReg( rP1/*dstReg*/, LEN_ID_MAX_BITS, rBuff/*src_ptr*/, auxPrimeSizeInWords); in PkaRsaKgFindPrime()
1199PkaCopyDataIntoPkaReg( rP2/*dstReg*/, LEN_ID_MAX_BITS, rBuff/*src_ptr*/, auxPrimeSizeInWords); in PkaRsaKgFindPrime()
1279PkaCopyDataIntoPkaReg( PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*lenId*/, pPrimeP/*src_ptr*/, sizeWord… in RsaKgPrimeTest()
1282 PkaCopyDataIntoPkaReg( PKA_REG_NP/*dstReg*/, LEN_ID_MAX_BITS/*lenId*/, pTempBuff/*src_ptr*/, in RsaKgPrimeTest()
1375 PkaCopyDataIntoPkaReg(rP/*dstReg*/, LEN_ID_MAX_BITS, pKeyGenData->KGData.p/*src_ptr*/, in RsaCalculateNandD()
1378 PkaCopyDataIntoPkaReg(rQ/*dstReg*/, LEN_ID_MAX_BITS, pKeyGenData->KGData.q/*src_ptr*/, in RsaCalculateNandD()
1439 PkaCopyDataIntoPkaReg(r0/*dstReg*/, LEN_ID_MAX_BITS, pCcPubKey->e/*src_ptr*/, in RsaCalculateNandD()
1564 PkaCopyDataIntoPkaReg(rP/*dstReg*/, LEN_ID_MAX_BITS, pPrime/*src_ptr*/, primeSizeInWords); in RsaKgFindPrime()
1565PkaCopyDataIntoPkaReg(rE/*dstReg*/, LEN_ID_MAX_BITS, pPubExp/*src_ptr*/, CALC_FULL_32BIT_WORDS(eSi… in RsaKgFindPrime()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/
Dpki.c73 PkaCopyDataIntoPkaReg(rN/*dstReg*/, LEN_ID_MAX_BITS/*lenId*/, pN/*src_ptr*/, wN); in PkiCalcNp()
135PkaCopyDataIntoPkaReg( rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pNumA/*src_ptr*/, numASizeInWords); in PkiLongNumDiv()
138PkaCopyDataIntoPkaReg( rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pNumB/*src_ptr*/, numBSizeInWords); in PkiLongNumDiv()
215 PkaCopyDataIntoPkaReg(rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pNumA/*src_ptr*/, in PkiLongNumMul()
219 PkaCopyDataIntoPkaReg(rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pNumB/*src_ptr*/, in PkiLongNumMul()
353 PkaCopyDataIntoPkaReg(dstReg, lenId, pTemp, regSizeWords); in PkaCopyBe8DataIntoPkaReg()
513 PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, in PkiExecModExpLeW()
527 PkaCopyDataIntoPkaReg(IN_REG/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pIn, inSizeWords); in PkiExecModExpLeW()
528 PkaCopyDataIntoPkaReg(EXP_REG/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pExp, expSizeWords); in PkiExecModExpLeW()
Dpka.h332 void PkaCopyDataIntoPkaReg(uint32_t dstReg,
Dpka.c890 void PkaCopyDataIntoPkaReg(uint32_t dstReg, /*!< [out] Virtual address (number) of destinat… in PkaCopyDataIntoPkaReg() function
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/poly/
Dpoly.c285PkaCopyDataIntoPkaReg(PRIME_REG, LEN_ID_MAX_BITS, g_PolyPrime, CALC_32BIT_WORDS_FROM_BYTES(sizeof(… in poly_restore_context()
288PkaCopyDataIntoPkaReg(NP_REG, LEN_ID_MAX_BITS, g_PolyNp, CALC_32BIT_WORDS_FROM_BYTES(sizeof(g_Poly… in poly_restore_context()
291PkaCopyDataIntoPkaReg(ACC_REG, LEN_ID_MAX_BITS, acc, CALC_32BIT_WORDS_FROM_BYTES(sizeof(ctx->acc))… in poly_restore_context()
293 PkaCopyDataIntoPkaReg(KEY_R_REG, LEN_ID_MAX_BITS, pKeyR, CC_POLY_KEY_SIZE_IN_WORDS/2); in poly_restore_context()
295 PkaCopyDataIntoPkaReg(KEY_S_REG, LEN_ID_MAX_BITS, pKeyS, CC_POLY_KEY_SIZE_IN_WORDS/2); in poly_restore_context()
350PkaCopyDataIntoPkaReg(PRIME_REG, LEN_ID_MAX_BITS, g_PolyPrime, CALC_32BIT_WORDS_FROM_BYTES(sizeof(… in PolyMacCalc_setup()
353PkaCopyDataIntoPkaReg(NP_REG, LEN_ID_MAX_BITS, g_PolyNp, CALC_32BIT_WORDS_FROM_BYTES(sizeof(g_Poly… in PolyMacCalc_setup()
356 PkaCopyDataIntoPkaReg(KEY_R_REG, LEN_ID_MAX_BITS, pKeyR, CC_POLY_KEY_SIZE_IN_WORDS/2); in PolyMacCalc_setup()
358 PkaCopyDataIntoPkaReg(KEY_S_REG, LEN_ID_MAX_BITS, pKeyS, CC_POLY_KEY_SIZE_IN_WORDS/2); in PolyMacCalc_setup()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_mont/
Dpka_ec_mont.c159 PkaCopyDataIntoPkaReg(EC_MONT_REG_N/*dstReg*/, LEN_ID_N_PKA_REG_BITS, in EcMontPkaScalMultWithLadder()
162 PkaCopyDataIntoPkaReg(EC_MONT_REG_NP/*dstReg*/, LEN_ID_N_PKA_REG_BITS, in EcMontPkaScalMultWithLadder()
166 PkaCopyDataIntoPkaReg(EC_MONT_REG_A24/*dstReg*/, LEN_ID_N_PKA_REG_BITS, in EcMontPkaScalMultWithLadder()
169 PkaCopyDataIntoPkaReg(EC_MONT_REG_X1/*dstReg*/, LEN_ID_N_PKA_REG_BITS, in EcMontPkaScalMultWithLadder()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/srp/
Dsrp.c58PkaCopyDataIntoPkaReg(rT2, LEN_ID_MAX_BITS, &genWord, CALC_32BIT_WORDS_FROM_BYTES(sizeof(genWord))… in SrpPwdVerifierCalc()
105PkaCopyDataIntoPkaReg(rNp, LEN_ID_MAX_BITS, pCtx->groupParam.Np, CC_PKA_BARRETT_MOD_TAG_BUFF_SIZE_… in SrpHostSharedSecretCalc()
203PkaCopyDataIntoPkaReg(rNp, LEN_ID_MAX_BITS, pCtx->groupParam.Np, CALC_32BIT_WORDS_FROM_BYTES(sizeo… in SrpUserSharedSecretCalc()
204 PkaCopyDataIntoPkaReg(rT2, LEN_ID_MAX_BITS, &genWord, CALC_FULL_32BIT_WORDS(sizeof(genWord))); in SrpUserSharedSecretCalc()
285PkaCopyDataIntoPkaReg(rNp, LEN_ID_MAX_BITS, pCtx->groupParam.Np, CALC_32BIT_WORDS_FROM_BYTES(sizeo… in SrpHostPublicKeyCalc()
289 PkaCopyDataIntoPkaReg(rT4, LEN_ID_MAX_BITS, &genWord, CALC_FULL_32BIT_WORDS(sizeof(genWord))); in SrpHostPublicKeyCalc()
351PkaCopyDataIntoPkaReg(rNp, LEN_ID_MAX_BITS, pCtx->groupParam.Np, CALC_32BIT_WORDS_FROM_BYTES(sizeo… in SrpUserPublicKeyCalc()
353 PkaCopyDataIntoPkaReg(rT2, LEN_ID_MAX_BITS, &genWord, CALC_FULL_32BIT_WORDS(sizeof(genWord))); in SrpUserPublicKeyCalc()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/
Drsa_alt.c2886 PkaCopyDataIntoPkaReg(rP, REG_LEN_ID, P->MBEDTLS_PRIVATE(p), P->MBEDTLS_PRIVATE(n)); in mbedtls_alt_rsa_deduce_crt()
2887 PkaCopyDataIntoPkaReg(rQ, REG_LEN_ID, Q->MBEDTLS_PRIVATE(p), Q->MBEDTLS_PRIVATE(n)); in mbedtls_alt_rsa_deduce_crt()
2888 PkaCopyDataIntoPkaReg(rD, REG_LEN_ID, D->MBEDTLS_PRIVATE(p), D->MBEDTLS_PRIVATE(n)); in mbedtls_alt_rsa_deduce_crt()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/host/src/tests/integration_cc3x/runtime_integration_test/
Dstackinfo542 PkaCopyDataIntoPkaReg 156 24