2tpm_bootmode.h 610 B

12345678910111213141516171819202122
  1. /* Copyright 2015 The Chromium OS Authors. All rights reserved.
  2. * Use of this source code is governed by a BSD-style license that can be
  3. * found in the LICENSE file.
  4. *
  5. * Functions for updating the TPM state with the status of boot path.
  6. */
  7. #ifndef VBOOT_REFERENCE_2TPM_BOOTMODE_H_
  8. #define VBOOT_REFERENCE_2TPM_BOOTMODE_H_
  9. #include "2api.h"
  10. /**
  11. * Return digest indicating the boot state
  12. *
  13. * @param ctx Vboot context
  14. * @return Pointer to sha1 digest of size VB2_SHA1_DIGEST_SIZE
  15. */
  16. const uint8_t *vb2_get_boot_state_digest(struct vb2_context *ctx);
  17. #endif /* VBOOT_REFERENCE_2TPM_BOOTMODE_H_ */