Searched refs:rQ (Results 1 – 3 of 3) sorted by relevance
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/ |
D | rsa_private.c | 138 int8_t rQ = regTemps[6]; in RsaExecPrivKeyExpCrt() local 174 PKA_DIV(LEN_ID_N_PKA_REG_BITS/*LenID*/, rQ/*6 Res not used*/, rT/*3 OpA*/, rN/*0 OpB=rN=Q*/); in RsaExecPrivKeyExpCrt() 183 …PkaCopyDataIntoPkaReg(rQ/*6 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->PriveKeyDb.Crt.P/*src_pt… in RsaExecPrivKeyExpCrt() 185 rQ = PKA_REG_N; rN = 6; in RsaExecPrivKeyExpCrt() 225 PkaClearPkaRegWords(rQ, pqSizeInWords); in RsaExecPrivKeyExpCrt() 235 PKA_MUL_LOW(LEN_ID_N_PKA_REG_BITS/*LenID*/, rT/*Res*/, rT/*OpA*/, rQ/*OpB*/); in RsaExecPrivKeyExpCrt()
|
D | rsa_genkey.c | 1351 uint32_t rQ = 3; in RsaCalculateNandD() local 1378 PkaCopyDataIntoPkaReg(rQ/*dstReg*/, LEN_ID_MAX_BITS, pKeyGenData->KGData.q/*src_ptr*/, in RsaCalculateNandD() 1387 …PKA_MUL_LOW(LEN_ID_N_BITS, r0, rP/*OpA*/, rQ/*OpB*/); // use LEN_ID_N_BITS, since its size is 2*… in RsaCalculateNandD() 1402 PKA_FLIP_BIT0(LEN_ID_N_BITS, rQ/*Res*/, rQ/*OpA*/); in RsaCalculateNandD() 1408 PKA_SHR_FILL0(LEN_ID_N_BITS, rQ, rQ, 0/*shift-1*/); in RsaCalculateNandD() 1410 PKA_READ_BIT0(LEN_ID_N_BITS, rQ, bit0Q); in RsaCalculateNandD() 1417 PKA_MUL_LOW(LEN_ID_N_BITS, rD/*Res*/, rP/*OpA*/, rQ/*OpB*/); in RsaCalculateNandD() 1423 rGcd = rQ; in RsaCalculateNandD() 1425 PKA_COPY(LEN_ID_N_BITS, r0/*dst*/, rQ); in RsaCalculateNandD() 1444 PKA_DIV(LEN_ID_N_BITS, rQ/*Res not used*/, rP/*OpA=LCM*/, r0/*OpB=E*/); /*rP = LCM mod E*/ in RsaCalculateNandD() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/mbedtls_api/ |
D | rsa_alt.c | 2855 const uint32_t rQ = 2; in mbedtls_alt_rsa_deduce_crt() local 2887 PkaCopyDataIntoPkaReg(rQ, REG_LEN_ID, Q->MBEDTLS_PRIVATE(p), Q->MBEDTLS_PRIVATE(n)); in mbedtls_alt_rsa_deduce_crt() 2904 PKA_SUB_IM(MOD_LEN_ID, rQ, rQ, 1); // Q -= 1 (rQ) in mbedtls_alt_rsa_deduce_crt() 2905 PKA_DIV(MOD_LEN_ID, rT3, rT2, rQ); // DQ = rT2 = rT2 mod Q in mbedtls_alt_rsa_deduce_crt() 2909 PKA_ADD_IM(MOD_LEN_ID, rQ, rQ, 1); in mbedtls_alt_rsa_deduce_crt() 2910 PKA_MOD_INV(PLEN_ID, rT3/*res*/, rQ); // rT3 = Q^-1 mod P in mbedtls_alt_rsa_deduce_crt()
|