blob: 9f531b2d9b8cc10486ed2f5ad180f3475522c20f [file] [log] [blame] [edit]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIBHWSEC_FRONTEND_ATTESTATION_FRONTEND_H_
#define LIBHWSEC_FRONTEND_ATTESTATION_FRONTEND_H_
#include <brillo/secure_blob.h>
#include "libhwsec/frontend/frontend.h"
#include "libhwsec/status.h"
namespace hwsec {
class AttestationFrontend : public Frontend {
public:
~AttestationFrontend() override = default;
virtual StatusOr<brillo::SecureBlob> Unseal(
const brillo::Blob& sealed_data) = 0;
virtual StatusOr<brillo::Blob> Seal(
const brillo::SecureBlob& unsealed_data) = 0;
};
} // namespace hwsec
#endif // LIBHWSEC_FRONTEND_ATTESTATION_FRONTEND_H_