3
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4
# Use of this source code is governed by a BSD-style license that can be
5
# found in the LICENSE file.
7
# Generate test vboot public keys and keyblocks for testing.
9
# Load common constants and variables.
10
. "$(dirname "$0")/common.sh"
12
function generate_vpubks {
14
for keylen in ${key_lengths[@]}
16
for hashalgo in ${hash_algos[@]}
18
${UTIL_DIR}/vbutil_key --pack \
19
--in ${TESTKEY_DIR}/key_rsa${keylen}.keyb \
20
--out ${TESTKEY_DIR}/key_rsa${keylen}.${hashalgo}.vbpubk \
22
--algorithm ${algorithmcounter}
23
let algorithmcounter=algorithmcounter+1