Files
OpenCellular/board
nagendra modadugu d08dade974 CR50: handle big-endian RSA keys
The TPM library serializes RSA keys in big-endian format, while
CR50 requires little-endian.

Handle endianness by converting from big to little and back
to big within the _cpri__* layer.

Also modify test code to make copies of static const RSA keys, as
these get placed on read-only memory.

BRANCH=none
BUG=chrome-os-partner:43025,chrome-os-partner:47524,chrome-os-partner:52337
TEST=tests in test/tpm/tpmtest.py pass

Change-Id: Id9cfbe8c99ecaeb02744fbc7554cd48a08bab819
Signed-off-by: nagendra modadugu <ngm@google.com>
Reviewed-on: https://chromium-review.googlesource.com/331740
Commit-Ready: Nagendra Modadugu <ngm@google.com>
Tested-by: Nagendra Modadugu <ngm@google.com>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2016-04-14 17:28:25 -07:00
..
2016-04-03 10:27:40 -07:00
2016-04-14 17:28:25 -07:00
2016-04-14 03:43:09 -07:00
2016-04-14 17:28:20 -07:00
2016-03-08 12:17:03 -08:00
2016-04-11 04:14:59 -07:00
2014-04-02 19:58:53 +00:00