/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 | 228 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_XS, EDW_REG_XG2); in PkaEcEdwScalarMultBase() 229 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_YS, EDW_REG_YG2); in PkaEcEdwScalarMultBase() 230 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_TS, EDW_REG_TG2); in PkaEcEdwScalarMultBase() 234 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_XS, EDW_REG_XG2); in PkaEcEdwScalarMultBase() 235 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_YS, EDW_REG_YG2); in PkaEcEdwScalarMultBase() 236 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_TS, EDW_REG_TG2); in PkaEcEdwScalarMultBase() 240 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_XS, EDW_REG_XG4); in PkaEcEdwScalarMultBase() 241 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_YS, EDW_REG_YG4); in PkaEcEdwScalarMultBase() 242 PKA_COPY(LEN_ID_MAX_BITS, EDW_REG_TS, EDW_REG_TG4); in PkaEcEdwScalarMultBase() 250 PKA_CLEAR(LEN_ID_MAX_BITS, EDW_REG_ZS); in PkaEcEdwScalarMultBase()
|
/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() 170 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT1/*4 dest*/, rT/*3 src*/); in RsaExecPrivKeyExpCrt() 183 …PkaCopyDataIntoPkaReg(rQ/*6 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.P/*src_pt… in RsaExecPrivKeyExpCrt() [all …]
|
D | rsa_genkey.c | 143 PKA_COPY(LEN_ID_MAX_BITS, rA1/*dest*/, rA/*src*/); in PkaRsaKgX931Jacobi() 144 PKA_COPY(LEN_ID_MAX_BITS, rP1/*dest*/, rP/*src*/); in PkaRsaKgX931Jacobi() 287 PKA_2CLEAR(LEN_ID_MAX_BITS, rT0/*regNum*/); in PkaRsaKgX931MillerRabinTest() 288 PKA_2CLEAR(LEN_ID_MAX_BITS, rT1/*regNum*/); in PkaRsaKgX931MillerRabinTest() 289 PKA_2CLEAR(LEN_ID_MAX_BITS, rT2/*regNum*/); in PkaRsaKgX931MillerRabinTest() 293 PKA_COPY(LEN_ID_MAX_BITS, rT0/*dst*/, PKA_REG_N/*src=P*/); in PkaRsaKgX931MillerRabinTest() 337 … PkaCopyDataIntoPkaReg( rT1/*dstReg*/, LEN_ID_MAX_BITS, pTempB/*src_ptr*/, pSizeInWords); in PkaRsaKgX931MillerRabinTest() 439 PKA_2CLEAR(LEN_ID_MAX_BITS, rD/*regNum*/); in PkaRsaKgX931LucasPrimeTest() 472 PKA_2CLEAR(LEN_ID_MAX_BITS, rU/*regNum*/); in PkaRsaKgX931LucasPrimeTest() 474 PKA_COPY(LEN_ID_MAX_BITS, rV/*dest*/, rU/*src*/); in PkaRsaKgX931LucasPrimeTest() [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()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/srp/ |
D | srp.c | 48 …PkaCopyBeByteBuffIntoPkaReg(rN, LEN_ID_MAX_BITS, pCtx->groupParam.modulus, CALC_FULL_32BIT_WORDS(p… in SrpPwdVerifierCalc() 58 …PkaCopyDataIntoPkaReg(rT2, LEN_ID_MAX_BITS, &genWord, CALC_32BIT_WORDS_FROM_BYTES(sizeof(genWord))… in SrpPwdVerifierCalc() 59 …PkaCopyBeByteBuffIntoPkaReg(rT3, LEN_ID_MAX_BITS, xBuff, CALC_32BIT_WORDS_FROM_BYTES(pCtx->hashDig… in SrpPwdVerifierCalc() 104 …PkaCopyBeByteBuffIntoPkaReg(rN, LEN_ID_MAX_BITS, pCtx->groupParam.modulus, CALC_FULL_32BIT_WORDS(p… in SrpHostSharedSecretCalc() 105 …PkaCopyDataIntoPkaReg(rNp, LEN_ID_MAX_BITS, pCtx->groupParam.Np, CC_PKA_BARRETT_MOD_TAG_BUFF_SIZE_… in SrpHostSharedSecretCalc() 106 …PkaCopyBeByteBuffIntoPkaReg(rT2, LEN_ID_MAX_BITS, pwdVerifier, CALC_FULL_32BIT_WORDS(pCtx->groupPa… in SrpHostSharedSecretCalc() 107 …PkaCopyBeByteBuffIntoPkaReg(rT3, LEN_ID_MAX_BITS, uScramble, CALC_32BIT_WORDS_FROM_BYTES(pCtx->has… in SrpHostSharedSecretCalc() 108 …PkaCopyBeByteBuffIntoPkaReg(rT4, LEN_ID_MAX_BITS, userPubKeyA, CALC_FULL_32BIT_WORDS(pCtx->groupPa… in SrpHostSharedSecretCalc() 109 …PkaCopyBeByteBuffIntoPkaReg(rT5, LEN_ID_MAX_BITS, pCtx->ephemPriv, CALC_32BIT_WORDS_FROM_BYTES(pCt… in SrpHostSharedSecretCalc() 202 …PkaCopyBeByteBuffIntoPkaReg(rN, LEN_ID_MAX_BITS, pCtx->groupParam.modulus, CALC_FULL_32BIT_WORDS(p… in SrpUserSharedSecretCalc() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/poly/ |
D | poly.c | 281 PKA_CLEAR(LEN_ID_MAX_BITS, ACC_REG ); in poly_restore_context() 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() 298 PKA_CLEAR(LEN_ID_MAX_BITS, DATA_REG); in poly_restore_context() 299 PKA_CLEAR(LEN_ID_MAX_BITS, PKA_REG_T0); in poly_restore_context() 300 PKA_CLEAR(LEN_ID_MAX_BITS, PKA_REG_T1); in poly_restore_context() 350 …PkaCopyDataIntoPkaReg(PRIME_REG, LEN_ID_MAX_BITS, g_PolyPrime, CALC_32BIT_WORDS_FROM_BYTES(sizeof(… in PolyMacCalc_setup() [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() 436 PkaCopyBe8DataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pMod/*srcPtr*/, in PkiExecModExpBe() 452 PkaCopyBe8DataIntoPkaReg(IN_REG/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pIn, inSizeBytes, pTemp); in PkiExecModExpBe() 453 … PkaCopyBe8DataIntoPkaReg(EXP_REG/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pExp, expSizeBytes, pTemp); in PkiExecModExpBe() 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() [all …]
|
D | pka.c | 140 PKA_COPY(LEN_ID_MAX_BITS, rT1/*dst*/, OpA/*src*/); in PkaDivLongNum() 143 PKA_2CLEAR(LEN_ID_MAX_BITS, Res/*dst*/); in PkaDivLongNum() 202 PKA_COPY(LEN_ID_MAX_BITS, rRes/*dst*/, rX/*src*/); in PkaModDivideBy2() 235 PKA_GET_REG_SIZE(size, LEN_ID_MAX_BITS/*lenID*/); in PkaGetRegEffectiveSizeInBits() 412 PkaClearBlockOfRegs(PKA_REG_N/*FirstReg*/, pkaRegCount, LEN_ID_MAX_BITS/*LenID*/); in PkaFinishAndMutexUnlock() 586 PKA_2CLEAR(LEN_ID_MAX_BITS, regTemp1); in PkaCalcNpIntoPkaReg() 587 PKA_2CLEAR(LEN_ID_MAX_BITS, regTempN); in PkaCalcNpIntoPkaReg() 588 PKA_2CLEAR(LEN_ID_MAX_BITS, regNp); in PkaCalcNpIntoPkaReg() 591 PKA_COPY(LEN_ID_MAX_BITS /* LenID */, regTempN /* OpDest */, regN /* OpSrc */); in PkaCalcNpIntoPkaReg() 607 PKA_DIV(LEN_ID_MAX_BITS/*LenID*/, regNp, regTemp1, regTempN); in PkaCalcNpIntoPkaReg() [all …]
|
D | pka_defs.h | 59 …LEN_ID_MAX_BITS , // 7 - size of PKA registers (RSA: CC_RSA_MAX_KEY_GENERATION_SIZE_BITS; E… enumerator
|
D | pki_dbg.c | 202 if (lenId == LEN_ID_MAX_BITS) { in PkiDbgExecOperation() 203 PKA_GET_REG_SIZE(opSizeInBits, LEN_ID_MAX_BITS); in PkiDbgExecOperation()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | ec_wrst_dsa.c | 103 PKA_DIV(LEN_ID_MAX_BITS, rT/*not used*/, rEphK, ECC_REG_N); in CalcSignature() 104 PKA_COMPARE_IM_STATUS(LEN_ID_MAX_BITS, rEphK, 0, status); in CalcSignature()
|