make_pair.sh 518 B

123456789101112131415161718192021222324
  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. # Load common constants and functions.
  8. . "$(dirname "$0")/common.sh"
  9. if [ $# -ne 2 ]; then
  10. cat <<EOF
  11. Usage: $0 <algoid> <out_keypair>
  12. Output: <out_keypair>.vbprivk and <out_keypair>.vbpubk
  13. EOF
  14. exit 1
  15. fi
  16. algoid=$1
  17. out_keypair=$2
  18. make_pair $out_keypair $algoid