summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Chen <marcochen@chromium.org>2018-04-03 09:33:11 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-04-02 22:42:57 -0700
commit96766893f35e25c0dffe9e7961c5f74728479772 (patch)
tree4b20a163233ffcc90e15fa2410402b8030912f0f
parent4e8571f40d96577046705f064a49ede36096e6e6 (diff)
downloadvboot-96766893f35e25c0dffe9e7961c5f74728479772.tar.gz
Add a script to generate a keypair for signing wand firmware.
Wand decided to leverage the key format of Hammer therefore this script calls Hammer's one to generate a key pair and renames them to key_wand*. BUG=b:73799441 TEST=Run this script in the chroot and verify the generated key pair. BRANCH=None Change-Id: Id2749d78e0632bee66c09c4ee7aa1930534157b7 Reviewed-on: https://chromium-review.googlesource.com/991532 Commit-Ready: Marco Chen <marcochen@chromium.org> Tested-by: Marco Chen <marcochen@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rwxr-xr-xscripts/keygeneration/accessory/create_new_wand.keys.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/keygeneration/accessory/create_new_wand.keys.sh b/scripts/keygeneration/accessory/create_new_wand.keys.sh
new file mode 100755
index 00000000..5622a827
--- /dev/null
+++ b/scripts/keygeneration/accessory/create_new_wand.keys.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Copyright 2017 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Load common constants and functions.
+. "$(dirname "$0")/common_leverage_hammer.sh"
+
+main() {
+ set -e
+
+ leverage_hammer_to_create_key "wand" "$@"
+}
+
+main "$@"