| // 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 "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_ |