commit | aef1c6f0b5a0059a103251a9a93bd0be43bd50a2 | [log] [tgz] |
---|---|---|
author | Sen Jiang <senj@google.com> | Wed Oct 07 10:05:32 2015 -0700 |
committer | Sen Jiang <senj@google.com> | Tue Oct 20 14:29:22 2015 -0700 |
tree | 449ca1323764d609b5fd3c3bd721a8e232726fc9 | |
parent | 35b3584ab4041aa32e1d049bd6ddff5941b03df2 [diff] |
PayloadVerifier should not depend on DeltaPerformer to load payload. The implementation in DeltaPerformer is designed for situation that payload might only partially available, but in PayloadVerifier we already have the whole payload. So I implemented LoadPayload in PayloadSigner which logic is simpler and supports both version 1 and 2. VerifySignedPayload is also moved to PayloadSigner since it's not used in update engine daemon. This patch also fixed wrong metadata size out in version 2 and misspelling of metadata in WritePayload in PayloadFile. Bug: 23981164 TEST=unit test added. Change-Id: Id1917fc891dbf2075978a273d1a4ee3c4ecf0571