summaryrefslogtreecommitdiff
path: root/scripts/keygeneration
diff options
context:
space:
mode:
authorPatrick Berny <pberny@chromium.org>2018-04-18 19:44:09 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-20 00:33:15 -0700
commitcbfb60ff478c6efd77a00b9d871045261e8dde17 (patch)
tree7073bc8b375381099679fdc6086437cbf7424807 /scripts/keygeneration
parent1493e938e45535f86b7132a83123c6319eacb217 (diff)
downloadvboot-cbfb60ff478c6efd77a00b9d871045261e8dde17.tar.gz
whiskers: Add script to generate keypair for signing FW
Whiskers 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_whiskers*. BUG=b:78254017 TEST=Run this script in the chroot and verify the generated key pair. BRANCH=None Change-Id: Iae7097a3b2da1b134fa1a986c669704bbbaca4e9 Reviewed-on: https://chromium-review.googlesource.com/1018591 Commit-Ready: Patrick Berny <pberny@chromium.org> Tested-by: Patrick Berny <pberny@chromium.org> Reviewed-by: Jason Clinton <jclinton@chromium.org> Reviewed-by: Bob Moragues <moragues@chromium.org>
Diffstat (limited to 'scripts/keygeneration')
-rwxr-xr-xscripts/keygeneration/accessory/create_new_whiskers_keys.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/keygeneration/accessory/create_new_whiskers_keys.sh b/scripts/keygeneration/accessory/create_new_whiskers_keys.sh
new file mode 100755
index 00000000..7439bc49
--- /dev/null
+++ b/scripts/keygeneration/accessory/create_new_whiskers_keys.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Copyright 2018 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 "whiskers" "$@"
+}
+
+main "$@"