Home
last modified time | relevance | path

Searched refs:message_len (Results 1 – 6 of 6) sorted by relevance

/system/core/trusty/keymaster/legacy/
Dtrusty_keymaster_device_test.cpp182 size_t message_len = params.modulus_size / 8; in TEST_F() local
183 std::unique_ptr<uint8_t[]> message(build_message(message_len)); in TEST_F()
186 EXPECT_EQ(KM_ERROR_OK, device.sign_data(&sig_params, ptr, size, message.get(), message_len, in TEST_F()
189 EXPECT_EQ(message_len, siglen); in TEST_F()
201 size_t message_len = params.modulus_size / 8 - 1; in TEST_F() local
202 std::unique_ptr<uint8_t[]> message(build_message(message_len)); in TEST_F()
206 message_len, &signature, &siglen)); in TEST_F()
218 size_t message_len = params.modulus_size / 8 + 1; in TEST_F() local
219 std::unique_ptr<uint8_t[]> message(build_message(message_len)); in TEST_F()
223 message_len, &signature, &siglen)); in TEST_F()
[all …]
Dtrusty_keymaster_main.cpp195 size_t message_len = 1024 / 8; in test_import_rsa() local
196 std::unique_ptr<uint8_t[]> message(new uint8_t[message_len]); in test_import_rsa()
197 memset(message.get(), 'a', message_len); in test_import_rsa()
198 keymaster_blob_t input = {message.get(), message_len}, signature; in test_import_rsa()
231 size_t message_len = 1024 / 8; in test_rsa() local
232 std::unique_ptr<uint8_t[]> message(new uint8_t[message_len]); in test_rsa()
233 memset(message.get(), 'a', message_len); in test_rsa()
234 keymaster_blob_t input = {message.get(), message_len}, signature; in test_rsa()
272 message_len) != 1) { in test_rsa()
299 size_t message_len = 30 /* arbitrary */; in test_import_ecdsa() local
[all …]
/system/connectivity/wifilogd/
Dmessage_buffer.cpp34 bool MessageBuffer::Append(const uint8_t* message, uint16_t message_len) { in Append() argument
35 CHECK(message_len); in Append()
37 if (!CanFitNow(message_len)) { in Append()
41 AppendHeader(message_len); in Append()
42 AppendRawBytes(message, message_len); in Append()
82 void MessageBuffer::AppendHeader(uint16_t message_len) { in AppendHeader() argument
84 header.payload_len = message_len; in AppendHeader()
Dmessage_buffer.h92 void AppendHeader(uint16_t message_len);
/system/core/logd/
DLogAudit.cpp335 size_t message_len = str_len + sizeof(android_log_event_string_t); in logPrint() local
340 uint32_t buffer[(message_len + sizeof(uint32_t) - 1) / sizeof(uint32_t)]; in logPrint()
353 (message_len <= UINT16_MAX) ? (uint16_t)message_len : UINT16_MAX); in logPrint()
394 message_len = in logPrint()
398 char newstr[message_len]; in logPrint()
409 (message_len <= UINT16_MAX) ? (uint16_t)message_len : UINT16_MAX); in logPrint()
423 rc = message_len; in logPrint()
/system/keymaster/tests/
Dandroid_keymaster_test.cpp1281 size_t message_len = 1000; in TEST_P() local
1288 message_len = key_bits / 8; in TEST_P()
1291 message_len = key_bits / 8 - 11; in TEST_P()
1345 string message(message_len, 'a'); in TEST_P()