Searched refs:Volume (Results 1 - 10 of 10) sorted by relevance

/fuchsia/zircon/system/utest/zxcrypt/
H A Dvolume.cpp23 #define EACH_PARAM(OP, Test) OP(Test, Volume, AES256_XTS_SHA256)
45 EXPECT_EQ(Volume::Create(fbl::move(new_fd), key), expected, err);
50 bool TestCreate(Volume::Version version, bool fvm) {
58 EXPECT_ZX(Volume::Create(fbl::move(bad_fd), device.key()), ZX_ERR_INVALID_ARGS);
72 bool TestUnlock(Volume::Version version, bool fvm) {
79 fbl::unique_ptr<Volume> volume;
80 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), device.key(), 0, &volume),
85 EXPECT_ZX(Volume::Unlock(fbl::move(bad_fd), device.key(), 0, &volume), ZX_ERR_INVALID_ARGS);
92 EXPECT_ZX(Volume::Unlock(fbl::move(device.parent()), bad_key, 0, &volume), ZX_ERR_ACCESS_DENIED);
95 EXPECT_ZX(Volume
[all...]
H A Dzxcrypt.cpp29 #define EACH_PARAM(OP, Test) OP(Test, Volume, AES256_XTS_SHA256)
31 bool TestBind(Volume::Version version, bool fvm) {
44 bool TestDdkGetSize(Volume::Version version, bool fvm) {
65 bool TestBlockGetInfo(Volume::Version version, bool fvm) {
86 bool TestBlockFvmQuery(Volume::Version version, bool fvm) {
139 bool TestBlockFvmVSliceQuery(Volume::Version version, bool fvm) {
149 bool TestBlockFvmShrinkAndExtend(Volume::Version version, bool fvm) {
178 bool TestFdZeroLength(Volume::Version version, bool fvm) {
191 bool TestFdFirstBlock(Volume::Version version, bool fvm) {
205 bool TestFdLastBlock(Volume
[all...]
H A Dtest-device.h26 bool Test##Raw(Volume::Version version) { return Test(version, false /* not FVM */); } \
28 bool Test##Fvm(Volume::Version version) { return Test(version, true /* FVM */); } \
129 bool Bind(Volume::Version version, bool fvm);
192 fbl::unique_ptr<Volume> volume_;
H A Dtest-device.cpp111 case Volume::kAES256_XTS_SHA256:
134 bool TestDevice::Bind(Volume::Version version, bool fvm) {
137 ASSERT_OK(Volume::Create(parent(), key_));
346 ASSERT_OK(Volume::Unlock(parent(), key_, 0, &volume_));
/fuchsia/zircon/system/ulib/zxcrypt/include/zxcrypt/
H A Dvolume.h23 // |zxcrypt::Volume| manages the interactions of both driver and library code with the metadata
41 class Volume final {
57 ~Volume();
71 fbl::unique_ptr<Volume>* out = nullptr);
77 fbl::unique_ptr<Volume>* out);
101 fbl::unique_ptr<Volume>* out);
108 DISALLOW_COPY_ASSIGN_AND_MOVE(Volume);
111 explicit Volume(fbl::unique_fd&& fd);
112 explicit Volume(zx_device_t* dev);
/fuchsia/zircon/system/ulib/zxcrypt/
H A Dvolume.cpp51 const Volume::Version Volume::kDefaultVersion = Volume::kAES256_XTS_SHA256;
59 const uint32_t Volume::kBufferSize = 1U << 24;
60 static_assert(Volume::kBufferSize % PAGE_SIZE == 0, "kBufferSize must be page aligned");
154 Volume::~Volume() {}
158 zx_status_t Volume::Create(fbl::unique_fd fd, const crypto::Secret& key,
159 fbl::unique_ptr<Volume>* out) {
168 fbl::unique_ptr<Volume> volum
357 Volume::Volume(fbl::unique_fd&& fd) : dev_(nullptr), fd_(fbl::move(fd)) { function in class:zxcrypt::Volume
361 Volume::Volume(zx_device_t* dev) : dev_(dev), fd_() { function in class:zxcrypt::Volume
[all...]
/fuchsia/zircon/system/dev/block/zxcrypt/
H A Dworker.h40 zx_status_t Start(Device* device, const Volume& volume, zx::port&& port);
H A Ddevice.cpp39 const uint32_t kMaxTransferSize = Volume::kBufferSize / 4;
116 fbl::unique_ptr<Volume> volume;
117 if ((rc = Volume::Unlock(parent(), root_key, 0, &volume)) != ZX_OK) {
137 if ((rc = zx::vmo::create(Volume::kBufferSize, 0, &info->vmo)) != ZX_OK) {
143 if ((rc = zx::vmar::root_self()->map(0, info->vmo, 0, Volume::kBufferSize, flags, &address)) !=
153 rc = map_.Reset(Volume::kBufferSize / info->block_size);
318 (rc = zx::vmar::root_self()->unmap(address, Volume::kBufferSize)) != ZX_OK) {
319 zxlogf(WARN, "failed to unmap %" PRIu32 " bytes at %" PRIuPTR ": %s\n", Volume::kBufferSize,
H A Dworker.cpp45 zx_status_t Worker::Start(Device* device, const Volume& volume, zx::port&& port) {
/fuchsia/zircon/system/uapp/disk-pave/
H A Dpave-lib.cpp451 fbl::unique_ptr<zxcrypt::Volume> volume;
452 if ((status = zxcrypt::Volume::Create(fbl::move(part->new_part), key, &volume)) != ZX_OK ||

Completed in 55 milliseconds