blob: 0824cc796f720557e5dc17a96d3c92c5efaed5a4 [file] [log] [blame]
// Copyright 2021 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_TESTING_ZXCRYPT_H_
#define SRC_STORAGE_TESTING_ZXCRYPT_H_
#include <lib/zx/status.h>
#include <string>
namespace storage {
// Formats the given block device with a new zxcrypt volume and then unseals the newly created
// volume, waiting for the block device to appear before returning.
//
// Returns the path to the newly created zxcrypt volume.
zx::status<std::string> CreateZxcryptVolume(const std::string& device_path);
} // namespace storage
#endif // SRC_STORAGE_TESTING_ZXCRYPT_H_