Home
last modified time | relevance | path

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

/system/core/trusty/keymaster/
Dtrusty_keymaster_main.cpp130 size_t message_len = 1024 / 8; in test_import_rsa() local
131 UniquePtr<uint8_t[]> message(new uint8_t[message_len]); in test_import_rsa()
132 memset(message.get(), 'a', message_len); in test_import_rsa()
135 error = device->sign_data(&sign_params, key, size, message.get(), message_len, &signature, in test_import_rsa()
144 error = device->verify_data(&sign_params, key, size, message.get(), message_len, signature, in test_import_rsa()
176 size_t message_len = params.modulus_size / 8; in test_rsa() local
177 UniquePtr<uint8_t[]> message(new uint8_t[message_len]); in test_rsa()
178 memset(message.get(), 'a', message_len); in test_rsa()
181 error = device->sign_data(&sign_params, key, size, message.get(), message_len, &signature, in test_rsa()
190 error = device->verify_data(&sign_params, key, size, message.get(), message_len, signature, in test_rsa()
[all …]
Dtrusty_keymaster_device_test.cpp183 size_t message_len = params.modulus_size / 8; in TEST_F() local
184 UniquePtr<uint8_t[]> message(build_message(message_len)); in TEST_F()
187 EXPECT_EQ(KM_ERROR_OK, device.sign_data(&sig_params, ptr, size, message.get(), message_len, in TEST_F()
190 EXPECT_EQ(message_len, siglen); in TEST_F()
202 size_t message_len = params.modulus_size / 8 - 1; in TEST_F() local
203 UniquePtr<uint8_t[]> message(build_message(message_len)); in TEST_F()
207 message_len, &signature, &siglen)); in TEST_F()
219 size_t message_len = params.modulus_size / 8 + 1; in TEST_F() local
220 UniquePtr<uint8_t[]> message(build_message(message_len)); in TEST_F()
224 message_len, &signature, &siglen)); in TEST_F()
[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/keymaster/
Dandroid_keymaster_test.cpp1330 size_t message_len = 1000; in TEST_P() local
1337 message_len = key_bits / 8; in TEST_P()
1340 message_len = key_bits / 8 - 11; in TEST_P()
1391 string message(message_len, 'a'); in TEST_P()