Files
OpenCellular/extra
Vadim Bendebury 6e364d59c1 rma_reset: add p256 ECC option
This patch adds RMA shared secret generation support using the p256
curve. It is not a simple shoe in replacement for the x25519 because
of a different key representations. This new code uses openssl library
for all calculations.

A new option is being added to indicate that p256 is supposed to be
used, the new server Key ID value is used for p256, which allows to
pick the correct curve when parsing the previously generated
challenge.

BRANCH=none
BUG=b:73296606
TEST=verified that the same secret value is generated on the client
     and server side when using either x25519 or p256 curves.

      ./rma_reset -t
      ./rma_reset -c <challenge generated by the previous command>

      ./rma_reset -t -p
      ./rma_reset -c <challenge generated by the previous command>

Change-Id: I9b21b5ae389480d92f0f663fbb846b0f27b15de1
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1073757
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2018-05-28 15:26:29 -07:00
..
2018-05-28 15:26:29 -07:00
2017-10-25 01:38:45 -07:00

This directory is for experiments only. It is not built automatically,
required, supported, guaranteed to work, or necessarily well-documented.

The contents may change without warning at any time.