Lines Matching defs:data
346 * complete most significant incomplete u64 with 0 (if data is not a u64
348 * @param addr: PKA_RAM address to write the buffer 'data'
349 * @param data: is a BYTE list with most significant bytes first
350 * @param data_size: nb of byte in data
352 * (note it depends of the prime modulus length, not the data size)
354 * -EINVAL if data_size and eo_nbw are inconsistent, ie data doesn't
357 static int write_eo_data(uintptr_t addr, uint8_t *data, unsigned int data_size,
373 /* Stop if end of tmp or end of data */
375 tmp |= (uint64_t)(data[data_index]) << (UINT8_LEN * i);
463 * @brief Check if BigInt stored in data is 0
465 * @param data: a BYTE array with most significant bytes first
466 * @param size: data size
468 * @retval: true: if data represents a 0 value (ie all bytes == 0)
469 * false: if data represents a non-zero value.
471 static bool is_zero(uint8_t *data, unsigned int size)
476 if (data[i] != 0U) {