keymaster: add test to verify blob upgrade

Use keystore to verify blob upgrade:
 - install blobv1 firmware
 - generate a key, use it to encrypt/decrypt
 - install latest f/w (blobv2) firmware
 - attempt to decrypt ciphertext generated by blobv1
 - watch UART to check that blob was upgraded

Bug: 124308804
Test: passes
Change-Id: Ib7872b15ac1b7f7e5a3e89df728548125e310611
Signed-off-by: nagendra modadugu <ngm@google.com>
4 files changed
tree: 5c56a982e1915e6d9dbd78a440ae525aa1035dfd
  1. scripts/
  2. src/
  3. tools/
  4. .checkpatch.conf
  5. .clang-format
  6. .gitignore
  7. Android.bp
  8. BUILD
  9. LICENSE
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. NOTICE
  13. README.md
  14. WORKSPACE
README.md

Citadel Test Harness

This project houses the code needed to run tests from a host connected to the citdadel chip.

Requirements

  • Software
  • bazel
  • build-essential
  • gcc-arm-none-eabi
  • Hardware
  • FPGA test setup with ultradebug or Citadel test board

Quickstart

The command to run the tests from a host machine is:

bazel run runtests

On Android run:

mmma -jnproc external/nos Make sure verity is disabled and the system partion is remounted then run: adb sync adb citadel_integration_tests