chrome-ec/test
Vadim Bendebury 10caf0ecd3 cr50: use run time generated public RMA key definition
Use RMA public key definition generated based on the binary blob
containing the key and key ID.

Key generation is controlled by the make file in common/, but actual
key blob comes from the board directory.

The structure holding the key and key ID is being modified to allow
initialization using a flat array.

No more need in defining CONFIG_RMA_AUTH_SERVER_PUBLIC_KEY and
CONFIG_RMA_AUTH_SERVER_KEY_ID.

 Conflicts:
	common/build.mk

BRANCH=cr50, cr50-mp
BUG=b:73296144, b:74100307
TEST='make buildall' still succeeds.
     test RMA server generated authentication codes are accepted when
     unlocking RMA.

Change-Id: I8ade94de6eb69b3e49bc5b948dbac20e59962acf
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/990783
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
(cherry picked from commit f2eac533dc)
Reviewed-on: https://chromium-review.googlesource.com/1015612
2018-04-17 18:44:33 +00:00
..
tpm_test tpm_test: test counter rollover for AES-CTR mode 2017-02-03 10:51:15 -08:00
usb_test Cr50: Support USB SETCFG/GETCFG control transfers 2016-03-30 17:10:17 -07:00
base32.c common: Substitute modified CRC8 with CRC-5-USB 2018-02-01 00:48:00 +00:00
base32.tasklist common: Add base32 encoding 2017-07-18 17:50:26 +00:00
battery_get_params_smart.c Add charge_state_v2 algorithm for use by Samus 2014-04-01 21:37:32 +00:00
battery_get_params_smart.tasklist Add charge_state_v2 algorithm for use by Samus 2014-04-01 21:37:32 +00:00
bklight_lid.c Support backlight control via lid only 2013-09-27 23:07:21 +00:00
bklight_lid.tasklist Support backlight control via lid only 2013-09-27 23:07:21 +00:00
bklight_passthru.c Support backlight control via lid only 2013-09-27 23:07:21 +00:00
bklight_passthru.tasklist Support backlight control via lid only 2013-09-27 23:07:21 +00:00
build.mk ec: add crc32_ctx..() to take context parameter. 2018-03-01 02:06:18 +00:00
button.c button: Check volume up/down status and set recovery mode 2017-01-20 00:05:06 -08:00
button.tasklist Run KEYPROTO task during the button unit test 2014-02-07 04:13:26 +00:00
charge_manager.c charge_state_v2: Limit i/p current to meet allowed MAX i/p system power 2016-12-05 16:43:00 -08:00
charge_manager.tasklist charge_manager: Add unit tests 2014-11-13 00:29:58 +00:00
charge_manager_drp_charging.tasklist charge_manager: add option to charge from dual-role devices 2015-09-08 21:58:21 -07:00
charge_ramp.c charge_ramp: Specify port number in board_is_vbus_too_low() 2017-02-02 19:09:52 -08:00
charge_ramp.tasklist charge_ramp: initial commit of charge ramp module 2015-02-18 04:53:22 +00:00
console_edit.c cleanup: DECLARE_CONSOLE_COMMAND only needs 4 args 2016-08-24 16:30:10 +00:00
console_edit.tasklist Add console editing unit test 2013-07-11 22:32:53 -07:00
crc32.c ec: add crc32_ctx..() to take context parameter. 2018-03-01 02:06:18 +00:00
crc32.tasklist ec: add crc32_ctx..() to take context parameter. 2018-03-01 02:06:18 +00:00
extpwr_gpio.c Emulator support of fake GPIO input 2013-10-01 08:16:34 +00:00
extpwr_gpio.tasklist Add extpower-gpio unit test 2013-07-11 22:32:52 -07:00
fan.c Samus: Handle fan startup in the EC, not the fan controller 2014-11-06 02:28:22 +00:00
fan.tasklist Samus: Handle fan startup in the EC, not the fan controller 2014-11-06 02:28:22 +00:00
flash.c test/flash: Use signal enum instead of string name 2016-01-19 14:24:34 -08:00
flash.tasklist Add multi-step test support 2013-09-05 07:20:46 +00:00
hooks.c Deferred: Use deferred_data instead of function pointer 2016-04-18 17:32:40 -07:00
hooks.tasklist Add hook test 2013-05-14 09:25:03 -07:00
host_command.c Add interrupt support for emulator 2014-01-06 12:40:45 +00:00
host_command.tasklist Add host command test 2013-09-04 20:32:52 +00:00
inductive_charging.c ryu: improve inductive charging control 2015-01-30 05:11:06 +00:00
inductive_charging.tasklist Add inductive charging control module 2014-08-25 20:52:32 +00:00
interrupt.c emulator: Move trace dump to a separate module 2014-01-22 04:52:49 +00:00
interrupt.tasklist Add interrupt support for emulator 2014-01-06 12:40:45 +00:00
kb_8042.c Fix kb_8042 test 2014-01-08 03:49:29 +00:00
kb_8042.tasklist Add I8042 keyboard unit test 2013-07-11 22:32:52 -07:00
kb_mkbp.c mkbp: Add support for buttons and switches. 2016-07-19 18:33:36 -07:00
kb_mkbp.tasklist Add test for keyboard MKBP protocol 2013-05-06 11:36:21 -07:00
kb_scan.c common: Add new recovery mode button combination 2016-11-08 20:30:07 -08:00
kb_scan.tasklist Add boot key test 2013-09-05 07:20:56 +00:00
key_sequence.txt Add initial keyscan test and key matrix 2012-11-01 17:20:45 -07:00
lid_sw.c Emulator support of fake GPIO input 2013-10-01 08:16:34 +00:00
lid_sw.tasklist Add lid switch test and enable kb_mkbp test 2013-05-08 13:24:19 -07:00
lightbar.c common: lightbar: Add histeresis to prevent flickering 2015-10-23 18:03:12 -07:00
lightbar.tasklist lightbar: correctly revert to the S0/S3/S5 patterns 2014-08-20 22:42:15 +00:00
math_util.c math: Add inverse matrix calculation 2015-08-24 19:08:20 +00:00
math_util.tasklist common: Untie math_util from motion sense. 2015-07-22 03:39:52 +00:00
motion_lid.c CHERRY-PICK: motion_lid: Add more reliability measurements. 2017-01-20 22:40:32 -08:00
motion_lid.tasklist Samus: Split motion sense and lid angle 2014-10-29 22:23:54 +00:00
mutex.c Add interrupt support for emulator 2014-01-06 12:40:45 +00:00
mutex.tasklist Fix mutex test 2013-04-11 11:29:32 -07:00
nvmem.c cr50: Make sure TPM wipe only clears TPM data. 2017-03-02 17:11:22 +00:00
nvmem.tasklist Cr50: NvMem: Added mutex lock protection for cache memory 2016-06-22 13:22:50 -07:00
nvmem_vars.c cr50: Store console lock state in NvMem vars. 2017-03-02 18:15:19 +00:00
nvmem_vars.tasklist Add nvmem-backed key=value variable storage 2016-12-21 19:42:37 -08:00
pingpong.c Add interrupt support for emulator 2014-01-06 12:40:45 +00:00
pingpong.tasklist cleanup: Remove checkpatch warnings 2013-12-19 00:12:28 +00:00
power_button.c Emulator support of fake GPIO input 2013-10-01 08:16:34 +00:00
power_button.tasklist Fix tasklist for tests 2013-04-10 09:35:06 -07:00
powerdemo.c UART: Remove unused uart.h header includes 2015-09-08 10:38:20 -07:00
powerdemo.h cleanup: fix all the header guards 2015-06-18 19:07:00 +00:00
powerdemo.tasklist Fix tasklist for tests 2013-04-10 09:35:06 -07:00
queue.c Queue: Add ability to modify contiguous units inplace 2015-07-15 21:57:36 +00:00
queue.tasklist Unit test for queue implementation 2013-06-10 01:48:46 -07:00
rma_auth.c common: make rma_auth work with the server 2017-10-24 01:53:37 +00:00
rma_auth.tasklist common: Add RMA reset auth challenge-response crypto 2017-10-24 01:53:17 +00:00
rsa.c test/rsa: Add test for RSA with public exponent 3 2016-11-10 21:28:29 -08:00
rsa.tasklist test/rsa: Add test for RSA signature checking 2016-11-09 21:14:17 -08:00
rsa3.tasklist test/rsa: Add test for RSA with public exponent 3 2016-11-10 21:28:29 -08:00
rsa2048-3.h rwsig: Add support for rwsig image types 2017-02-17 04:09:37 -08:00
rsa2048-3.pem test/rsa: Add test for RSA with public exponent 3 2016-11-10 21:28:29 -08:00
rsa2048-F4.h rwsig: Add support for rwsig image types 2017-02-17 04:09:37 -08:00
rsa2048-F4.pem test/rsa: Add test for RSA signature checking 2016-11-09 21:14:17 -08:00
sbs_charging_v2.c cleanup: Rename charge_temp_sensor_get_val() to charge_get_battery_temp() 2016-10-14 18:49:36 -07:00
sbs_charging_v2.tasklist Add charge_state_v2 algorithm for use by Samus 2014-04-01 21:37:32 +00:00
sha256.c sha256: add support for hmac_sha256, and add test for sha256 2017-06-30 17:35:57 +00:00
sha256.tasklist sha256: add support for hmac_sha256, and add test for sha256 2017-06-30 17:35:57 +00:00
shmalloc.c common: introduce malloc/free implementation 2017-01-05 21:13:09 -08:00
shmalloc.tasklist common: introduce malloc/free implementation 2017-01-05 21:13:09 -08:00
stress.c cleanup: Remove big and pit boards 2017-09-11 21:34:10 +00:00
stress.tasklist Add peripheral stress test 2013-04-19 10:41:33 -07:00
system.c Add system_common unit test 2013-07-22 16:09:47 -07:00
system.tasklist Add system_common unit test 2013-07-22 16:09:47 -07:00
test-matrix.bin Add initial keyscan test and key matrix 2012-11-01 17:20:45 -07:00
test_config.h cr50: use run time generated public RMA key definition 2018-04-17 18:44:33 +00:00
thermal.c Correct interpolation algorithm of thermal values. 2016-08-17 22:15:35 -07:00
thermal.tasklist Handle multiple independent sources and types of CPU throttling 2013-09-11 01:49:48 +00:00
timer_calib.c Put test utility macros in header 2013-05-08 18:11:01 -07:00
timer_calib.py fix QEMU OS tests 2012-06-07 20:01:49 -07:00
timer_calib.tasklist Fix timer_calib test 2013-04-15 20:40:03 -07:00
timer_dos.c Fix and enable timer_dos test 2014-01-09 20:26:10 +00:00
timer_dos.tasklist cleanup: Remove checkpatch warnings 2013-12-19 00:12:28 +00:00
timer_jump.py Fix unit tests 2012-07-13 02:10:46 -07:00
timer_jump.tasklist Fix tasklist for tests 2013-04-10 09:35:06 -07:00
usb_pd.c pd: support gotoMin and giveBack 2017-01-26 18:43:52 -08:00
usb_pd.tasklist Add back unit test for usb_pd" 2014-10-04 21:08:48 +00:00
usb_pd_giveback.tasklist pd: support gotoMin and giveBack 2017-01-26 18:43:52 -08:00
usb_pd_test_util.h cleanup: fix all the header guards 2015-06-18 19:07:00 +00:00
utils.c builtin: Expands string.h / stdint.h 2017-02-17 01:46:31 +00:00
utils.tasklist Add a test for testing common utilities 2013-04-13 02:20:09 -07:00
x25519.c curve25519: strip-down, build and test 2017-10-24 01:54:06 +00:00
x25519.tasklist curve25519: strip-down, build and test 2017-10-24 01:54:06 +00:00