blob: 5b375b3406ede920fb8070200cc5bfc78b1c187b [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package hwsec
import (
// TPMClearer is an interface of to clear the TPM.
type TPMClearer interface {
// PreClearTPM should be called before stop high-level TPM daemons
PreClearTPM(ctx context.Context) error
// ClearTPM should be called before clean the data on device
ClearTPM(ctx context.Context) error
// PostClearTPM should be called after clean the data on device
PostClearTPM(ctx context.Context) error
// SystemStateFiles represents the files that contining system states.
var SystemStateFiles = []string{
"/home/chronos/Local State",