#!/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 "$@"

Add a script to generate a keypair for signing wand firmware.
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 <cddf73c2eeb445eb5022e73c23b1c49a27aefb07@chromium.org>
Tested-by: Marco Chen <cddf73c2eeb445eb5022e73c23b1c49a27aefb07@chromium.org>
Reviewed-by: Nicolas Boichat <f3daba1cdc403799935674d3cd4b0e5bd1804232@chromium.org>
