blob: cd5d0c100220eb104a2dd73a2cb047ddabb0dda2 [file] [log] [blame]
Gaurav Shah57468452011-03-02 14:50:46 -08001#!/bin/bash
2# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5#
6# Generate .vbpubk and .vbprivk pairs with the given algorithm id.
7
8# Load common constants and functions.
9. "$(dirname "$0")/common.sh"
10
11if [ $# -ne 2 ]; then
12 cat <<EOF
13Usage: $0 <algoid> <out_keypair>
14
15Output: <out_keypair>.vbprivk and <out_keypair>.vbpubk
16EOF
17 exit 1
18fi
19
20algoid=$1
21out_keypair=$2
22
23make_pair $out_keypair $algoid