Home
last modified time | relevance | path

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

/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/codesafe/src/crypto_api/rnd_dma/
Dcc_rnd_common.c173 uint32_t rndSizeInBytes, checkingSizeBytes = 0; in CC_RndGenerateVectorInRange() local
193 rndSizeInBytes = CALC_FULL_BYTES(rndSizeInBits); in CC_RndGenerateVectorInRange()
195 if (rndSizeInBits <= 1 || (uint32_t)rndSizeInBytes > CC_RND_MAX_GEN_VECTOR_SIZE_BYTES) in CC_RndGenerateVectorInRange()
215 … = RndGenerateVectFunc((void *)rndState_ptr, (unsigned char *)rndVect_ptr, (size_t)rndSizeInBytes); in CC_RndGenerateVectorInRange()
221 CC_CommonReverseMemcpy(rndVect_ptr, rndVect_ptr, rndSizeInBytes); in CC_RndGenerateVectorInRange()
224 rndVect_ptr[rndSizeInBytes-1] |= 0x80; in CC_RndGenerateVectorInRange()
226 rndVect_ptr[rndSizeInBytes-1] >>= (8 - (rndSizeInBits&0x7))&0x7; in CC_RndGenerateVectorInRange()
238 … maxVect_ptr, (uint16_t)rndSizeInBytes); in CC_RndGenerateVectorInRange()
251 extraBytes = rndSizeInBytes - maxVectSizeBytes; in CC_RndGenerateVectorInRange()
329 CC_PalMemSetZero(rndVect_ptr, rndSizeInBytes); in CC_RndGenerateVectorInRange()