Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 55b26a61 authored by Fan Xu's avatar Fan Xu
Browse files

Refactor bufferhub token to be more secure

Now BufferHubService will use HMAC hashing from openssl library to
enhance the security of the token.

The token handle will use its first int to store token id, then the HMAC
hash of the token id, so that BufferHubService could store token in
mTokenMap using token id as the key to improve looking up performance.

Test: VtsHalBufferHubV1_0TargetTest
Change-Id: Ica9639bc1504a477c6a1b1f703399bb07b3a2d2c
Fix: 118180214
parent 92b66e18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment