Home
last modified time | relevance | path

Searched refs:orderSizeWords (Results 1 – 3 of 3) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/
Dcc_ffc_domain.c372 uint32_t orderSizeWords, orderSizeBytes; /*in*/ in FfcFips186v4FindOrderQ() local
393 orderSizeWords = pDomain->ordLenWords; in FfcFips186v4FindOrderQ()
399 pTmp1 = pHashData + orderSizeWords + 1; /*buffer 3*PrimeSizeWords*/ in FfcFips186v4FindOrderQ()
405 pOrder[orderSizeWords] = 0; in FfcFips186v4FindOrderQ()
441 pOrder[orderSizeWords - 1] |= 0x00000001; in FfcFips186v4FindOrderQ()
448 CHECK_ERROR(RsaPrimeTestCall(pRndContext, pOrder, orderSizeWords, in FfcFips186v4FindOrderQ()
498 uint32_t orderSizeBytes, orderSizeWords; in FfcFips186v4FindPrimeP() local
519 orderSizeWords = orderSizeBytes; in FfcFips186v4FindPrimeP()
527 pRemC = p2Q + orderSizeWords+1; /*buffer for remainder C of size = orderSizeWords+1.*/ in FfcFips186v4FindPrimeP()
528 …pHashInput = (uint8_t*)(pRemC + orderSizeWords+1); /*buffer for hash-input data of size = seedSize… in FfcFips186v4FindPrimeP()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/
Dcc_ffcdh.c1076 size_t primeSizeWords, orderSizeWords; in CC_FfcDhValidatePublKey() local
1095 orderSizeWords = pDomain->ordLenWords; in CC_FfcDhValidatePublKey()
1141 orderSizeWords); /* Q size in words*/ in CC_FfcDhValidatePublKey()
1328 size_t primeSizeWords, orderSizeWords; in CC_FfcDhValidateAndImportKeyPair() local
1365 orderSizeWords = pFfcDomain->ordLenWords; in CC_FfcDhValidateAndImportKeyPair()
1367 orderSizeBytes = orderSizeWords*CC_32BIT_WORD_SIZE; in CC_FfcDhValidateAndImportKeyPair()
1413 cmp = CC_CommonCmpLsWordsUnsignedCounters(pOrder, orderSizeWords, pPrivKey32, orderSizeWords); in CC_FfcDhValidateAndImportKeyPair()
1416 cmp = CC_CommonCmpLsWordsUnsignedCounters(pPrivKey32, orderSizeWords, &one, 1); in CC_FfcDhValidateAndImportKeyPair()
1447 orderSizeWords); /* private key full size in bytes */ in CC_FfcDhValidateAndImportKeyPair()
1718 uint32_t primeSizeWords, orderSizeWords; in FfcDhCalcSharedSecretVal() local
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/
Dcc_dh_kg.c517 uint32_t orderSizeWords, M1; in DhX942FindPrimeP() local
574 orderSizeWords = CALC_FULL_32BIT_WORDS(orderQsizeBits); 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()
681 TempBuff3_ptr[orderSizeWords] = 1; in DhX942FindPrimeP()
683 TempBuff3_ptr[orderSizeWords] = 0; in DhX942FindPrimeP()
693 orderSizeWords + 1, /*divider_size in words*/ in DhX942FindPrimeP()