/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 136 int8_t rT1 = regTemps[4]; in RsaExecPrivKeyExpCrt() local 170 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT1/*4 dest*/, rT/*3 src*/); in RsaExecPrivKeyExpCrt() 203 …PKA_DIV(LEN_ID_N_PKA_REG_BITS/*LenID*/, rT/*3 res not used*/, rT1/*4 OpA and remainder*/, rN/*0 Op… in RsaExecPrivKeyExpCrt() 208 PKA_MOD_EXP(LEN_ID_PQ_BITS/*LenID*/, rT/*3 Res*/, rT1/*4 OpA*/, rD/*2 exp*/); in RsaExecPrivKeyExpCrt() 212 PKA_MOD_ADD_IM(LEN_ID_PQ_BITS/*LenID*/, rT1/*Res*/, rMq/*5 OpA*/, 0/*immed OpB*/); in RsaExecPrivKeyExpCrt() 215 PKA_MOD_SUB(LEN_ID_PQ_BITS/*LenID*/, rT/*Res*/, rT/*OpA*/, rT1/*OpB*/); in RsaExecPrivKeyExpCrt() 218 PKA_MOD_MUL(LEN_ID_PQ_BITS/*LenID*/, rT1/*Res*/, rT/*OpA*/, rqInv/*rqInv*/); in RsaExecPrivKeyExpCrt() 223 PkaClearPkaRegWords(rT1, pqSizeInWords); in RsaExecPrivKeyExpCrt() 230 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT/*dest*/, rT1/*src*/); in RsaExecPrivKeyExpCrt() 232 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT1/*dest*/, rMq/*src*/); in RsaExecPrivKeyExpCrt() [all …]
|
D | rsa_genkey.c | 268 … int8_t rT1, /*!< [in] Virtual pointer to the base vector. */ in PkaRsaKgX931MillerRabinTest() argument 288 PKA_2CLEAR(LEN_ID_MAX_BITS, rT1/*regNum*/); in PkaRsaKgX931MillerRabinTest() 337 … PkaCopyDataIntoPkaReg( rT1/*dstReg*/, LEN_ID_MAX_BITS, pTempB/*src_ptr*/, pSizeInWords); in PkaRsaKgX931MillerRabinTest() 340 PKA_MOD_EXP( lenId, rT1/*Res=z*/, rT1/*opA=b*/, rT0/*OpB=m*/); in PkaRsaKgX931MillerRabinTest() 344 PKA_COMPARE_IM_STATUS(lenId+1, rT1/*z*/, 1/*OpB*/, status); in PkaRsaKgX931MillerRabinTest() 353 PKA_COMPARE_STATUS(lenId+1, rT2/*P*/, rT1/*OpB*/, status); in PkaRsaKgX931MillerRabinTest() 362 PKA_MOD_MUL( lenId, rT1/*Res*/, rT1/*P*/, rT1/*OpB*/); in PkaRsaKgX931MillerRabinTest() 365 PKA_COMPARE_STATUS(lenId+1, rT2/*P*/, rT1/*OpB*/, status); in PkaRsaKgX931MillerRabinTest() 371 PKA_COMPARE_IM_STATUS(lenId+1, rT1/*P*/, 1/*OpB*/, status); in PkaRsaKgX931MillerRabinTest() 562 int8_t rT, rT1, rT2; in PkaRsaKgX931FindPrime1() local [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/ |
D | pka.c | 127 int8_t rT1, /*!< [in] Virtual pointer to remainder. */ in PkaDivLongNum() argument 140 PKA_COPY(LEN_ID_MAX_BITS, rT1/*dst*/, OpA/*src*/); in PkaDivLongNum() 156 PKA_SHL_FILL0( lenId+1, rT1/*Res*/, rT1/*OpA*/, (s1-1)/*S*/); in PkaDivLongNum() 161 PKA_DIV( lenId+1, rT2/*Res*/, rT1 /*OpA*/, OpB /*B*/); in PkaDivLongNum() 168 rT1/*srcReg*/); in PkaDivLongNum() 1074 … int8_t rT1, /*!< [in] The virtual pointers to temp register. */ in PkaExecFullModInv() argument 1108 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT1/*OpDest*/, N/*OpSrc*/); in PkaExecFullModInv() 1114 PKA_MOD_INV(LEN_ID_N_BITS/*LenID*/, Res, rT1/*mod N*/); in PkaExecFullModInv() 1136 rT1, in PkaExecFullModInv()
|
D | pka.h | 269 int8_t rT1,
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
D | pka_ec_edw.c | 43 …uint32_t rX1, uint32_t rY1, uint32_t rZ1, uint32_t rT1, /*!< [in] - virt. pointers to PKA register… in PkaEcEdwAddExtExtExt() argument 56 PKA_MOD_MUL_NFR(LEN_ID_N_BITS, EDW_REG_T3, rT1, rT2); in PkaEcEdwAddExtExtExt() 113 …uint32_t rX1, uint32_t rY1, uint32_t rZ1, uint32_t rT1, /*!< [in] - virt. pointers to PKA register… in PkaEcEdwAddExtPrcExt() argument 123 …PKA_MOD_MUL_NFR(LEN_ID_N_BITS, EDW_REG_T3, rT1, rP2); PkiDbgPrintReg("t3: t1*p2… in PkaEcEdwAddExtPrcExt()
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 2856 const uint32_t rT1 = 3; in mbedtls_alt_rsa_deduce_crt() local 2890 ret = PkaCalcNpIntoPkaReg(PLEN_ID, sizeBitsP, rP/*regN*/, regNp, rT1, rT2 ); in mbedtls_alt_rsa_deduce_crt() 2898 PKA_COPY(REG_LEN_ID, rT1, rD); // rT1 = D in mbedtls_alt_rsa_deduce_crt() 2900 PKA_DIV(MOD_LEN_ID, rT2, rT1, rP); // DP = rT1 = rT1 mod P in mbedtls_alt_rsa_deduce_crt() 2911 PkaCopyDataFromPkaReg(pTempBuf, P->MBEDTLS_PRIVATE(n), rT1); in mbedtls_alt_rsa_deduce_crt()
|