/system/tpm/attestation/common/ |
H A D | print_interface_proto.cc | 71 std::string output = local 75 output += indent + " key_label: "; 76 base::StringAppendF(&output, "%s", value.key_label().c_str()); 77 output += "\n"; 80 output += indent + " key_type: "; 81 base::StringAppendF(&output, "%s", 84 output += "\n"; 87 output += indent + " key_usage: "; 88 base::StringAppendF(&output, "%s", 91 output 122 std::string output = local 153 std::string output = local 177 std::string output = local 242 std::string output = local 263 std::string output = local 299 std::string output = local 321 std::string output = local 379 std::string output = local 414 std::string output = local 443 std::string output = local 482 std::string output = local 525 std::string output = local 556 std::string output = local 584 std::string output = local 615 std::string output = local 644 std::string output = local 669 std::string output = local [all...] |
H A D | print_common_proto.cc | 89 std::string output = local 93 output += indent + " quote: "; 95 &output, "%s", 97 output += "\n"; 100 output += indent + " quoted_data: "; 101 base::StringAppendF(&output, "%s", 104 output += "\n"; 107 output += indent + " quoted_pcr_value: "; 109 &output, "%s", 112 output 132 std::string output = local 181 std::string output = local 210 std::string output = local [all...] |
H A D | crypto_utility_impl_test.cc | 49 std::vector<uint8_t> output; local 50 CHECK(base::HexStringToBytes(hex, &output)); 51 return std::string(reinterpret_cast<char*>(output.data()), output.size()); 110 std::string output; local 111 EXPECT_TRUE(crypto_utility_->EncryptData(std::string(), key, key, &output)); 116 std::string output; local 117 EXPECT_FALSE(crypto_utility_->EncryptData(std::string(), key, key, &output)); 121 std::string output; local 122 EXPECT_FALSE(crypto_utility_->UnsealKey("invalid", &output, 131 std::string output; local 137 std::string output; local 143 std::string output; local 149 std::string output; local 158 std::string output; local 164 std::string output; local 171 std::string output; local 183 EncryptedIdentityCredential output; local 193 EncryptedIdentityCredential output; local 205 std::string output; local 212 std::string output; local 222 std::string output; local 232 std::string output; local [all...] |
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');
|
/system/tpm/tpm_manager/common/ |
H A D | print_tpm_ownership_interface_proto.cc | 38 std::string output = local 41 output += indent + "}\n"; 42 return output; 52 std::string output = local 56 output += indent + " status: "; 58 &output, "%s", 60 output += "\n"; 63 output += indent + " enabled: "; 64 base::StringAppendF(&output, "%s", value.enabled() ? "true" : "false"); 65 output 113 std::string output = local 127 std::string output = local 149 std::string output = local 172 std::string output = local [all...] |
H A D | print_tpm_nvram_interface_proto.cc | 37 std::string output = local 41 output += indent + " index: "; 42 base::StringAppendF(&output, "%d", value.index()); 43 output += "\n"; 46 output += indent + " length: "; 47 base::StringAppendF(&output, "%d", value.length()); 48 output += "\n"; 50 output += indent + "}\n"; 51 return output; 61 std::string output local 82 std::string output = local 101 std::string output = local 122 std::string output = local 148 std::string output = local 169 std::string output = local 188 std::string output = local 216 std::string output = local 235 std::string output = local 261 std::string output = local 280 std::string output = local 306 std::string output = local 325 std::string output = local [all...] |
H A D | print_local_data_proto.cc | 34 std::string output = local 38 output += indent + " owner_password: "; 39 base::StringAppendF(&output, "%s", 43 output += "\n"; 45 output += indent + " owner_dependency: {"; 47 base::StringAppendF(&output, "%s", value.owner_dependency(i).c_str()); 49 output += "}\n"; 51 output += indent + " endorsement_password: "; 52 base::StringAppendF(&output, "%s", 56 output [all...] |
/system/keymaster/ |
H A D | kdf.cpp | 61 bool Kdf::Uint32ToBigEndianByteArray(uint32_t number, uint8_t* output) { argument 62 if (!output) 65 output[0] = (number >> 24) & 0xff; 66 output[1] = (number >> 16) & 0xff; 67 output[2] = (number >> 8) & 0xff; 68 output[3] = (number)&0xff;
|
H A D | hkdf_test.cpp | 67 uint8_t output[output_len]; local 72 output, output_len)); 73 EXPECT_EQ(0, memcmp(output, expected.data(), output_len));
|
H A D | kdf1_test.cpp | 48 uint8_t output[output_len]; local 53 ASSERT_TRUE(kdf1.GenerateKey(nullptr, 0, output, output_len)); 54 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len));
|
H A D | kdf2_test.cpp | 73 uint8_t output[output_len]; local 79 output, output_len)); 80 EXPECT_EQ(0, memcmp(output, expected_output.data(), output_len));
|
H A D | aes_operation.h | 69 AuthorizationSet* output_params, Buffer* output, 73 Buffer* output) override; 87 bool InternalUpdate(const uint8_t* input, size_t input_length, Buffer* output, 90 AuthorizationSet* output_params, Buffer* output, keymaster_error_t* error); 119 Buffer* output) override; 137 AuthorizationSet* output_params, Buffer* output, 141 Buffer* output) override; 148 keymaster_error_t ProcessAllButTagLengthBytes(const Buffer& input, Buffer* output); 149 bool ProcessTagBufContentsAsData(size_t to_process, Buffer* output, keymaster_error_t* error);
|
H A D | aes_operation.cpp | 195 AuthorizationSet* /* output_params */, Buffer* output, 202 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) 216 AuthorizationSet* output_params, Buffer* output) { 218 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) 221 if (!output->reserve(AES_BLOCK_SIZE)) 228 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { 236 if (!output->advance_write(output_written)) 447 bool AesEvpOperation::InternalUpdate(const uint8_t* input, size_t input_length, Buffer* output, argument 449 assert(output); 455 if (!output 193 Update(const AuthorizationSet& additional_params, const Buffer& input, AuthorizationSet* , Buffer* output, size_t* input_consumed) argument 214 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& , AuthorizationSet* output_params, Buffer* output) argument 468 UpdateForFinish(const AuthorizationSet& additional_params, const Buffer& input, AuthorizationSet* output_params, Buffer* output, keymaster_error_t* error) argument 508 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& signature, AuthorizationSet* output_params, Buffer* output) argument 560 Update(const AuthorizationSet& additional_params, const Buffer& input, AuthorizationSet* , Buffer* output, size_t* input_consumed) argument 582 ProcessAllButTagLengthBytes(const Buffer& input, Buffer* output) argument 612 ProcessTagBufContentsAsData(size_t to_process, Buffer* output, keymaster_error_t* error) argument 629 Finish(const AuthorizationSet& additional_params, const Buffer& input, const Buffer& signature, AuthorizationSet* output_params, Buffer* output) argument [all...] |
H A D | kdf.h | 37 virtual bool GenerateKey(const uint8_t* info, size_t info_len, uint8_t* output, 41 bool Uint32ToBigEndianByteArray(uint32_t number, uint8_t* output);
|
H A D | iso18033kdf.cpp | 30 bool Iso18033Kdf::GenerateKey(const uint8_t* info, size_t info_len, uint8_t* output, argument 32 if (!is_initialized_ || output == nullptr) 35 /* Check whether output length is too long as specified in ISO/IEC 18033-2. */ 80 memcpy(output + block_start, digest_result.get(), block_length);
|
/system/core/base/ |
H A D | logging_test.cpp | 136 // We can't usefully check the output of any of these on Windows because we 144 std::string output; local 145 android::base::ReadFdToString(cap.fd(), &output); 146 ASSERT_GT(output.length(), strlen("foobar")); 151 ASSERT_TRUE(std::regex_search(output, message_regex)) << output; 160 std::string output; local 161 android::base::ReadFdToString(cap.fd(), &output); 162 ASSERT_GT(output.length(), strlen("foobar")); 167 ASSERT_TRUE(std::regex_search(output, message_rege 176 std::string output; local 187 std::string output; local 207 std::string output; local 250 std::string output; local 269 std::string output; local [all...] |
/system/tpm/trunks/ |
H A D | background_command_transceiver_test.cc | 54 std::string* output) { 55 *output = transceiver->SendCommandAndWait("test"); 84 std::string output = "not_assigned"; local 85 background_transceiver.SendCommand("test", base::Bind(Assign, &output)); 89 } while (output == "not_assigned"); 91 EXPECT_EQ(std::string(kTestThreadName), output); local 98 std::string output = "not_assigned"; local 103 &output)); 107 EXPECT_EQ(std::string("test_thread"), output); 53 SendCommandAndWaitAndAssign(trunks::CommandTransceiver* transceiver, std::string* output) argument
|
/system/extras/libfec/test/ |
H A D | test_read.cpp | 29 cerr << "usage: " << argv[0] << " input output" << endl; 46 ofstream output(argv[2], ios::binary | ios::trunc); 48 if (!output) { 61 output.write(reinterpret_cast<const char *>(buffer.get()), count); 63 if (!output) {
|
/system/core/libutils/tests/ |
H A D | Unicode_test.cpp | 43 << "Zero length input should return zero length output."; 99 char16_t output[1 + 1 + 1 + 2 + 1]; // Room for NULL local 101 utf8_to_utf16(str, sizeof(str), output); 103 EXPECT_EQ(0x0030, output[0]) 105 EXPECT_EQ(0x0100, output[1]) 107 EXPECT_EQ(0x2323, output[2]) 109 EXPECT_EQ(0xD800, output[3]) 111 EXPECT_EQ(0xDC00, output[4]) 113 EXPECT_EQ(NULL, output[5])
|
/system/core/metricsd/uploader/ |
H A D | metrics_hashes_unittest.cc | 30 std::string output; member in struct:metrics::__anon1708 40 EXPECT_EQ(cases[i].output, hash_hex);
|
/system/connectivity/shill/net/ |
H A D | netlink_attribute.cc | 395 string output = " === RAW: "; local 398 StringAppendF(&output, "(empty)"); 399 return output; 405 StringAppendF(&output, "len=%u", length); 406 output.append(" DATA: "); 408 StringAppendF(&output, "[%d]=%02x ", i, *(const_data)+i); 410 output.append(" ==== "); 411 return output; 460 bool NetlinkU8Attribute::GetU8Value(uint8_t* output) const { 466 if (output) { 862 GetNestedAttributeList( AttributeListRefPtr* output) argument [all...] |
/system/extras/tests/workloads/ |
H A D | defs.sh | 40 echo "-o output file" 57 (-o) output=$2; shift;; 127 output=${output:="./out"} 129 # clear the output file 130 if [ -f $output ]; then 131 > $output 145 # debug output enabled by -v 148 echo DEBUG: $* >&2 >> $output 275 # look for any reclaim events in atrace output [all...] |
/system/core/libsparse/ |
H A D | append2simg.c | 46 fprintf(stderr, "Usage: append2simg <output> <input>\n"); 51 int output; local 79 output = open(output_path, O_RDWR | O_BINARY); 80 if (output < 0) { 81 fprintf(stderr, "Couldn't open output file (%s)\n", strerror(errno)); 85 sparse_output = sparse_file_import_auto(output, false, true); 87 fprintf(stderr, "Couldn't import output file\n"); 102 fprintf(stderr, "Input file is not a multiple of the output file's block size"); 120 lseek64(output, 0, SEEK_SET); 128 close(output); [all...] |
/system/connectivity/shill/init/ |
H A D | netfilter-queue.conf | 33 --output-queue=${NETFILTER_OUTPUT_NFQUEUE}
|
/system/tools/aidl/tests/ |
H A D | test_util.cpp | 116 vector<string> output; local 120 output.push_back(" " + a_lines[i-1]); 124 output.push_back("-" + a_lines[i-1]); 127 output.push_back("+" + b_lines[j-1]); 136 for (auto it = output.crbegin(), frontier = output.crbegin(); 137 it != output.crend(); ++it) { 138 while (frontier != output.crend() && distance(it, frontier) <= 3) {
|