Lines Matching refs:data
97 static size_t readFully(int fd, uint8_t* data, size_t size) {
100 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, size));
104 data += n;
110 static size_t writeFully(int fd, uint8_t* data, size_t size) {
113 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, size));
117 data += n;
142 bool generate_random_data(uint8_t* data, size_t size) {
143 return (readFully(mRandom, data, size) == size);
203 // data includes the value and the value's length
205 // pad data to the AES_BLOCK_SIZE
208 // encrypted data includes the digest value
279 // move info from after padding to after data
632 * the old one. This avoids permanent damages of the existing data. */