Debian Codegraph @

3rdparty/vboot/scripts/keygeneration/make_pair.sh

raw symbols SCIP
1 #!/bin/bash
2 # Copyright 2011 The ChromiumOS Authors
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 # shellcheck source=common.sh
10 . "$(dirname "$0")/common.sh"
11
12 if [ $# -ne 2 ]; then
13 cat <<EOF
14 Usage: $0 <algoid> <out_keypair>
15
16 Output: <out_keypair>.vbprivk and <out_keypair>.vbpubk
17 EOF
18 exit 1
19 fi
20
21 algoid=$1
22 out_keypair=$2
23
24 make_pair $out_keypair $algoid