Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/dh/
Dcc_dh.c92 size_t PrimeSize, in CC_DhGeneratePubPrv() argument
149 if (PrimeSize > CC_DH_MAX_MOD_SIZE_IN_BYTES || PrimeSize == 0) in CC_DhGeneratePubPrv()
152 if (GeneratorSize == 0 || GeneratorSize > PrimeSize) in CC_DhGeneratePubPrv()
155 if (*ClientPubSize_ptr < PrimeSize) in CC_DhGeneratePubPrv()
158 if (*ClientPrvKeySize_ptr < PrimeSize) in CC_DhGeneratePubPrv()
176 Prime_ptr[PrimeSize-1] -= tmpByte; /* temporary p = p-1 */ in CC_DhGeneratePubPrv()
178 Prime_ptr, PrimeSize ); in CC_DhGeneratePubPrv()
184 Prime_ptr[PrimeSize-1] += tmpByte; in CC_DhGeneratePubPrv()
192 CC_CommonReverseMemcpy( (uint8_t*)tmpPrimeData_ptr->DataIn , Prime_ptr , PrimeSize ); in CC_DhGeneratePubPrv()
195 tmpSize = CC_MIN( PrimeSize*8, in CC_DhGeneratePubPrv()
[all …]