tree: 52037d12b8af3a57e78adc7b65d42e85c8275130 [path history] [tgz]
  1. keysets/
  2. tmp/
  3. aesgcm.py
  4. ec_helper.py
  5. ec_helper_native.c
  6. Makefile
  7. provision-test.py
  8. README.md
partner-tools/README.md

Key Provisioning Test Suite

This directory contains a test script to verify that a device works with the Android Things key provisioning protocol. Usage:

./provision-test.py -a [p256|x25519] -s FASTBOOT_SERIAL_NUMBER -o [ISSUE|ISSUE_ENC]

Dependencies

Install openssl, python cryptography, pycurve25519. Build ec_helper_native.so in this directory ($ make ec_helper_native). Build and install fastboot from AOSP master.

How to get key sets

provision-test.py looks for key set payloads unencryped.keyset and encrypted.keyset and under the keysets/ directory. Provided here are files that contain test keys that do not verify to the real Android Things Root CA. unencrypted.keyset is simply a raw CA Response Message. encrypted.keyset encrypts unencrypted.keyset with a global key of 16 zero bytes.