/trusty/kernel/lib/ubsan/ |
D | ubsan.c | 190 static void handle_overflow(struct overflow_data* data, in handle_overflow() argument 203 const struct type_descriptor* type = data->type; in handle_overflow() 214 log(&data->loc, overflow_kind, details); in handle_overflow() 219 struct overflow_data* data, in UBSAN_HANDLER() argument 222 handle_overflow(data, lhs, rhs, "+"); in UBSAN_HANDLER() 226 struct overflow_data* data, in UBSAN_HANDLER() argument 229 handle_overflow(data, lhs, rhs, "-"); in UBSAN_HANDLER() 233 struct overflow_data* data, in UBSAN_HANDLER() argument 236 handle_overflow(data, lhs, rhs, "*"); in UBSAN_HANDLER() 240 struct overflow_data* data, in UBSAN_HANDLER() argument [all …]
|
D | ubsan.h | 172 struct type_mismatch_data* data, 176 struct alignment_assumption_data* data, 182 struct overflow_data* data, 186 struct overflow_data* data, 190 struct overflow_data* data, 193 UBSAN_HANDLER(negate_overflow, struct overflow_data* data, value_handle_t val); 195 struct overflow_data* data, 200 struct shift_out_of_bounds_data* data, 205 struct out_of_bounds_data* data, 208 UBSAN_HANDLER(builtin_unreachable, struct unreachable_data* data); [all …]
|
/trusty/user/app/storage/ |
D | block_cache.h | 37 const void* data, 78 void* block_dirty(struct transaction* tr, const void* data, bool is_tmp); 82 void block_discard_dirty(const void* data); 87 void* data, 92 void block_put_dirty_no_mac(void* data, 96 void block_put_dirty_discard(void* data, struct obj_ref* data_ref); 120 const void* data, 125 const void* data, 130 void block_put(const void* data, struct obj_ref* ref); 136 data_block_t data_to_block_num(const void* data); /* test api, remove ? */
|
D | block_tree.h | 77 struct block_mac data; member 90 BLOCK_MAC_INITIAL_VALUE(block_tree.inserting.data)}, \ 122 struct block_mac data; member 146 return block_mac_to_block(path->tr, &path->data); in block_tree_path_get_data() 151 return path->data; in block_tree_path_get_data_block_mac() 157 void* data, 163 data_block_t data); 168 struct block_mac data); 187 data_block_t data);
|
D | block_map.c | 144 void* data, in block_map_put_dirty() argument 153 block_put_dirty_discard(data, data_ref); in block_map_put_dirty() 163 block_tree_path_put_dirty(tr, &path, path.count, data, data_ref); in block_map_put_dirty() 179 data_block_t data; in block_map_truncate() local 195 data = block_tree_path_get_data(&path); in block_map_truncate() 196 if (!data) { in block_map_truncate() 202 assert(data); in block_map_truncate() 203 block_tree_remove(tr, &block_map->tree, key, data); in block_map_truncate() 208 block_discard_dirty_by_block(tr->fs->dev, data); in block_map_truncate() 209 block_free(tr, data); in block_map_truncate() [all …]
|
D | block_cache.c | 209 const void* data, in block_cache_complete_read() argument 215 assert(data_size <= sizeof(entry->data)); in block_cache_complete_read() 238 memcpy(entry->data, data, data_size); in block_cache_complete_read() 241 ret = calculate_mac(entry->key, &entry->mac, entry->data, in block_cache_complete_read() 349 decrypt_data = entry->data; in block_cache_entry_decrypt() 352 iv = (void*)entry->data; in block_cache_entry_decrypt() 397 encrypt_data = entry->data; in block_cache_entry_encrypt() 400 iv = (void*)entry->data; in block_cache_entry_encrypt() 421 ret = calculate_mac(entry->key, &entry->mac, entry->data, in block_cache_entry_encrypt() 449 assert(entry->block_size <= sizeof(entry->data)); in block_cache_entry_clean() [all …]
|
D | block_mac.c | 46 memcpy(&block, block_mac->data, block_mac_block_size(fs)); in block_mac_to_block_fs() 59 return block_mac->data + block_mac_block_size(tr->fs); in block_mac_to_mac() 65 memcpy(block_mac->data, &block, block_mac_block_size(tr->fs)); in block_mac_set_block() 71 memcpy(block_mac->data + block_mac_block_size(tr->fs), mac, in block_mac_set_mac()
|
/trusty/user/app/sample/hwcryptohal/server/ |
D | platform_functions.rs | 34 fn add_entropy(&mut self, data: &[u8]) { in add_entropy() 35 trusty_rng_add_entropy(data); in add_entropy() 44 pub fn trusty_rng_add_entropy(data: &[u8]) { in trusty_rng_add_entropy() 46 let rc = unsafe { ffi_bindings::sys::trusty_rng_add_entropy(data.as_ptr(), data.len()) }; in trusty_rng_add_entropy()
|
/trusty/user/base/lib/apploader_package/ |
D | cose.cpp | 84 const std::vector<uint8_t>& data) { in coseBuildToBeSigned() argument 92 enc.encodeBstr(data); in coseBuildToBeSigned() 101 if (RAND_bytes(output.data(), numBytes) != 1) { in getRandom() 116 for (auto data : data_list) { in sha() local 117 SHA384_Update(&ctx, std::get<0>(data), std::get<1>(data)); in sha() 120 SHA384_Final((unsigned char*)ret.data(), &ctx); in sha() 132 for (auto data : data_list) { in sha() local 133 SHA256_Update(&ctx, std::get<0>(data), std::get<1>(data)); in sha() 136 SHA256_Final((unsigned char*)ret.data(), &ctx); in sha() 142 static SHADigest sha(const std::vector<uint8_t>& data) { in sha() argument [all …]
|
/trusty/user/base/lib/rng/include/lib/rng/ |
D | trusty_rng.h | 27 int trusty_rng_secure_rand(uint8_t* data, size_t len); 28 int trusty_rng_add_entropy(const uint8_t* data, size_t len); 29 int trusty_rng_hw_rand(uint8_t* data, size_t len);
|
/trusty/user/base/tools/ |
D | test_manifest_compiler.py | 27 data = manifest_compiler.get_string(config_data, "data", constants, log) 30 self.assertIsNone(data) 38 data = manifest_compiler.get_string(config_data, "data", constants, log) 41 self.assertEqual(data, uuid) 48 data = manifest_compiler.get_string(config_data, "data", constants, log) 51 self.assertEqual(data, "") 58 data = manifest_compiler.get_string(config_data, "data", constants, log) 61 self.assertIsNone(data) 68 data = manifest_compiler.get_string(config_data, "data", constants, log, 71 self.assertEqual(data, "") [all …]
|
/trusty/user/base/lib/hwbcc/test/ |
D | main.cpp | 71 test_data.data(), test_data.size(), test_aad, in TEST_F() 101 dk_pub_key = keys[0].data(); in TEST_F() 102 km_pub_key = keys[1].data(); in TEST_F() 123 true, HWBCC_ALGORITHM_ED25519, test_data.data(), test_data.size(), in TEST() 138 true, HWBCC_ALGORITHM_ED25519, test_data.data(), test_data.size(), in TEST() 149 ASSERT_NE(memcmp(keys1[0].data(), keys2[0].data(), ED25519_PUBLIC_KEY_LEN), in TEST() 151 ASSERT_NE(memcmp(keys1[1].data(), keys2[1].data(), ED25519_PUBLIC_KEY_LEN), in TEST() 191 false, HWBCC_ALGORITHM_ED25519, test_data.data(), test_data.size(), in TEST() 202 dk_pub_key = keys[0].data(); in TEST() 203 km_pub_key = keys[1].data(); in TEST() [all …]
|
/trusty/user/base/lib/rng/ |
D | trusty_rng.c | 47 int trusty_rng_secure_rand(uint8_t* data, size_t len) { in trusty_rng_secure_rand() argument 48 if (!data || !len) in trusty_rng_secure_rand() 51 int ssl_err = RAND_bytes(data, len); in trusty_rng_secure_rand() 63 int trusty_rng_add_entropy(const uint8_t* data, size_t len) { in trusty_rng_add_entropy() argument 70 __WEAK int trusty_rng_hw_rand(uint8_t* data, size_t len) { in trusty_rng_hw_rand() argument 84 .iov_base = data, in trusty_rng_hw_rand()
|
/trusty/user/app/sample/storage-test/ |
D | storage-test.c | 33 uint8_t data[1024]; in write_file() local 35 if (size > sizeof(data)) { in write_file() 36 size = sizeof(data); in write_file() 57 memset(data, 0, size); in write_file() 58 rc = storage_write(handle, 0, data, size, STORAGE_OP_COMPLETE); in write_file()
|
/trusty/user/app/storage/test/storage-benchmark/ |
D | main.c | 41 uint8_t* data; member 84 storage_state.data = malloc(sz * sizeof(uint8_t)); in BENCH_SETUP() 85 trusty_rng_secure_rand(storage_state.data, sz); in BENCH_SETUP() 96 free(storage_state.data); in BENCH_TEARDOWN() 97 storage_state.data = NULL; in BENCH_TEARDOWN() 112 storage_write(handle, 0, storage_state.data,
|
/trusty/user/app/keymaster/ |
D | openssl_keymaster_enforcement.cpp | 116 if (!HMAC_Update(ctx.get(), chunk.data, chunk.data_length)) { in hmacSha256() 140 inline keymaster_blob_t toBlob(const std::vector<uint8_t>& data) { in toBlob() argument 141 return {data.data(), data.size()}; in toBlob() 149 if (!(a.data && b.data)) in operator ==() 150 return a.data == b.data; in operator ==() 152 !memcmp(a.data, b.data, a.data_length)); in operator ==() 201 keymaster_blob_t data = { in ComputeSharedHmac() local 204 keymaster_blob_t data_chunks[] = {data}; in ComputeSharedHmac()
|
D | trusty_remote_provisioning_context.cpp | 66 hw_backed_key.data(), kMacKeyLength); in DeriveBytesFromHbk() 79 HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk() 81 hw_backed_key.data(), hw_backed_key.size(), // in DeriveBytesFromHbk() 83 reinterpret_cast<const uint8_t*>(context.data()), context.size()); in DeriveBytesFromHbk() 174 testMode, EDDSA, macKey.data(), macKey.size(), aad.data(), in BuildProtectedDataPayload() 175 aad.size(), signedOutput.data(), signedOutput.size(), in BuildProtectedDataPayload() 176 &actualSignedMacKeySize, bcc.data(), bcc.size(), &actualBccSize); in BuildProtectedDataPayload() 233 false /* test_mode */, EDDSA, signedDataPayload.data(), in BuildCsr() 234 signedDataPayload.size(), NULL, 0, signedData.data(), in BuildCsr() 235 signedData.size(), &actualSignedDataSize, bcc.data(), bcc.size(), in BuildCsr()
|
/trusty/user/base/lib/storage/rust/src/ |
D | test.rs | 40 let data = &mut [0; 32]; in read_write() localVariable 41 let data = session.read(file_name, data).unwrap(); in read_write() localVariable 44 assert_eq!(data.len(), file_contents.len(), "Incorrect number of bytes read"); in read_write() 45 assert_eq!(data, file_contents.as_bytes(), "Incorrect file contents returned"); in read_write() 62 let data = &mut [0; 5]; in read_all_buf_too_small() localVariable 63 let result = session.read(file_name, data); in read_all_buf_too_small() 83 let data = &mut [0; 5]; in read_at() localVariable 84 let result = session.read_at(&mut file, 3, data); in read_at() 91 data.fill(0); in read_at() 92 let result = session.read_at(&mut file, 10, data); in read_at() [all …]
|
/trusty/host/common/scripts/metrics_atoms_protoc_plugin/ |
D | metrics_atoms_protoc_debug.py | 32 data = f_data.read() 34 metrics_atoms_protoc_plugin.process_data(data, pkg)
|
/trusty/user/base/app/acvp/ |
D | keymaster_ckdf.cpp | 58 memcpy(&out_len, out_len_bytes.data(), sizeof(out_len)); in KeymasterCKDF() 65 memcpy(&counter_len, counter_len_bits.data(), sizeof(counter_len)); in KeymasterCKDF() 71 keymaster::KeymasterKeyBlob key(key_input.data(), key_input.size()); in KeymasterCKDF() 101 memcpy(fixed_data.get(), label.data, label.data_length); in KeymasterCKDF() 103 memcpy(&fixed_data[label.data_length + 1], context.data, in KeymasterCKDF()
|
/trusty/user/app/keymint/ |
D | rng.rs | 25 fn add_entropy(&mut self, data: &[u8]) { in add_entropy() 26 trusty_rng_add_entropy(data); in add_entropy()
|
/trusty/user/base/lib/apploader_package/include/apploader/ |
D | cbor.h | 125 CborInInit(encMap.data(), encMap.size(), &in); in populateMap() 148 CborOutInit(encKey.data(), encKey.size(), &out); in populateMap() 194 CborOutInit(output.data(), output.size(), &out); in mergeMaps() 198 std::memcpy(output.data() + out.cursor, key.data(), key.size()); in mergeMaps() 202 std::memcpy(output.data() + out.cursor, value.data(), value.size()); in mergeMaps() 246 uint8_t* data() const { return mArr.get(); } in data() function 394 encodeBstr(reinterpret_cast<const uint8_t*>(str.data()), in encodeBstr() 399 encodeBstr(vec.data(), vec.size()); in encodeBstr() 403 encodeBstr(view.data(), view.size()); in encodeBstr() 433 return copyBytes(view.data(), view.size()); in copyBytes() [all …]
|
/trusty/user/app/sample/memref-test/lender/ |
D | lender.c | 146 const char* data) { in lender_write_bss() argument 151 memcpy(&bss_page[region->offset], data, region->size); in lender_write_bss() 162 char data[MAX_WRITE]; in lender_on_message() local 164 int rc = tipc_recv2(chan, sizeof(msg), &msg, sizeof(msg), data, in lender_on_message() 165 sizeof(data)); in lender_on_message() 192 rc = lender_write_bss(chan, &msg.region, data); in lender_on_message()
|
/trusty/user/base/app/crash-test/crasher/data-funcs/ |
D | rules.mk | 32 $(CLANG_BINDIR)/llvm-objcopy --set-section-flags=.data=alloc,data \
|
/trusty/user/base/experimental/lib/tidl/include/lib/tidl/ |
D | tidl.h | 141 Payload(uint8_t* data, uint32_t size) : mData(data), mSize(size) {} in Payload() argument 156 const uint8_t* data() const { return mData; } in data() function 158 uint8_t* data() { return mData; } in data() function 180 FixedPayload(uint8_t* data) { memcpy(mData, data, S); } in FixedPayload() argument 183 memcpy(mData, payload.data(), S); in FixedPayload() 187 memcpy(mData, payload.data(), S); 196 const uint8_t* data() const { return mData; } in data() function 198 uint8_t* data() { return mData; } in data() function
|