Searched refs:SizedBuffer (Results 1 – 6 of 6) sorted by relevance
/system/gatekeeper/include/gatekeeper/ |
D | gatekeeper_messages.h | 41 struct SizedBuffer { struct 42 SizedBuffer() { in SizedBuffer() function 45 ~SizedBuffer() { in ~SizedBuffer() argument 55 SizedBuffer(uint8_t buf[], uint32_t len) { in SizedBuffer() function 64 SizedBuffer(SizedBuffer && rhs) : buffer(move(rhs.buffer)), length(rhs.length) { in SizedBuffer() argument 68 SizedBuffer & operator=(SizedBuffer && rhs) { 170 SizedBuffer enrolled_password_handle, 171 SizedBuffer provided_password_payload); 179 SizedBuffer password_handle; 180 SizedBuffer provided_password; [all …]
|
D | gatekeeper.h | 170 virtual bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password); 179 gatekeeper_error_t MintAuthToken(SizedBuffer *auth_token, uint64_t timestamp, 185 bool CreatePasswordHandle(SizedBuffer *password_handle, salt_t salt, 187 const SizedBuffer & password);
|
/system/gatekeeper/ |
D | gatekeeper_messages.cpp | 39 static inline uint32_t serialized_buffer_size(const SizedBuffer &buf) { in serialized_buffer_size() 43 static inline void append_to_buffer(uint8_t **buffer, const SizedBuffer &to_append) { in append_to_buffer() 54 SizedBuffer *target) { in read_from_buffer() 146 SizedBuffer enrolled_password_handle, SizedBuffer provided_password_payload) { in VerifyRequest() 183 VerifyResponse::VerifyResponse(uint32_t user_id, SizedBuffer auth_token) { in VerifyResponse() 193 void VerifyResponse::SetVerificationToken(SizedBuffer auth_token) { in SetVerificationToken() 220 EnrollRequest::EnrollRequest(uint32_t user_id, SizedBuffer password_handle, in EnrollRequest() 221 SizedBuffer provided_password, SizedBuffer enrolled_password) { in EnrollRequest() 260 EnrollResponse::EnrollResponse(uint32_t user_id, SizedBuffer enrolled_password_handle) { in EnrollResponse() 265 void EnrollResponse::SetEnrolledPasswordHandle(SizedBuffer enrolled_password_handle) { in SetEnrolledPasswordHandle()
|
D | gatekeeper.cpp | 93 SizedBuffer password_handle; in Enroll() 148 SizedBuffer auth_token; in Verify() 166 bool GateKeeper::CreatePasswordHandle(SizedBuffer *password_handle_buffer, salt_t salt, in CreatePasswordHandle() 167 secure_id_t user_id, uint64_t flags, uint8_t handle_version, const SizedBuffer & password) { in CreatePasswordHandle() 212 bool GateKeeper::DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify() 215 SizedBuffer provided_handle; in DoVerify() 226 gatekeeper_error_t GateKeeper::MintAuthToken(SizedBuffer *auth_token, in MintAuthToken()
|
/system/gatekeeper/tests/ |
D | gatekeeper_messages_test.cpp | 26 using ::gatekeeper::SizedBuffer; 37 static SizedBuffer make_buffer(uint32_t size) { in make_buffer() 50 const SizedBuffer *deserialized_password; in TEST() 74 const SizedBuffer *deserialized_password; in TEST() 97 SizedBuffer provided_password = make_buffer(password_size); in TEST() 98 SizedBuffer enrolled_password = make_buffer(password_size); in TEST() 99 SizedBuffer password_handle = make_buffer(password_size); in TEST() 100 const SizedBuffer *deserialized_password; in TEST() 101 const SizedBuffer *deserialized_enrolled; in TEST() 102 const SizedBuffer *deserialized_handle; in TEST() [all …]
|
/system/core/trusty/gatekeeper/ |
D | trusty_gatekeeper.cpp | 35 using ::gatekeeper::SizedBuffer; 57 SizedBuffer hidl_vec2sized_buffer(const hidl_vec<uint8_t>& vec) { in hidl_vec2sized_buffer()
|