Searched refs:modSizeWords (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 | 47 uint32_t modSizeWords, dSizeInWords; in RsaExecPrivKeyExpNonCrt() local 55 modSizeWords = CALC_FULL_32BIT_WORDS(pPrivKey->nSizeInBits); in RsaExecPrivKeyExpNonCrt() 56 if (modSizeWords > CALC_FULL_32BIT_WORDS(CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS)) { in RsaExecPrivKeyExpNonCrt() 71 …yDataIntoPkaReg(PKA_REG_N/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivKey->n/*srcPtr*/,modSizeWords); in RsaExecPrivKeyExpNonCrt() 79 … PkaCopyDataIntoPkaReg( rT2/*dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivData->DataIn, modSizeWords); in RsaExecPrivKeyExpNonCrt() 92 PkaCopyDataFromPkaReg(pPrivData->DataOut, modSizeWords, rT4/*srcReg*/); in RsaExecPrivKeyExpNonCrt() 127 uint32_t modSizeWords, pqSizeInWords; in RsaExecPrivKeyExpCrt() local 143 modSizeWords = CALC_FULL_32BIT_WORDS(pPrivKey->nSizeInBits); in RsaExecPrivKeyExpCrt() 144 if (modSizeWords > CALC_FULL_32BIT_WORDS(CC_RSA_MAX_VALID_KEY_SIZE_VALUE_IN_BITS)) { in RsaExecPrivKeyExpCrt() 169 …aIntoPkaReg(rT/*3 dstReg*/, LEN_ID_MAX_BITS/*LenID*/, pPrivData->DataIn/*src_ptr*/, modSizeWords ); in RsaExecPrivKeyExpCrt() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/ |
D | cc_dh_kg.c | 508 uint32_t modSizeBytes, modSizeWords; in DhX942FindPrimeP() local 568 modSizeWords = CALC_FULL_32BIT_WORDS(modPsizeBits); in DhX942FindPrimeP() 583 TempBuff3_ptr = TempBuff2_ptr + modSizeWords + 2; in DhX942FindPrimeP() 584 TempBuff4_ptr = TempBuff3_ptr + 2*modSizeWords + 2; in DhX942FindPrimeP() 660 …Error = CC_CommonConvertMsbLsbBytesToLswMswWords(P_ptr, modSizeWords*4, (uint8_t*)P_ptr, modSizeBy… in DhX942FindPrimeP() 672 P_ptr[modSizeWords-1] |= 0x80000000; /* MS bit */ in DhX942FindPrimeP() 675 … carry = CC_CommonAdd2vectors(Q_ptr, Q_ptr, CC_MIN(modSizeWords, orderSizeWords), TempBuff3_ptr); in DhX942FindPrimeP() 679 if(orderSizeWords + 1 > modSizeWords) in DhX942FindPrimeP() 691 modSizeWords, /*P_size in words*/ in DhX942FindPrimeP() 702 CC_CommonSubtractUintArrays(P_ptr, TempBuff4_ptr, modSizeWords, P_ptr); in DhX942FindPrimeP() [all …]
|
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/common/ |
D | pki.c | 497 uint32_t modSizeWords; in PkiExecModExpLeW() local 510 modSizeWords = CALC_FULL_32BIT_WORDS(modSizeBits); in PkiExecModExpLeW() 514 pMod/*srcPtr*/, modSizeWords); in PkiExecModExpLeW() 534 PkaCopyDataFromPkaReg(pOut, modSizeWords, OUT_REG); in PkiExecModExpLeW()
|