OSDN Git Service

verity_verifier: Support verifying images with FEC.
authorTao Bao <tbao@google.com>
Tue, 18 Oct 2016 20:02:14 +0000 (13:02 -0700)
committerTao Bao <tbao@google.com>
Fri, 18 Nov 2016 17:51:43 +0000 (09:51 -0800)
commitbb634ff8dab6327bd38eadee22d5f8ec9d3940d0
tree2dd9a93425c0d196267b69105c6d332048ed9670
parentba27872adb19eb5a35989602e85785812cd77f3d
verity_verifier: Support verifying images with FEC.

The current VerityVerifier.jar cannot verify verity images with FEC
metadata (since N). Replace it with a new verity verifier that uses
libfec to parse and verify verity metadata.

It accepts the same command line arguments as the old verity_verifier
script.

Usage: verity_verifier <image> -mincrypt <verity_key>
  image       the image file (raw or sparse image) to be verified
  verity_key  the verity key in mincrypt format (/verity_key on device)

Bug: 32173582
Test: $ verity_verifier $OUT/system.img -mincrypt $OUT/root/verity_key
      VERIFIED
Change-Id: I8624973715dcd0f6d89d408c1c97bf584b50ce06
verity/Android.mk
verity/VerityVerifier.java [deleted file]
verity/VerityVerifier.mf [deleted file]
verity/verity_verifier [deleted file]
verity/verity_verifier.cpp [new file with mode: 0644]