summaryrefslogtreecommitdiff
path: root/identity/support/src/cppbor_parse.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-12-05 21:50:22 -0800
committerTianjie Xu <xunchang@google.com>2019-12-18 22:45:54 -0800
commita0a12cfcf216c7ba3ee43ec86e81e708a8db2519 (patch)
tree1ff23f853c32276191644680e05048157488163d /identity/support/src/cppbor_parse.cpp
parenta3462a5ddcdbe8290516bf58ebc12fb88592e076 (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
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions