mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 19:53:42 +00:00
bdb: Add test for futility bdb --resign
BUG=chromium:649554 BRANCH=none TEST=make runtests Change-Id: Id33911a1a05375f860c38ee6df3f98fa59066acf Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/388734 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
9e8d3746ac
commit
c3f8de399b
@@ -37,6 +37,22 @@ ${FUTILITY} bdb --add ${BDB_FILE} \
|
|||||||
--data ${DATA_FILE} --partition 1 --type 2 --offset 3 --load_address 4
|
--data ${DATA_FILE} --partition 1 --type 2 --offset 3 --load_address 4
|
||||||
# TODO: Use futility show command to verify the hash is added
|
# TODO: Use futility show command to verify the hash is added
|
||||||
|
|
||||||
|
# Demonstrate futility bdb --resign can resign the BDB
|
||||||
|
${FUTILITY} bdb --resign ${BDB_FILE} --datakey_pri ${DATAKEY_PRI}
|
||||||
|
verify
|
||||||
|
|
||||||
|
# Demonstrate futility bdb --resign can resign with a new data key
|
||||||
|
# Note resigning with a new data key requires a private BDB key as well
|
||||||
|
${FUTILITY} bdb --resign ${BDB_FILE} \
|
||||||
|
--bdbkey_pri ${BDBKEY_PRI} \
|
||||||
|
--datakey_pri ${BDBKEY_PRI} --datakey_pub ${BDBKEY_PUB}
|
||||||
|
verify
|
||||||
|
|
||||||
|
# Demonstrate futility bdb --resign can resign with a new BDB key
|
||||||
|
${FUTILITY} bdb --resign ${BDB_FILE} \
|
||||||
|
--bdbkey_pri ${DATAKEY_PRI} --bdbkey_pub ${DATAKEY_PUB}
|
||||||
|
verify ${DATAKEY_DIGEST}
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm -rf ${TMP}*
|
rm -rf ${TMP}*
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user