/system/nfc/src/nfa/include/ |
H A D | nfa_mem_co.h | 51 extern void* nfa_mem_co_alloc(uint32_t num_bytes);
|
/system/tpm/tpm_manager/server/ |
H A D | openssl_crypto_util_impl.cc | 25 bool OpensslCryptoUtilImpl::GetRandomBytes(size_t num_bytes, argument 27 random_data->resize(num_bytes); 30 if (RAND_bytes(random_buffer, num_bytes) != 1) {
|
H A D | mock_openssl_crypto_util.cc | 31 bool MockOpensslCryptoUtil::FakeGetRandomBytes(size_t num_bytes, argument 33 random_data->assign(num_bytes, 'a');
|
H A D | mock_openssl_crypto_util.h | 34 bool FakeGetRandomBytes(size_t num_bytes, std::string* random_data);
|
H A D | openssl_crypto_util.h | 34 // least |num_bytes| of random data and returns true on success. 35 virtual bool GetRandomBytes(size_t num_bytes,
|
H A D | openssl_crypto_util_impl.h | 41 bool GetRandomBytes(size_t num_bytes,
|
H A D | tpm2_initializer_impl.h | 66 // Gets random bytes of length |num_bytes| and populates the string at 68 bool GetTpmRandomData(size_t num_bytes, std::string* random_data);
|
H A D | tpm2_initializer_impl.cc | 187 bool Tpm2InitializerImpl::GetTpmRandomData(size_t num_bytes, argument 190 num_bytes, nullptr /* No Authorization */, random_data);
|
/system/tpm/attestation/common/ |
H A D | mock_crypto_utility.cc | 26 bool FakeRandom(size_t num_bytes, std::string* output) { argument 27 *output = std::string(num_bytes, 'A');
|
H A D | crypto_utility.h | 31 // Generates |num_bytes| of |random_data|. Returns true on success. 32 virtual bool GetRandom(size_t num_bytes, std::string* random_data) const = 0;
|
H A D | crypto_utility_impl.h | 38 bool GetRandom(size_t num_bytes, std::string* random_data) const override;
|
H A D | crypto_utility_impl_test.cc | 79 size_t num_bytes = -1; local 81 EXPECT_FALSE(crypto_utility_->GetRandom(num_bytes, &buffer));
|
H A D | crypto_utility_impl.cc | 71 bool CryptoUtilityImpl::GetRandom(size_t num_bytes, argument 74 if (num_bytes > static_cast<size_t>(std::numeric_limits<int>::max())) { 77 random_data->resize(num_bytes); 79 return (RAND_bytes(buffer, num_bytes) == 1);
|
/system/core/fs_mgr/ |
H A D | fs_mgr_avb_ops.cpp | 44 size_t num_bytes, void* buffer, size_t* out_num_read) { 46 partition, offset, num_bytes, buffer, out_num_read); 136 size_t num_bytes, void* buffer, 174 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); 175 if (num_read < 0 || (size_t)num_read != num_bytes) { 176 PERROR << "Failed to read " << num_bytes << " bytes from " << path << " offset " << offset; 43 read_from_partition(AvbOps* ops, const char* partition, int64_t offset, size_t num_bytes, void* buffer, size_t* out_num_read) argument 135 ReadFromPartition(const char* partition, int64_t offset, size_t num_bytes, void* buffer, size_t* out_num_read) argument
|
H A D | fs_mgr_priv_avb_ops.h | 56 AvbIOResult ReadFromPartition(const char* partition, int64_t offset, size_t num_bytes,
|
/system/nfc/src/nfc/tags/ |
H A D | rw_main.c | 72 void rw_main_update_tx_stats(uint32_t num_bytes, bool is_retry) { argument 73 rw_cb.stats.bytes_sent += num_bytes; 121 void rw_main_update_rx_stats(uint32_t num_bytes) { argument 122 rw_cb.stats.bytes_received += num_bytes;
|
H A D | rw_t2t_ndef.c | 282 tlv_data.num_bytes = p_t2t->num_lockbytes; 284 tlv_data.num_bytes = 0; 286 tlv_data.num_bytes += p_t2t->mem_tlv[p_t2t->num_mem_tlvs].num_bytes; 648 p_t2t->mem_tlv[p_t2t->num_mem_tlvs].num_bytes = 1369 tag_size += p_t2t->mem_tlv[xx].num_bytes; 1918 uint8_t num_bytes; local 1954 num_bytes = 0; 1955 while (num_bytes < p_t2t->mem_tlv[count].num_bytes) { [all...] |
/system/core/libunwindstack/ |
H A D | DwarfMemory.cpp | 29 bool DwarfMemory::ReadBytes(void* dst, size_t num_bytes) { argument 30 if (!memory_->Read(cur_offset_, dst, num_bytes)) { 33 cur_offset_ += num_bytes;
|
/system/core/libunwindstack/include/unwindstack/ |
H A D | DwarfMemory.h | 32 bool ReadBytes(void* dst, size_t num_bytes);
|
/system/update_engine/scripts/update_payload/ |
H A D | applier.py | 169 num_bytes = ex.num_blocks * block_size 170 if data_length < num_bytes: 174 pad_len = num_bytes - data_length 176 num_bytes = data_length 178 arg += '%s%d:%d' % (arg and ',', start_byte, num_bytes) 179 data_length -= num_bytes
|
/system/nfc/src/adaptation/ |
H A D | libmain.c | 46 extern void* nfa_mem_co_alloc(uint32_t num_bytes) { return malloc(num_bytes); } argument
|
/system/tpm/trunks/ |
H A D | tpm_utility.h | 84 // This method returns |num_bytes| of random data generated by the tpm. 86 virtual TPM_RC GenerateRandom(size_t num_bytes, 250 // by |index| of size |num_bytes|. This command needs owner authorization. 256 size_t num_bytes, 287 // This method reads |num_bytes| of data from the |offset| located at the 293 size_t num_bytes,
|
H A D | tpm_utility_impl.h | 53 TPM_RC GenerateRandom(size_t num_bytes, 124 size_t num_bytes, 144 size_t num_bytes,
|
H A D | trunks_factory_for_test.cc | 145 TPM_RC GenerateRandom(size_t num_bytes, 148 return target_->GenerateRandom(num_bytes, delegate, random_data); 282 size_t num_bytes, 287 return target_->DefineNVSpace(index, num_bytes, attributes, 317 size_t num_bytes, 321 return target_->ReadNVSpace(index, offset, num_bytes,
|
/system/extras/boot_control_copy/ |
H A D | boot_control_copy.c | 98 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) argument 103 remaining = num_bytes;
|