Home
last modified time | relevance | path

Searched refs:authorization_value (Results 1 – 12 of 12) sorted by relevance

/system/nvram/hal/tests/
Dscoped_nvram_device.cc158 const std::string& authorization_value) { in CreateSpace() argument
164 StringToBytePtr(authorization_value), authorization_value.size()); in CreateSpace()
169 const std::string& authorization_value) { in DeleteSpace() argument
171 StringToBytePtr(authorization_value), in DeleteSpace()
172 authorization_value.size()); in DeleteSpace()
185 const std::string& authorization_value) { in WriteSpace() argument
190 data.size(), StringToBytePtr(authorization_value), in WriteSpace()
191 authorization_value.size()); in WriteSpace()
197 const std::string& authorization_value, in ReadSpace() argument
205 device_, index, num_bytes_to_read, StringToBytePtr(authorization_value), in ReadSpace()
[all …]
Dnvram_hal_test.cc66 const std::string& authorization_value) override { in CreateSpace() argument
71 authorization_value == kNoAuth || in CreateSpace()
72 authorization_value == kBurnSpaceAuth) in CreateSpace()
75 index, size_in_bytes, control_list, authorization_value); in CreateSpace()
109 const std::string& authorization_value) in ScopedNvramSpace() argument
112 authorization_value_(authorization_value) { in ScopedNvramSpace()
/system/nvram/hal/
Dnvram_device_adapter.cpp178 const uint8_t* authorization_value, in device_create_space() argument
189 if (!create_space_request.authorization_value.Assign( in device_create_space()
190 authorization_value, authorization_value_size)) { in device_create_space()
200 const uint8_t* authorization_value, in device_delete_space() argument
204 if (!delete_space_request.authorization_value.Assign( in device_delete_space()
205 authorization_value, authorization_value_size)) { in device_delete_space()
224 const uint8_t* authorization_value, in device_write_space() argument
229 !write_space_request.authorization_value.Assign( in device_write_space()
230 authorization_value, authorization_value_size)) { in device_write_space()
241 const uint8_t* authorization_value, in device_read_space() argument
[all …]
/system/nvram/hal/include/nvram/hal/tests/
Dscoped_nvram_device.h59 const std::string& authorization_value);
61 const std::string& authorization_value);
65 const std::string& authorization_value);
68 const std::string& authorization_value,
72 const std::string& authorization_value);
74 const std::string& authorization_value);
/system/nvram/messages/include/nvram/messages/
Dnvram_messages.h67 Blob authorization_value; member
87 Blob authorization_value; member
101 Blob authorization_value; member
109 Blob authorization_value; member
119 Blob authorization_value; member
127 Blob authorization_value; member
/system/nvram/messages/
Dnvram_messages.cpp49 MakeField(4, &CreateSpaceRequest::authorization_value));
72 MakeField(2, &DeleteSpaceRequest::authorization_value));
91 MakeField(3, &WriteSpaceRequest::authorization_value));
101 MakeField(2, &ReadSpaceRequest::authorization_value));
112 MakeField(2, &LockSpaceWriteRequest::authorization_value));
122 MakeField(2, &LockSpaceReadRequest::authorization_value));
/system/nvram/core/
Dnvram_manager.cpp220 if (request.authorization_value.size() > kMaxAuthSize) { in CreateSpace()
259 if (!space.authorization_value.Assign(request.authorization_value.data(), in CreateSpace()
260 request.authorization_value.size())) { in CreateSpace()
338 result = space_record.CheckWriteAccess(request.authorization_value); in DeleteSpace()
407 result = space_record.CheckWriteAccess(request.authorization_value); in WriteSpace()
453 result = space_record.CheckReadAccess(request.authorization_value); in ReadSpace()
482 result = space_record.CheckWriteAccess(request.authorization_value); in LockSpaceWrite()
514 result = space_record.CheckReadAccess(request.authorization_value); in LockSpaceRead()
599 const Blob& authorization_value) { in CheckWriteAccess() argument
616 !ConstantTimeEquals(persistent.authorization_value, in CheckWriteAccess()
[all …]
Dpersistence.cpp93 MakeField(3, &NvramSpace::authorization_value),
/system/nvram/messages/tests/
Dnvram_messages_test.cpp95 ASSERT_TRUE(request_payload.authorization_value.Assign(kAuthValue, in TEST()
111 const Blob& decoded_auth_value = decoded_payload->authorization_value; in TEST()
183 ASSERT_TRUE(request_payload.authorization_value.Assign(kAuthValue, in TEST()
195 const Blob& decoded_auth_value = decoded_payload->authorization_value; in TEST()
246 ASSERT_TRUE(request_payload.authorization_value.Assign(kAuthValue, in TEST()
261 const Blob& decoded_auth_value = decoded_payload->authorization_value; in TEST()
286 ASSERT_TRUE(request_payload.authorization_value.Assign(kAuthValue, in TEST()
298 const Blob& decoded_auth_value = decoded_payload->authorization_value; in TEST()
331 ASSERT_TRUE(request_payload.authorization_value.Assign(kAuthValue, in TEST()
343 const Blob& decoded_auth_value = decoded_payload->authorization_value; in TEST()
[all …]
/system/nvram/core/include/nvram/core/
Dnvram_manager.h107 nvram_result_t CheckWriteAccess(const Blob& authorization_value);
113 nvram_result_t CheckReadAccess(const Blob& authorization_value);
Dpersistence.h122 Blob authorization_value; member
/system/nvram/core/tests/
Dnvram_manager_test.cpp314 ASSERT_TRUE(create_space_request.authorization_value.Resize(256)); in TEST_F()
469 ASSERT_TRUE(space.authorization_value.Assign(kAuthorizationValue, in TEST_F()
829 ASSERT_TRUE(space.authorization_value.Assign(kAuthorizationValue, in TEST_F()
889 ASSERT_TRUE(space.authorization_value.Assign(kAuthorizationValue, in TEST_F()
924 ASSERT_TRUE(space.authorization_value.Assign(kAuthorizationValue, in TEST_F()
1044 ASSERT_TRUE(space.authorization_value.Assign(kAuthorizationValue, in TEST_F()