commit | a0a12cfcf216c7ba3ee43ec86e81e708a8db2519 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Thu Dec 05 21:50:22 2019 -0800 |
committer | Tianjie Xu <xunchang@google.com> | Wed Dec 18 22:45:54 2019 -0800 |
tree | 1ff23f853c32276191644680e05048157488163d | |
parent | a3462a5ddcdbe8290516bf58ebc12fb88592e076 [diff] |
Add hadamard utilities to encode keys Add the utility functions to encode & decode 32 bytes keys. The hadamard encoding will expand a 2 bytes word to 2^15 bits. And thus the 32 byte key will expand to 64KiB in space. The encoded value is more robust and we will be able to recover the key even if there is some corruption. Test: unittest pass Change-Id: Iae8a28a8c7c1699f8641f9250f0eccde5c2ff138