This is an automated email from the ASF dual-hosted git repository. ccollins pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-artifact.git.
from 441a611 Merge pull request #1 from ccollins476ad/verify new 23225d4 Support verification of encrypted images new d5de4c2 image: Add tests for encrypted images The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: image/create.go | 45 +--- image/image.go | 170 ++++++++++++- image/image_test.go | 130 +++++++--- image/keys_test.go | 2 +- image/testdata/enc-key-pub.der | Bin 0 -> 270 bytes image/testdata/enc-key-pub.pem | 9 + image/testdata/enc-key.der | Bin 0 -> 1190 bytes image/testdata/enc-key.pem | 27 ++ image/testdata/good-signed-encrypted.img | Bin 0 -> 9940 bytes ...d-signature.json => good-signed-encrypted.json} | 8 +- ...good-signed.img => good-signed-unencrypted.img} | Bin ...od-signed.json => good-signed-unencrypted.json} | 0 ...-unsigned.img => good-unsigned-unencrypted.img} | Bin ...nsigned.json => good-unsigned-unencrypted.json} | 0 image/testdata/sign-key-pub.pem | 9 + image/testdata/wrong-enc-key.img | Bin 0 -> 9940 bytes .../{bad-signature.json => wrong-enc-key.json} | 8 +- image/v1.go | 18 +- image/verify.go | 175 ++++++++++--- mfg/mfg_test.go | 46 ++-- mfg/verify.go | 85 +++++-- sec/encrypt.go | 127 +++++++++- sec/key.go | 282 --------------------- sec/read.go | 107 ++++++++ sec/sig.go | 74 ------ sec/{key.go => sign.go} | 211 ++++++--------- sec/util.go | 28 ++ 27 files changed, 893 insertions(+), 668 deletions(-) create mode 100644 image/testdata/enc-key-pub.der create mode 100644 image/testdata/enc-key-pub.pem create mode 100644 image/testdata/enc-key.der create mode 100644 image/testdata/enc-key.pem create mode 100644 image/testdata/good-signed-encrypted.img copy image/testdata/{bad-signature.json => good-signed-encrypted.json} (99%) rename image/testdata/{good-signed.img => good-signed-unencrypted.img} (100%) rename image/testdata/{good-signed.json => good-signed-unencrypted.json} (100%) rename image/testdata/{good-unsigned.img => good-unsigned-unencrypted.img} (100%) rename image/testdata/{good-unsigned.json => good-unsigned-unencrypted.json} (100%) create mode 100644 image/testdata/sign-key-pub.pem create mode 100644 image/testdata/wrong-enc-key.img copy image/testdata/{bad-signature.json => wrong-enc-key.json} (99%) create mode 100644 sec/read.go delete mode 100644 sec/sig.go copy sec/{key.go => sign.go} (54%) create mode 100644 sec/util.go