Home
last modified time | relevance | path

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

/trusty/user/app/storage/
Darray.h21 #define array_copy(dest, src, count) \ argument
23 STATIC_ASSERT(sizeof((dest)[0]) == sizeof((src)[0])); \
24 memcpy((dest), (src), sizeof((dest)[0]) * (count)); \
27 #define array_shift(array, dest, src) \ argument
30 assert(dest <= countof((array))); \
31 memmove((array) + (dest), (array) + (src), \
32 sizeof((array)[0]) * (countof((array)) - MAX((src), (dest)))); \
57 #define array_shift_down(array, dest, src) \ argument
59 assert(src > dest); \
61 array_shift((array), (dest), (src)); \
[all …]
Dblock_mac.h45 void block_mac_clear(const struct transaction* tr, struct block_mac* dest);
62 struct block_mac* dest,
82 struct block_mac* dest, in block_mac_copy_mac() argument
84 assert(block_mac_same_block(tr, dest, src)); in block_mac_copy_mac()
85 block_mac_set_mac(tr, dest, (const struct mac*)block_mac_to_mac(tr, src)); in block_mac_copy_mac()
Dblock_mac.c38 void block_mac_clear(const struct transaction* tr, struct block_mac* dest) { in block_mac_clear() argument
39 memset(dest, 0, block_mac_block_size(tr->fs) + block_mac_mac_size(tr->fs)); in block_mac_clear()
83 struct block_mac* dest, in block_mac_copy() argument
85 memcpy(dest, src, in block_mac_copy()
Dblock_set.h118 struct block_set* dest,
122 struct block_set* dest,
126 struct block_set* dest,
Dblock_set.c657 struct block_set* dest, in block_set_copy() argument
662 block_set_init(tr->fs, dest); in block_set_copy()
663 dest->block_tree.copy_on_write = true; in block_set_copy()
664 dest->block_tree.allow_copy_on_write = true; in block_set_copy()
665 dest->block_tree.root = src->block_tree.root; in block_set_copy()
666 if (!block_mac_valid(tr, &dest->block_tree.root)) { in block_set_copy()
669 block_set_add_range(tr, dest, src->initial_range); in block_set_copy()
682 struct block_set* dest, in block_set_copy_ro_fs() argument
684 block_set_init(fs, dest); in block_set_copy_ro_fs()
685 dest->block_tree.root = src->block_tree.root; in block_set_copy_ro_fs()
[all …]
Dfile.c1263 struct block_mac* dest = &file->to_commit_block_mac; in file_restore_to_commit() local
1264 if (block_mac_same_block(tr, src, dest)) { in file_restore_to_commit()
1265 assert(block_mac_eq(tr, src, dest)); in file_restore_to_commit()
1274 block_mac_copy(tr, dest, src); in file_restore_to_commit()
1290 struct block_mac* dest = &file->committed_block_mac; in file_apply_to_commit() local
1296 if (block_mac_same_block(tr, src, dest)) { in file_apply_to_commit()
1297 assert(block_mac_eq(tr, src, dest)); in file_apply_to_commit()
1311 assert(block_mac_same_block(tr, dest, &file->block_mac)); in file_apply_to_commit()
1321 block_mac_copy(tr, dest, src); in file_apply_to_commit()
Dblock_tree.c228 void* dest; in block_tree_node_shift() local
265 dest = i == 0 ? overflow_key : overflow_data; in block_tree_node_shift()
266 if (dest) { in block_tree_node_shift()
271 max_count, dest, size, is_zero(src, size)); in block_tree_node_shift()
278 memcpy(dest, src, size); in block_tree_node_shift()
287 dest = base + dest_index * entry_size; in block_tree_node_shift()
292 __func__, src, src_index, dest, dest_index, size, in block_tree_node_shift()
300 memmove(dest, src, size); in block_tree_node_shift()
313 dest = base + src_index * entry_size; in block_tree_node_shift()
322 __func__, src, dest, src_index, size, in block_tree_node_shift()
[all …]
/trusty/vendor/google/aosp/ide/vscode/
Dinstall.sh78 local dest="$VSCODE_FOLDER/$file"
80 if files_equal "$source" "$dest"; then
85 if [ -f "$dest" ]; then
87 mv "$dest" "$dest.old"
91 cp "$source" "$dest"
/trusty/user/app/sample/hwcrypto-unittest/
Dmain.c114 uint8_t dest[sizeof(src_data)]; in TEST_F() local
120 long rc = hwkey_derive(invalid, &kdf_version, src_data, dest, size); in TEST_F()
127 uint8_t dest[sizeof(src_data)]; in TEST_F() local
137 rc = hwkey_derive(session, &kdf_version, src_data, dest, size); in TEST_F()
143 uint8_t dest[32]; in TEST_F() local
144 uint8_t dest2[sizeof(dest)]; in TEST_F()
145 static const size_t size = sizeof(dest); in TEST_F()
155 memset(dest, 0, size); in TEST_F()
159 long rc = hwkey_derive(_state->hwkey_session, &kdf_version, src_data, dest, in TEST_F()
171 rc = memcmp(dest, dest2, size); in TEST_F()
[all …]
/trusty/user/app/keymint/
Drng.rs28 fn fill_bytes(&mut self, dest: &mut [u8]) { in fill_bytes()
29 openssl::rand::rand_bytes(dest).unwrap(); // safe: BoringSSL's RAND_bytes() never fails in fill_bytes()
/trusty/user/app/storage/test/storage_host_test/
Dlibrary_shims.c42 uint8_t* dest, in hwkey_derive() argument
44 memset(dest, 0, buf_size); in hwkey_derive()
/trusty/user/app/sample/hwcryptohal/server/
Dplatform_functions.rs37 fn fill_bytes(&mut self, dest: &mut [u8]) { in fill_bytes()
38 openssl::rand::rand_bytes(dest) in fill_bytes()
/trusty/kernel/lib/syscall/stubgen/
Dstubgen.py348 dest="verify", default=False,
351 dest="std_file", default=None,
354 dest="stub_file", default=None,
357 dest="rust_file", default=None,
360 dest="arch", default="arm",
/trusty/vendor/google/aosp/scripts/
Dbuild.py86 def copy_file(src, dest, optional=False): argument
99 print("Copy:", repr(src), "->", repr(dest))
100 shutil.copy(src, dest)
103 def archive_build_file(args, project, src, dest=None, optional=False): argument
117 if not dest:
118 dest = src
127 dest = os.path.join(args.archive, project + "." + dest)
128 copy_file(src, dest, optional=optional)
152 def archive_dir(zip_archive, src, dest, omit=()): argument
175 dest, os.path.relpath(dir_path, start=src)
[all …]
Dtrusty_build_config.py82 def __init__(self, src, dest, optional): argument
84 self.dest = dest
304 def archive(src, dest=None, optional=False): argument
305 return TrustyArchiveBuildFile(src, dest, optional)
649 dest="filter", const=("have_tests", True),
652 dest="filter", const=("have_tests", False),
657 dest="filter", const=("build", None),
660 dest="filter", const=("build", False),
/trusty/user/base/lib/hwkey/include/lib/hwkey/
Dhwkey.h83 uint8_t* dest,
/trusty/user/app/storage/rpmb_dev/
Dmain.c36 ssize_t recv_until(int sock, void* dest, size_t len) { in recv_until() argument
39 ssize_t ret = recv(sock, dest, len - bytes_recvd, 0); in recv_until()
43 dest += ret; in recv_until()
/trusty/user/base/lib/hwkey/
Dhwkey.c192 uint8_t* dest, in hwkey_derive() argument
194 if (src == NULL || buf_size == 0 || dest == NULL || kdf_version == NULL) { in hwkey_derive()
206 long rc = send_req(session, &msg, (uint8_t*)src, buf_size, dest, &buf_size); in hwkey_derive()
/trusty/kernel/lib/app_manifest/
Dapp_manifest.c69 void* dest, in app_manifest_read_ptr() argument
73 memcpy(dest, src, size); in app_manifest_read_ptr()
/trusty/user/base/tools/
Dmanifest_compiler.py1344 dest="input_filenames",
1355 dest="output_filename",
1362 dest="constants",
1369 dest="header_dir",
1376 dest="shadow_call_stack",
1385 dest="default_shadow_call_stack_size",
/trusty/user/base/lib/apploader_package/include/apploader/
Dcbor.h652 size_t dest; in copyBytes() local
653 if (__builtin_add_overflow((size_t)mOut.buffer, mOut.cursor, &dest)) { in copyBytes()
666 std::memcpy((void*)dest, src, srcsz); in copyBytes()