/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | ec_wrst_dsa_verify.c | 65 PkaCopyDataIntoPkaReg(ECC_REG_N/*dest_reg*/, 1, domain->ecR/*src_ptr*/, ordSizeInWords); in EcWrstDsaVerify() 66 … PkaCopyDataIntoPkaReg(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() 74 …PkaCopyDataIntoPkaReg(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 …]
|
D | ec_wrst_dsa.c | 93 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() 325 … PkaCopyDataIntoPkaReg(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 …]
|
D | ec_wrst.c | 62 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()
|
D | pka_ec_wrst_smul_no_scap.c | 277 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()
|
D | pka_ec_wrst_smul_scap.c | 342 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/ |
D | ec_edw.c | 180 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 …]
|
D | pka_ec_edw.c | 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()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 71 …PkaCopyDataIntoPkaReg(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() 79 … PkaCopyDataIntoPkaReg( rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivData->DataIn, modSizeWords); in RsaExecPrivKeyExpNonCrt() 82 …PkaCopyDataIntoPkaReg( rT3/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.NonCrt.d, dSi… in RsaExecPrivKeyExpNonCrt() 162 …PkaCopyDataIntoPkaReg( rN/*0 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.Q/*src_p… in RsaExecPrivKeyExpCrt() 164 …PkaCopyDataIntoPkaReg( rD/*2 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.dQ/*src_… in RsaExecPrivKeyExpCrt() 166 …PkaCopyDataIntoPkaReg( rNP/*1 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPrivKeyDb_t*)(pPrivKey->ccR… in RsaExecPrivKeyExpCrt() 169 …PkaCopyDataIntoPkaReg(rT/*3 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivData->DataIn/*src_ptr*/, modS… in RsaExecPrivKeyExpCrt() 183 …PkaCopyDataIntoPkaReg(rQ/*6 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.P/*src_pt… in RsaExecPrivKeyExpCrt() 192 …PkaCopyDataIntoPkaReg(rNP/*1 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, ((RsaPrivKeyDb_t*)(pPrivKey->ccRS… in RsaExecPrivKeyExpCrt() [all …]
|
D | rsa_public.c | 89 PkaCopyDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPubKey->n/*srcPtr*/, in RsaExecPubKeyExp() 93 …PkaCopyDataIntoPkaReg(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()
|
D | rsa_genkey.c | 337 … PkaCopyDataIntoPkaReg( rT1/*dstReg*/, LEN_ID_MAX_BITS, pTempB/*src_ptr*/, pSizeInWords); in PkaRsaKgX931MillerRabinTest() 1155 … PkaCopyDataIntoPkaReg( rP1/*dstReg*/, LEN_ID_MAX_BITS, rBuff/*src_ptr*/, auxPrimeSizeInWords); in PkaRsaKgFindPrime() 1199 … PkaCopyDataIntoPkaReg( rP2/*dstReg*/, LEN_ID_MAX_BITS, rBuff/*src_ptr*/, auxPrimeSizeInWords); in PkaRsaKgFindPrime() 1279 …PkaCopyDataIntoPkaReg( 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() 1565 …PkaCopyDataIntoPkaReg(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/ |
D | pki.c | 73 PkaCopyDataIntoPkaReg(rN/*dstReg*/, LEN_ID_MAX_BITS/*lenId*/, pN/*src_ptr*/, wN); in PkiCalcNp() 135 …PkaCopyDataIntoPkaReg( rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pNumA/*src_ptr*/, numASizeInWords); in PkiLongNumDiv() 138 …PkaCopyDataIntoPkaReg( 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()
|
D | pka.h | 332 void PkaCopyDataIntoPkaReg(uint32_t dstReg,
|
D | pka.c | 890 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/ |
D | poly.c | 285 …PkaCopyDataIntoPkaReg(PRIME_REG, LEN_ID_MAX_BITS, g_PolyPrime, CALC_32BIT_WORDS_FROM_BYTES(sizeof(… in poly_restore_context() 288 …PkaCopyDataIntoPkaReg(NP_REG, LEN_ID_MAX_BITS, g_PolyNp, CALC_32BIT_WORDS_FROM_BYTES(sizeof(g_Poly… in poly_restore_context() 291 …PkaCopyDataIntoPkaReg(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() 350 …PkaCopyDataIntoPkaReg(PRIME_REG, LEN_ID_MAX_BITS, g_PolyPrime, CALC_32BIT_WORDS_FROM_BYTES(sizeof(… in PolyMacCalc_setup() 353 …PkaCopyDataIntoPkaReg(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/ |
D | pka_ec_mont.c | 159 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/ |
D | srp.c | 58 …PkaCopyDataIntoPkaReg(rT2, LEN_ID_MAX_BITS, &genWord, CALC_32BIT_WORDS_FROM_BYTES(sizeof(genWord))… in SrpPwdVerifierCalc() 105 …PkaCopyDataIntoPkaReg(rNp, LEN_ID_MAX_BITS, pCtx->groupParam.Np, CC_PKA_BARRETT_MOD_TAG_BUFF_SIZE_… in SrpHostSharedSecretCalc() 203 …PkaCopyDataIntoPkaReg(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() 285 …PkaCopyDataIntoPkaReg(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() 351 …PkaCopyDataIntoPkaReg(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/ |
D | rsa_alt.c | 2886 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/ |
D | stackinfo | 542 PkaCopyDataIntoPkaReg 156 24
|