Home
last modified time | relevance | path

Searched refs:pPrime (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/shared/include/crypto_api/
Dcc_ffc_domain.h311 … uint8_t *pPrime, /*!< [in] pointer to prime modulus of the finite field (P). */
354 … uint8_t *pPrime, /*!< [out] pointer to prime modulus of the finite field (P). */
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffc_domain/
Dcc_ffc_domain.c1098 … uint8_t *pPrime, /*!< [in] pointer to prime modulus of the finite field (P). */ in CC_FfcValidateAndImportDomain() argument
1154 …CHECK_AND_SET_ERROR(FfcCmpBeBytes2LeWordsBigNum(pPrime, pDomain->prime, primeSizeBytes/CC_32BIT_WO… in CC_FfcValidateAndImportDomain()
1182 CHECK_AND_SET_ERROR((pPrime == NULL) || (pOrder == NULL) || (pGenerator == NULL), in CC_FfcValidateAndImportDomain()
1186 … CC_CommonConvertMsbLsbBytesToLswMswWords(pDomain->prime, primeSizeBytes, pPrime, primeSizeBytes); in CC_FfcValidateAndImportDomain()
1229 … uint8_t *pPrime, /*!< [out] pointer to prime modulus of the finite field (P). */ in CC_FfcExportDomain() argument
1266 if((pPrime != NULL) && (pPrimeSize != NULL)) { in CC_FfcExportDomain()
1267 CHECK_ERROR(FfcCheckPtrAndSize(pPrime, pPrimeSize, pDomain->prime, primeSizeBytes)); in CC_FfcExportDomain()
1268 …CHECK_ERROR(CC_CommonConvertLswMswWordsToMsbLsbBytes(pPrime, primeSizeBytes, pDomain->prime, prime… in CC_FfcExportDomain()
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/ffcdh/
Dcc_ffcdh.c1073 uint32_t *pPrime; in CC_FfcDhValidatePublKey() local
1098 pPrime = &pDomain->prime[0]; in CC_FfcDhValidatePublKey()
1117 pPrime[0] -= 1; /*temporary set P = P-1*/ in CC_FfcDhValidatePublKey()
1118 cmp = CC_CommonCmpLsWordsUnsignedCounters(pPrime, primeSizeWords, pPublKey32, primeSizeWords); in CC_FfcDhValidatePublKey()
1120 pPrime[0] += 1; /*repair P */ in CC_FfcDhValidatePublKey()
1138 pPrime, /*prime P - modulus*/ in CC_FfcDhValidatePublKey()
1326 uint32_t *pPrime, *pOrder, one = 0; in CC_FfcDhValidateAndImportKeyPair() local
1369 pPrime = &pDhCtx->ffcDomain.prime[0]; /* Prime p */ in CC_FfcDhValidateAndImportKeyPair()
1420 pPrime[0] -= 1; in CC_FfcDhValidateAndImportKeyPair()
1421 cmp = CC_CommonCmpLsWordsUnsignedCounters(pPrime, primeSizeWords, pPublKey32, primeSizeWords); in CC_FfcDhValidateAndImportKeyPair()
[all …]
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/pki/rsa/
Drsa_genkey.c1499 uint32_t *pPrime, /*!< [out] Pointer to the first factor - P. */ in RsaKgFindPrime() argument
1556 pPrime[primeSizeInWords - 1] |= 0x80000000; in RsaKgFindPrime()
1557 pPrime[primeSizeInWords] = 0; in RsaKgFindPrime()
1558 pPrime[0] |= 0x01; in RsaKgFindPrime()
1560 CC_CommonReverseMemcpy(primeInt->xPrime, (uint8_t *)pPrime, primeSizeInBits/CC_BITS_IN_BYTE); in RsaKgFindPrime()
1564 PkaCopyDataIntoPkaReg(rP/*dstReg*/, LEN_ID_MAX_BITS, pPrime/*src_ptr*/, primeSizeInWords); in RsaKgFindPrime()
1586 PkaCopyDataFromPkaReg( pPrime/*dst_ptr*/, primeSizeInWords, rP/*srcReg*/ ); in RsaKgFindPrime()