blob: e82141b456a4cdf1802a1af00cc37e8deb444c09 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_STORAGE_FSHOST_ENCRYPTED_VOLUME_H_
#define SRC_STORAGE_FSHOST_ENCRYPTED_VOLUME_H_
#include <zircon/types.h>
#include <fbl/unique_fd.h>
#include "src/storage/fshost/encrypted-volume-interface.h"
namespace devmgr {
class EncryptedVolume final : public EncryptedVolumeInterface {
public:
EncryptedVolume(fbl::unique_fd fd, fbl::unique_fd devfs_root);
zx_status_t Unseal();
zx_status_t Format();
private:
fbl::unique_fd fd_;
fbl::unique_fd devfs_root_;
};
} // namespace devmgr
#endif // SRC_STORAGE_FSHOST_ENCRYPTED_VOLUME_H_