Home
last modified time | relevance | path

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

/system/gatekeeper/include/gatekeeper/
Dgatekeeper_messages.h42 struct SizedBuffer { struct
43 SizedBuffer() { in SizedBuffer() function
46 ~SizedBuffer() { in ~SizedBuffer() argument
56 SizedBuffer(uint8_t buf[], uint32_t len) { in SizedBuffer() argument
65 SizedBuffer(SizedBuffer && rhs) : buffer(move(rhs.buffer)), length(rhs.length) { in SizedBuffer() function
69 SizedBuffer & operator=(SizedBuffer && rhs) {
171 SizedBuffer enrolled_password_handle,
172 SizedBuffer provided_password_payload);
180 SizedBuffer password_handle;
181 SizedBuffer provided_password;
[all …]
Dgatekeeper.h186 virtual bool DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password);
195 gatekeeper_error_t MintAuthToken(SizedBuffer *auth_token, uint64_t timestamp,
201 bool CreatePasswordHandle(SizedBuffer *password_handle, salt_t salt,
203 const SizedBuffer & password);
/system/gatekeeper/
Dgatekeeper_messages.cpp39 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()
70 SizedBuffer *target) { in read_from_buffer()
162 SizedBuffer enrolled_password_handle, SizedBuffer provided_password_payload) { in VerifyRequest()
199 VerifyResponse::VerifyResponse(uint32_t user_id, SizedBuffer auth_token) { in VerifyResponse()
209 void VerifyResponse::SetVerificationToken(SizedBuffer auth_token) { in SetVerificationToken()
236 EnrollRequest::EnrollRequest(uint32_t user_id, SizedBuffer password_handle, in EnrollRequest()
237 SizedBuffer provided_password, SizedBuffer enrolled_password) { in EnrollRequest()
276 EnrollResponse::EnrollResponse(uint32_t user_id, SizedBuffer enrolled_password_handle) { in EnrollResponse()
281 void EnrollResponse::SetEnrolledPasswordHandle(SizedBuffer enrolled_password_handle) { in SetEnrolledPasswordHandle()
Dgatekeeper.cpp93 SizedBuffer password_handle; in Enroll()
148 SizedBuffer auth_token; in Verify()
180 bool GateKeeper::CreatePasswordHandle(SizedBuffer *password_handle_buffer, salt_t salt, in CreatePasswordHandle()
181 secure_id_t user_id, uint64_t flags, uint8_t handle_version, const SizedBuffer & password) { in CreatePasswordHandle()
226 bool GateKeeper::DoVerify(const password_handle_t *expected_handle, const SizedBuffer &password) { in DoVerify()
229 SizedBuffer provided_handle; in DoVerify()
240 gatekeeper_error_t GateKeeper::MintAuthToken(SizedBuffer *auth_token, in MintAuthToken()
/system/gatekeeper/tests/
Dgatekeeper_messages_test.cpp26 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/
Dtrusty_gatekeeper.cpp35 using ::gatekeeper::SizedBuffer;
57 SizedBuffer hidl_vec2sized_buffer(const hidl_vec<uint8_t>& vec) { in hidl_vec2sized_buffer()