Home
last modified time | relevance | path

Searched refs:primeSizeBytes (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/
Dcc_ffc_domain.c495 uint32_t primeSizeBytes, primeSizeWords, remainBytes; in FfcFips186v4FindPrimeP() local
516 primeSizeBytes = primeSizeWords*CC_32BIT_WORD_SIZE; in FfcFips186v4FindPrimeP()
532 countBlocks = primeSizeBytes / hashDigestSize; /* n */ in FfcFips186v4FindPrimeP()
533 remainBytes = primeSizeBytes % hashDigestSize; /*not full block size*/ in FfcFips186v4FindPrimeP()
542 CHECK_ERROR(FfcGetCountOfRabMilTests(&countRabMilTests, primeSizeBytes*CC_BITS_IN_BYTE)); in FfcFips186v4FindPrimeP()
560 for(counter = 0; counter < 4*primeSizeBytes*CC_BITS_IN_BYTE; counter++) { in FfcFips186v4FindPrimeP()
665 size_t primeSizeBytes; in FfcFips186v4CreateGenerator() local
686 primeSizeBytes = pDomain->modLenWords * CC_32BIT_WORD_SIZE; in FfcFips186v4CreateGenerator()
735 pDomain->prime[primeSizeBytes-1] ^= 1; /* temporary: P = p-1;*/ in FfcFips186v4CreateGenerator()
743 pDomain->prime[primeSizeBytes-1] ^= 1; /*reset: P = P+1*/ in FfcFips186v4CreateGenerator()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/
Dcc_ffcdh.c1075 size_t primeSizeBytes; in CC_FfcDhValidatePublKey() local
1096 primeSizeBytes = primeSizeWords*CC_32BIT_WORD_SIZE; in CC_FfcDhValidatePublKey()
1107 CHECK_ERROR(CC_CommonConvertMsbLsbBytesToLswMswWords(pPublKey32/*out32*/, primeSizeBytes, in CC_FfcDhValidatePublKey()
1155 CC_PalMemSetZero((uint8_t*)pTmpBuff, primeSizeBytes); in CC_FfcDhValidatePublKey()
1197 uint32_t primeSizeBytes, primeSizeWords, previousKeySize; in CC_FfcDhValidateAndImportPublKey() local
1219 primeSizeBytes = primeSizeWords*CC_32BIT_WORD_SIZE; in CC_FfcDhValidateAndImportPublKey()
1269 CHECK_ERROR(CC_CommonConvertMsbLsbBytesToLswMswWords(pPublKey32/*out32*/, primeSizeBytes, in CC_FfcDhValidateAndImportPublKey()
1272 *pPublKeySizeBytes = primeSizeBytes; in CC_FfcDhValidateAndImportPublKey()
1327 size_t primeSizeBytes, orderSizeBytes; in CC_FfcDhValidateAndImportKeyPair() local
1366 primeSizeBytes = primeSizeWords*CC_32BIT_WORD_SIZE; in CC_FfcDhValidateAndImportKeyPair()
[all …]