/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_wrst/ |
D | pka_ec_wrst_smul_scap.c | 167 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_TP, EC_SIGN_REG_RK); in PkaScalarMultSca() 175 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_RK, EC_SIGN_REG_TP); // Used k in PkaScalarMultSca() 179 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_RK, EC_SIGN_REG_ZP); // Used -k in PkaScalarMultSca() 194 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_XS, EC_SIGN_REG_X2); in PkaScalarMultSca() 195 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_YS, EC_SIGN_REG_Y2); in PkaScalarMultSca() 196 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_ZS, EC_SIGN_REG_Z2); in PkaScalarMultSca() 197 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_TS, EC_SIGN_REG_T2); in PkaScalarMultSca() 201 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_XS, EC_SIGN_REG_X2); in PkaScalarMultSca() 202 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_YS, EC_SIGN_REG_Y2); in PkaScalarMultSca() 203 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_SIGN_REG_ZS, EC_SIGN_REG_Z2); in PkaScalarMultSca() [all …]
|
D | pka_ec_wrst_dsa_verify.c | 90 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_VERIFY_REG_TMP, ECC_REG_N); in PkaEcdsaVerify() 91 PKA_COPY(LEN_ID_N_PKA_REG_BITS, ECC_REG_N, EC_VERIFY_REG_TMP_N); in PkaEcdsaVerify() 92 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_VERIFY_REG_TMP_N, EC_VERIFY_REG_TMP); //swap mod<->ord in PkaEcdsaVerify() 93 PKA_COPY(LEN_ID_N_PKA_REG_BITS, ECC_REG_NP, EC_VERIFY_REG_TMP_NP); in PkaEcdsaVerify()
|
D | pka_ec_wrst.c | 57 PKA_COPY(LEN_ID_N_PKA_REG_BITS, t, ECC_REG_T4); in PkaDoubleMdf2Mdf() 243 PKA_COPY(LEN_ID_N_PKA_REG_BITS, xr, xq); in PkaSum2ScalarMullt() 244 PKA_COPY(LEN_ID_N_PKA_REG_BITS, yr, yq); in PkaSum2ScalarMullt() 247 PKA_COPY(LEN_ID_N_PKA_REG_BITS, xr, xp); in PkaSum2ScalarMullt() 248 PKA_COPY(LEN_ID_N_PKA_REG_BITS, yr, yp); in PkaSum2ScalarMullt() 251 PKA_COPY(LEN_ID_N_PKA_REG_BITS, xr, EC_VERIFY_REG_XPQ); in PkaSum2ScalarMullt() 252 PKA_COPY(LEN_ID_N_PKA_REG_BITS, yr, EC_VERIFY_REG_YPQ); in PkaSum2ScalarMullt() 259 PKA_COPY(LEN_ID_N_PKA_REG_BITS, EC_VERIFY_REG_TR, ECC_REG_EC_A); in PkaSum2ScalarMullt()
|
D | pka_ec_wrst_smul_no_scap.c | 107 PKA_COPY(LEN_ID_N_PKA_REG_BITS, xr, xp); in PkaScalarMultAff() 108 PKA_COPY(LEN_ID_N_PKA_REG_BITS, yr, yp); // r = p in PkaScalarMultAff() 110 PKA_COPY(LEN_ID_N_PKA_REG_BITS, tr, ECC_REG_EC_A); in PkaScalarMultAff()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/ |
D | pki_modular_arithmetic.c | 93 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_C, PKA_REG_A); in PkiCalcJacobiSymbol() 94 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_A, PKA_REG_B); in PkiCalcJacobiSymbol() 96 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_B, PKA_REG_C); /* b = a prev. */ in PkiCalcJacobiSymbol() 181 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_A, PKA_REG_Y2); in PkiIsModSquareRootExists() 182 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_B, PKA_REG_N); in PkiIsModSquareRootExists() 214 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_A, PKA_REG_Z); in PkiIsModSquareRootExists() 215 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_B, PKA_REG_N); in PkiIsModSquareRootExists() 223 PKA_COPY(LEN_ID_N_PKA_REG_BITS, PKA_REG_YT, PKA_REG_Y2); in PkiIsModSquareRootExists()
|
D | pka.c | 140 PKA_COPY(LEN_ID_MAX_BITS, rT1/*dst*/, OpA/*src*/); in PkaDivLongNum() 202 PKA_COPY(LEN_ID_MAX_BITS, rRes/*dst*/, rX/*src*/); in PkaModDivideBy2() 591 PKA_COPY(LEN_ID_MAX_BITS /* LenID */, regTempN /* OpDest */, regN /* OpSrc */); in PkaCalcNpIntoPkaReg() 1014 PKA_COPY(LEN_ID_MAX_BITS, rT/*dst*/, rX/*src*/); in PkaGetBitFromPkaReg() 1107 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT0/*OpDest*/, N/*OpSrc*/); in PkaExecFullModInv() 1108 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT1/*OpDest*/, N/*OpSrc*/); in PkaExecFullModInv() 1111 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, N/*OpDest*/, OpB/*OpSrc*/); in PkaExecFullModInv() 1118 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, N/*OpDest*/, rT0/*OpSrc*/); in PkaExecFullModInv()
|
D | pka.h | 126 #define PKA_COPY(lenId, OpDest, OpSrc) \ macro
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_edw/ |
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() 496 PKA_COPY(LEN_ID_N_PKA_REG_BITS, rXR, EDW_REG_XG); in PkaEcEdwAddTwoScalarMult() [all …]
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
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() 293 PKA_COPY(LEN_ID_MAX_BITS, rT0/*dst*/, PKA_REG_N/*src=P*/); in PkaRsaKgX931MillerRabinTest() 474 PKA_COPY(LEN_ID_MAX_BITS, rV/*dest*/, rU/*src*/); in PkaRsaKgX931LucasPrimeTest() 596 PKA_COPY(LEN_ID_MAX_BITS, rT/*dest*/, rP/*src*/); in PkaRsaKgX931FindPrime1() 633 PKA_COPY(LEN_ID_MAX_BITS, PKA_REG_N/*dst*/, rP/*src*/); in PkaRsaKgX931FindPrime1() 740 PKA_COPY(LEN_ID_MAX_BITS, rT/*dest*/, rP/*src*/); in PkaRsaKgX931FindPrime2() 747 PKA_COPY(LEN_ID_MAX_BITS, rT/*dest*/, rDelta/*src*/); in PkaRsaKgX931FindPrime2() 771 PKA_COPY(LEN_ID_MAX_BITS, PKA_REG_N/*dest*/, rE/*src*/); in PkaRsaKgX931FindPrime2() 784 PKA_COPY(LEN_ID_MAX_BITS, PKA_REG_N/*dst*/, rP/*src*/); in PkaRsaKgX931FindPrime2() [all …]
|
D | rsa_private.c | 170 PKA_COPY(LEN_ID_MAX_BITS/*LenID*/, rT1/*4 dest*/, rT/*3 src*/); 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()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/ec_mont/ |
D | pka_ec_mont.c | 64 PKA_COPY(LEN_ID_N_PKA_REG_BITS, rX3, EC_MONT_REG_X1); in EcMontPkaScalarMultWithLadderExe()
|
/trusted-firmware-m-3.6.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 2898 PKA_COPY(REG_LEN_ID, rT1, rD); // rT1 = D in mbedtls_alt_rsa_deduce_crt() 2903 PKA_COPY(REG_LEN_ID, rT2, rD); // rT2 = D in mbedtls_alt_rsa_deduce_crt()
|