#!/usr/bin/env bash # Copyright (c) Edgeless Systems GmbH # # SPDX-License-Identifier: AGPL-3.0-only # This script is used to precalculate the PCR[4] value for a Constellation OS image. # Usage: precalculate_pcr_4.sh set -euo pipefail source "$(dirname "$0")/measure_util.sh" ev_efi_action_sha256=3d6772b4f84ed47595d72a2c4c5ffd15f5bb72c7507fe26f2aaee2c69d5633ba ev_efi_separator_sha256=df3f619804a92fdb4057192dc43dd748ea778adc52bc498ce80524c014b81119 authentihash () { local path="$1" "$(dirname "$0")/extract_authentihash.py" "${path}" } write_output () { local out="$1" cat > "${out}" <