Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/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 | |
| 11 if [ $# -ne 2 ]; then | |
| 12 cat <<EOF | |
| 13 Usage: $0 <algoid> <out_keypair> | |
| 14 | |
| 15 Output: <out_keypair>.vbprivk and <out_keypair>.vbpubk | |
| 16 EOF | |
| 17 exit 1 | |
| 18 fi | |
| 19 | |
| 20 algoid=$1 | |
| 21 out_keypair=$2 | |
| 22 | |
| 23 make_pair $out_keypair $algoid | |
| OLD | NEW |