commit | e908789636ec55c04d9e00c406520b5cab19007a | [log] [tgz] |
---|---|---|
author | Gang Wang <wanggang@google.com> | Tue Jan 07 12:17:14 2020 -0500 |
committer | Siarhei Vishniakou <svv@google.com> | Thu Feb 13 13:27:04 2020 -0800 |
tree | d86236fb801b0b53d078ca13c30ddf5c9c6b624f | |
parent | edd6bc95bbc71b94bd1d760c0ce8054cb521835f [diff] |
Use hmac to sign events in InputDispatcher InputDispatcher will now be able to sign events. Add two static methods to InputDispatcher class, for signing events, and for checking the event signature. The new methods can verify whether a MotionEntry object was actually created by the Input system and whether the MotionEntry object was modified afterwards. Bug: 134977432 Test: none Change-Id: Ica11bccd0c3fb065b02634bd236ae5a46f6b19ee