Searched refs:volume (Results 1 - 12 of 12) sorted by relevance

/fuchsia/zircon/system/utest/zxcrypt/
H A Dvolume.cpp14 #include <zxcrypt/volume.h>
25 // ZX-1948: Dump extra information if encountering an unexpected error during volume creation.
79 fbl::unique_ptr<Volume> volume; local
80 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume), local
85 EXPECT_ZX(Volume::Unlock(fbl::move(bad_fd), device.key(), 0, &volume), ZX_ERR_INVALID_ARGS); local
92 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), bad_key, 0, &volume), ZX_ERR_ACCESS_DENIED);
95 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), device.key(), -1, &volume), local
97 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), device.key(), 1, &volume), local
101 EXPECT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume)); local
108 EXPECT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume)); local
120 fbl::unique_ptr<Volume> volume; local
121 ASSERT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume)); local
132 EXPECT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 1, &volume)); local
136 EXPECT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume)); local
148 fbl::unique_ptr<Volume> volume; local
149 ASSERT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume)); local
159 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume), local
172 fbl::unique_ptr<Volume> volume; local
173 ASSERT_OK(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume)); local
181 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume), local
[all...]
H A Drules.mk14 $(LOCAL_DIR)/volume.cpp \
H A Dtest-device.cpp31 #include <zxcrypt/volume.h>
H A Dzxcrypt.cpp20 #include <zxcrypt/volume.h>
/fuchsia/zircon/system/dev/block/zxcrypt/
H A Dworker.h14 #include <zxcrypt/volume.h>
39 // |port|. Cryptographic operations will use the key material from the given |volume|.
40 zx_status_t Start(Device* device, const Volume& volume, zx::port&& port);
H A Dworker.cpp18 #include <zxcrypt/volume.h>
45 zx_status_t Worker::Start(Device* device, const Volume& volume, zx::port&& port) { argument
46 LOG_ENTRY_ARGS("device=%p, volume=%p, port=%p", device, &volume, &port);
55 if ((rc = volume.Bind(crypto::Cipher::kEncrypt, &encrypt_)) != ZX_OK ||
56 (rc = volume.Bind(crypto::Cipher::kDecrypt, &decrypt_)) != ZX_OK) {
H A Ddevice.cpp28 #include <zxcrypt/volume.h>
106 // Open the zxcrypt volume. The volume may adjust the block info, so get it again and determine
116 fbl::unique_ptr<Volume> volume; local
117 if ((rc = Volume::Unlock(parent(), root_key, 0, &volume)) != ZX_OK) {
118 zxlogf(ERROR, "failed to unlock volume: %s\n", zx_status_get_string(rc));
133 info->reserved_blocks = volume->reserved_blocks();
134 info->reserved_slices = volume->reserved_slices();
169 if ((rc = workers_[i].Start(this, *volume, fbl::move(port))) != ZX_OK) {
/fuchsia/zircon/system/ulib/zxcrypt/
H A Drules.mk12 $(LOCAL_DIR)/volume.cpp \
H A Dvolume.cpp37 #include <zxcrypt/volume.h>
43 // Several copies of the metadata for a zxcrypt volume is saved at the beginning and end of the
168 fbl::unique_ptr<Volume> volume(new (&ac) Volume(fbl::move(fd)));
174 if ((rc = volume->Init()) != ZX_OK || (rc = volume->CreateBlock()) != ZX_OK ||
175 (rc = volume->SealBlock(key, 0)) != ZX_OK || (rc = volume->CommitBlock()) != ZX_OK) {
180 *out = fbl::move(volume);
195 fbl::unique_ptr<Volume> volume(new (&ac) Volume(fbl::move(fd)));
200 if ((rc = volume
[all...]
/fuchsia/zircon/system/core/devmgr/
H A Dblock-watcher.cpp283 return devmgr_launch(job, "fatfs:/volume",
317 const char* volume = getenv("zircon.system.volume"); local
318 if (volume != nullptr && !strcmp(volume, "any")) {
320 } else if (volume != nullptr && !strcmp(volume, "local")) {
/fuchsia/zircon/system/uapp/disk-pave/
H A Dpave-lib.cpp33 #include <zxcrypt/volume.h>
428 // Formats a block device as a zxcrypt volume.
443 // TODO(security): ZX-1864. The created volume must marked as needing key rotation.
451 fbl::unique_ptr<zxcrypt::Volume> volume; local
452 if ((status = zxcrypt::Volume::Create(fbl::move(part->new_part), key, &volume)) != ZX_OK ||
453 (status = volume->Open(zx::sec(3), &part->new_part)) != ZX_OK) {
454 ERROR("Could not create zxcrypt volume\n");
459 size_t reserved = volume->reserved_slices();
476 ERROR("Failed to extend zxcrypt volume: %s\n", zx_status_get_string(status));
629 LOG("Creating zxcrypt volume\
[all...]
H A Ddevice-partitioner.cpp18 #include <zxcrypt/volume.h>

Completed in 101 milliseconds