/system/iot/attestation/atap/libatap/ |
H A D | atap_ops.h | 41 AtapResult (*read_product_id)(AtapOps* ops, 47 AtapResult (*get_auth_key_type)(AtapOps* ops, AtapKeyType* key_type); 55 AtapResult (*read_auth_key_cert_chain)(AtapOps* ops, 63 AtapResult (*write_attestation_key)(AtapOps* ops, 75 AtapResult (*read_attestation_public_key)(AtapOps* ops, 85 AtapResult (*read_soc_global_key)(AtapOps* ops, 92 AtapResult (*write_hex_uuid)(AtapOps* ops, 99 AtapResult (*get_random_bytes)(AtapOps* ops, uint8_t* buf, uint32_t buf_size); 106 AtapResult (*auth_key_sign)(AtapOps* ops, 120 AtapOps* ops, [all...] |
H A D | atap_commands.c | 26 AtapOps* ops, 38 ret = derive_session_key(ops, 48 return ops->auth_key_sign( 49 ops, nonce, ATAP_NONCE_LEN, *signature, signature_len); 53 AtapOps* ops, AtapInnerCaRequest* inner_ca_request) { 68 ret = ops->read_attestation_public_key( 69 ops, 76 ret = ops->read_attestation_public_key( 77 ops, 84 ret = ops 25 auth_key_signature_generate( AtapOps* ops, uint8_t device_pubkey[ATAP_ECDH_KEY_LEN], uint8_t ca_pubkey[ATAP_ECDH_KEY_LEN], uint8_t** signature, uint32_t* signature_len) argument 52 read_available_public_keys( AtapOps* ops, AtapInnerCaRequest* inner_ca_request) argument 99 initialize_session(AtapOps* ops, const uint8_t* operation_start, uint32_t operation_start_size, AtapKeyType* auth_key_type, uint8_t ca_pubkey[ATAP_ECDH_KEY_LEN], AtapCaRequest* ca_request, AtapInnerCaRequest* inner_ca_request) argument 158 compute_auth_signature( AtapOps* ops, uint8_t ca_pubkey[ATAP_ECDH_KEY_LEN], uint8_t device_pubkey[ATAP_ECDH_KEY_LEN], AtapInnerCaRequest* inner_ca_request) argument 178 read_product_id_hash(AtapOps* ops, AtapInnerCaRequest* inner_ca_request) argument 191 encrypt_inner_ca_request( AtapOps* ops, const AtapInnerCaRequest* inner_ca_request, AtapCaRequest* ca_request) argument 229 decrypt_encrypted_message(AtapOps* ops, const uint8_t* buf, uint32_t buf_size, uint8_t* key, uint8_t** plaintext, uint32_t* plaintext_len) argument 260 write_attestation_data(AtapOps* ops, uint8_t** buf_ptr, AtapKeyType key_type) argument 298 write_inner_ca_response(AtapOps* ops, uint8_t* inner_ca_resp_ptr, uint32_t inner_ca_resp_len) argument 338 atap_get_ca_request(AtapOps* ops, const uint8_t* operation_start, uint32_t operation_start_size, uint8_t** ca_request_p, uint32_t* ca_request_size_p) argument 407 atap_set_ca_response(AtapOps* ops, const uint8_t* ca_response, uint32_t ca_response_size) argument [all...] |
H A D | libatap.h | 40 AtapResult atap_get_ca_request(AtapOps* ops, 51 AtapResult atap_set_ca_response(AtapOps* ops,
|
H A D | atap_util.c | 331 AtapOps* ops, 343 return ops->hkdf_sha256(ops, 330 derive_session_key( AtapOps* ops, const uint8_t device_pubkey[ATAP_ECDH_KEY_LEN], const uint8_t ca_pubkey[ATAP_ECDH_KEY_LEN], const uint8_t shared_secret[ATAP_ECDH_SHARED_SECRET_LEN], const char* info, uint8_t* okm, uint32_t okm_len) argument
|
H A D | atap_util.h | 200 AtapOps* ops,
|
/system/iot/attestation/atap/ops/ |
H A D | atap_ops_provider.cpp | 31 AtapResult forward_read_product_id(AtapOps* ops, argument 33 return AtapOpsProvider::GetInstanceFromAtapOps(ops) 38 AtapResult forward_get_auth_key_type(AtapOps* ops, AtapKeyType* key_type) { argument 39 return AtapOpsProvider::GetInstanceFromAtapOps(ops) 44 AtapResult forward_read_auth_key_cert_chain(AtapOps* ops, argument 46 return AtapOpsProvider::GetInstanceFromAtapOps(ops) 51 AtapResult forward_write_attestation_key(AtapOps* ops, argument 55 return AtapOpsProvider::GetInstanceFromAtapOps(ops) 60 AtapResult forward_read_attestation_public_key(AtapOps* ops, argument 64 return AtapOpsProvider::GetInstanceFromAtapOps(ops) 69 forward_read_soc_global_key( AtapOps* ops, uint8_t global_key[ATAP_AES_128_KEY_LEN]) argument 76 forward_write_hex_uuid(AtapOps* ops, const uint8_t uuid[ATAP_HEX_UUID_LEN]) argument 83 forward_get_random_bytes(AtapOps* ops, uint8_t* buf, uint32_t buf_size) argument 91 forward_auth_key_sign(AtapOps* ops, const uint8_t* nonce, uint32_t nonce_len, uint8_t sig[ATAP_SIGNATURE_LEN_MAX], uint32_t* sig_len) argument 101 forward_ecdh_shared_secret_compute( AtapOps* ops, AtapCurveType curve, const uint8_t other_public_key[ATAP_ECDH_KEY_LEN], uint8_t public_key[ATAP_ECDH_KEY_LEN], uint8_t shared_secret[ATAP_ECDH_SHARED_SECRET_LEN]) argument 113 forward_aes_gcm_128_encrypt(AtapOps* ops, const uint8_t* plaintext, uint32_t len, const uint8_t iv[ATAP_GCM_IV_LEN], const uint8_t key[ATAP_AES_128_KEY_LEN], uint8_t* ciphertext, uint8_t tag[ATAP_GCM_TAG_LEN]) argument 125 forward_aes_gcm_128_decrypt(AtapOps* ops, const uint8_t* ciphertext, uint32_t len, const uint8_t iv[ATAP_GCM_IV_LEN], const uint8_t key[ATAP_AES_128_KEY_LEN], const uint8_t tag[ATAP_GCM_TAG_LEN], uint8_t* plaintext) argument 137 forward_sha256(AtapOps* ops, const uint8_t* plaintext, uint32_t plaintext_len, uint8_t hash[ATAP_SHA256_DIGEST_LEN]) argument 145 forward_hkdf_sha256(AtapOps* ops, const uint8_t* salt, uint32_t salt_len, const uint8_t* ikm, uint32_t ikm_len, const uint8_t* info, uint32_t info_len, uint8_t* okm, uint32_t okm_len) argument [all...] |
H A D | atap_ops_provider.h | 32 // An implementation of ops callbacks that forwards to a given delegate. All 42 static AtapOpsProvider* GetInstanceFromAtapOps(AtapOps* ops) { argument 43 return reinterpret_cast<AtapOpsProvider*>(ops->user_data);
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | dd.h | 63 #define ddop_open(dir, a1, a2, ...) dir.ops->op_open(a1, a2, __VA_ARGS__) 64 #define ddop_close(dir, a1) dir.ops->op_close(a1) 65 #define ddop_fcntl(dir, a1, a2, ...) dir.ops->op_fcntl(a1, a2, __VA_ARGS__) 66 #define ddop_ioctl(dir, a1, a2, ...) dir.ops->op_ioctl(a1, a2, __VA_ARGS__) 67 #define ddop_fsync(dir, a1) dir.ops->op_fsync(a1) 68 #define ddop_ftruncate(dir, a1, a2) dir.ops->op_ftruncate(a1, a2) 69 #define ddop_lseek(dir, a1, a2, a3) dir.ops->op_lseek(a1, a2, a3) 70 #define ddop_read(dir, a1, a2, a3) dir.ops->op_read(a1, a2, a3) 71 #define ddop_write(dir, a1, a2, a3) dir.ops->op_write(a1, a2, a3) 90 struct ddfops const *ops; /* op member in struct:__anon1853 [all...] |
H A D | dd.c | 92 * Ops for stdin/stdout and crunch'd dd. These are always host ops. 160 in.ops = &ddfops_stdfd; 162 in.ops = prog_ops; 183 out.ops = &ddfops_stdfd; 185 out.ops = prog_ops; 289 if (io->ops->op_fstat(io->fd, &sb)) { 294 io->flags |= io->ops->op_ioctl(io->fd, MTIOCGET, &mt) 296 else if (io->ops->op_lseek(io->fd, (off_t)0, SEEK_CUR) == -1 322 newfd = io->ops->op_fcntl(fd, F_DUPFD, 3); 328 io->ops [all...] |
/system/core/adb/ |
H A D | set_verity_enable_state_service.cpp | 106 static bool set_avb_verity_enabled_state(int fd, AvbOps* ops, bool enable_verity) { argument 115 if (!avb_user_verity_get(ops, ab_suffix.c_str(), &verity_enabled)) { 125 if (!avb_user_verity_set(ops, ab_suffix.c_str(), enable_verity)) { 169 AvbOps* ops = avb_ops_user_new(); local 170 if (ops == nullptr) { 171 WriteFdFmt(fd, "Error getting AVB ops\n"); 174 if (set_avb_verity_enabled_state(fd, ops, enable)) { 177 avb_ops_user_free(ops);
|
/system/core/fs_mgr/ |
H A D | fs_mgr_priv_avb_ops.h | 52 static FsManagerAvbOps* GetInstanceFromAvbOps(AvbOps* ops) { argument 53 return reinterpret_cast<FsManagerAvbOps*>(ops->user_data);
|
H A D | fs_mgr_avb_ops.cpp | 43 static AvbIOResult read_from_partition(AvbOps* ops, const char* partition, int64_t offset, argument 45 return FsManagerAvbOps::GetInstanceFromAvbOps(ops)->ReadFromPartition( 49 static AvbIOResult dummy_read_rollback_index(AvbOps* ops ATTRIBUTE_UNUSED, 59 AvbOps* ops ATTRIBUTE_UNUSED, const uint8_t* public_key_data ATTRIBUTE_UNUSED, 72 static AvbIOResult dummy_read_is_device_unlocked(AvbOps* ops ATTRIBUTE_UNUSED, 81 static AvbIOResult dummy_get_unique_guid_for_partition(AvbOps* ops ATTRIBUTE_UNUSED, 92 static AvbIOResult dummy_get_size_of_partition(AvbOps* ops ATTRIBUTE_UNUSED,
|
/system/iot/attestation/atap/ |
H A D | Android.mk | 67 ops/atap_ops_provider.cpp \ 68 ops/openssl_ops.cpp \
|
/system/core/libsparse/ |
H A D | output_file.c | 83 struct output_file_ops *ops; member in struct:output_file 363 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); 388 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); 392 ret = out->ops->write(out, &fill_val, sizeof(fill_val)); 424 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); 428 ret = out->ops->write(out, data, len); 432 ret = out->ops->write(out, out->zero_buf, zero_len); 460 ret = out->ops->write(out, &chunk_header, sizeof(chunk_header)); 464 out->ops->write(out, &out->crc32, 4); 488 ret = out->ops [all...] |
/system/bt/bta/sdp/ |
H A D | bta_sdp_act.cc | 196 record->ops.hdr.type = SDP_TYPE_OPP_SERVER; 197 record->ops.hdr.service_name_length = 0; 198 record->ops.hdr.service_name = NULL; 199 record->ops.hdr.rfcomm_channel_number = 0; 200 record->ops.hdr.l2cap_psm = -1; 201 record->ops.hdr.profile_version = 0; 202 record->ops.supported_formats_list_len = 0; 206 record->ops.hdr.service_name_length = 208 record->ops.hdr.service_name = (char*)p_attr->attr_value.v.array; 213 record->ops [all...] |
/system/core/libunwindstack/tests/ |
H A D | DwarfCfaLogTest.cpp | 76 // Skip gnu extension ops. 602 std::vector<uint8_t> ops{0x0f, 0x81, 0x01}; 606 ops.push_back(0x05); 616 this->memory_.SetMemory(0x200, ops); 640 std::vector<uint8_t> ops{0x10, 0xff, 0x01, 0x82, 0x01}; 644 ops.push_back(0xa0 + (i - 5) % 96); 646 op_string += android::base::StringPrintf("4 unwind Raw Data: 0x%02x\n", ops.back()); 647 expected += android::base::StringPrintf(" 0x%02x", ops.back()); 654 this->memory_.SetMemory(0x200, ops); 724 std::vector<uint8_t> ops{ [all...] |
H A D | DwarfCfaTest.cpp | 74 // Skip gnu extension ops. 731 std::vector<uint8_t> ops{0x0f, 0x81, 0x01}; 733 ops.push_back(i - 1); 735 this->memory_.SetMemory(0x200, ops); 764 std::vector<uint8_t> ops{0x10, 0xff, 0x01, 0x82, 0x01}; 766 ops.push_back(i - 4); 769 this->memory_.SetMemory(0x200, ops); 864 std::vector<uint8_t> ops{0x16, 0x83, 0x10, 0xa8, 0x01}; 866 ops.push_back(i); 869 this->memory_.SetMemory(0xa00, ops); [all...] |
/system/extras/tests/memtest/ |
H A D | fptest.cpp | 51 static void endTime(const char *str, double ops) argument 55 printf("Test: %s, %f Mops\n", str, ops / ds / 1e6); 66 // Do ~1 billion ops 101 // Do ~1 billion ops
|
/system/bt/include/hardware/ |
H A D | bt_sdp.h | 106 bluetooth_sdp_ops_record ops; member in union:__anon826
|
/system/update_engine/payload_generator/ |
H A D | delta_diff_utils.h | 134 void FilterNoopOperations(std::vector<AnnotatedOperation>* ops);
|
H A D | delta_diff_utils.cc | 213 // Merge each file processor's ops list to aops. 231 // The list of ops to reach the new file from the old file. 886 void FilterNoopOperations(vector<AnnotatedOperation>* ops) { argument 887 ops->erase( 889 ops->begin(), ops->end(), 891 ops->end());
|
H A D | delta_diff_utils_unittest.cc | 482 vector<AnnotatedOperation> ops = {noop, aop1, noop, noop, aop2, noop}; local 483 diff_utils::FilterNoopOperations(&ops); 484 EXPECT_EQ(2u, ops.size()); 485 EXPECT_EQ("aop1", ops[0].name); 486 EXPECT_EQ("aop2", ops[1].name);
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 1001 int set_camera_metadata_vendor_tag_ops(const vendor_tag_query_ops_t* ops) { argument 1003 (void) ops; 1009 int set_camera_metadata_vendor_ops(const vendor_tag_ops_t* ops) { argument 1010 vendor_tag_ops = ops;
|
/system/netd/server/ |
H A D | RouteController.cpp | 127 static const char *ops[4] = {"adding", "deleting", "getting", "???"}; local 128 return ops[action % 4];
|
/system/bt/btif/src/ |
H A D | btif_sdp_server.cc | 335 handle = add_opps_sdp(&record->ops);
|