You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/06/21 21:25:47 UTC

[mynewt-artifact] 23/23: Merge pull request #1 from ccollins476ad/verify

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-artifact.git

commit 441a611715c43c6995b119d674f72869af829601
Merge: b7033fa ced5960
Author: ccollins476ad <cc...@apache.org>
AuthorDate: Fri Jun 21 14:25:20 2019 -0700

    Merge pull request #1 from ccollins476ad/verify
    
    Add "verify" functionality

 .gitignore                                   |   23 +
 LICENSE                                      |  311 ++++
 NOTICE                                       |    8 +
 README.md                                    |   28 +
 errors/errors.go                             |   92 ++
 flash/flash.go                               |    6 +-
 go.mod                                       |   10 +
 go.sum                                       |   19 +
 image/create.go                              |   35 +-
 image/image.go                               |  347 +---
 image/image_test.go                          |  218 +++
 image/keys_test.go                           |   61 +-
 image/map.go                                 |  100 ++
 image/parse.go                               |  219 +++
 image/testdata/bad-hash.img                  |  Bin 0 -> 9412 bytes
 image/testdata/bad-signature.img             |  Bin 0 -> 9680 bytes
 image/testdata/bad-signature.json            | 2267 ++++++++++++++++++++++++++
 image/testdata/garbage.img                   |    1 +
 image/testdata/good-signed.img               |  Bin 0 -> 9680 bytes
 image/testdata/good-signed.json              | 2267 ++++++++++++++++++++++++++
 image/testdata/good-unsigned.img             |  Bin 0 -> 9412 bytes
 image/testdata/good-unsigned.json            | 2267 ++++++++++++++++++++++++++
 image/testdata/mismatch-hash.img             |  Bin 0 -> 9412 bytes
 image/testdata/mismatch-hash.json            | 2267 ++++++++++++++++++++++++++
 image/testdata/mismatch-version.img          |  Bin 0 -> 9412 bytes
 image/testdata/mismatch-version.json         | 2267 ++++++++++++++++++++++++++
 image/testdata/sign-key-pub.der              |  Bin 0 -> 270 bytes
 image/testdata/sign-key.pem                  |   27 +
 image/testdata/truncated.img                 |  Bin 0 -> 9000 bytes
 image/v1.go                                  |   57 +-
 image/verify.go                              |  106 ++
 manifest/manifest.go                         |   29 +-
 manifest/mfg_manifest.go                     |  108 +-
 mfg/map_meta.go                              |   19 +-
 mfg/meta.go                                  |  149 +-
 mfg/mfg.go                                   |  139 +-
 mfg/mfg_test.go                              |  248 +++
 mfg/parse.go                                 |  137 ++
 mfg/testdata/garbage.bin                     |    1 +
 mfg/testdata/garbage.json                    |   78 +
 mfg/testdata/hash1-fm1-ext0-tgts1-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hash1-fm1-ext0-tgts1-sign0.json |   78 +
 mfg/testdata/hash1-fm1-ext1-tgts1-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hash1-fm1-ext1-tgts1-sign0.json |   85 +
 mfg/testdata/hash1-fm1-ext1-tgts1-sign1.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hash1-fm1-ext1-tgts1-sign1.json |   91 ++
 mfg/testdata/hash1-fm1-ext1-tgtsm-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hash1-fm1-ext1-tgtsm-sign0.json |   92 ++
 mfg/testdata/hash1-fm1-extm-tgts1-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hash1-fm1-extm-tgts1-sign0.json |   85 +
 mfg/testdata/hash1-fmm-ext1-tgts1-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hash1-fmm-ext1-tgts1-sign0.json |   85 +
 mfg/testdata/hashm-fm1-ext0-tgts1-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hashm-fm1-ext0-tgts1-sign0.json |   78 +
 mfg/testdata/hashx-fm1-ext0-tgts1-sign0.bin  |  Bin 0 -> 42448 bytes
 mfg/testdata/hashx-fm1-ext0-tgts1-sign0.json |   78 +
 mfg/testdata/sign-key-pub.der                |  Bin 0 -> 270 bytes
 mfg/testdata/sign-key.pem                    |   27 +
 mfg/testdata/unknown-tlv.bin                 |  Bin 0 -> 42448 bytes
 mfg/testdata/unknown-tlv.json                |   78 +
 mfg/verify.go                                |  221 +++
 misc/misc.go                                 |   28 -
 sec/encrypt.go                               |   10 +-
 sec/key.go                                   |  111 +-
 sec/sig.go                                   |   74 +
 65 files changed, 14526 insertions(+), 606 deletions(-)