aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov/tpm
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/prov/tpm')
-rw-r--r--src/lib/prov/tpm/tpm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/prov/tpm/tpm.cpp b/src/lib/prov/tpm/tpm.cpp
index ffbc220d6..5516d41a0 100644
--- a/src/lib/prov/tpm/tpm.cpp
+++ b/src/lib/prov/tpm/tpm.cpp
@@ -113,7 +113,7 @@ TSS_UUID to_tss_uuid(const UUID& uuid)
static_assert(sizeof(TSS_UUID) == 16, "Expected size of packed UUID");
TSS_UUID tss_uuid;
- std::memcpy(&tss_uuid, uuid.binary_value().data(), 16);
+ typecast_copy(tss_uuid, uuid.binary_value().data());
return tss_uuid;
}
@@ -122,7 +122,7 @@ UUID from_tss_uuid(const TSS_UUID& tss_uuid)
static_assert(sizeof(TSS_UUID) == 16, "Expected size of packed UUID");
std::vector<uint8_t> mem(16);
- std::memcpy(mem.data(), &tss_uuid, 16);
+ typecast_copy(mem.data(), tss_uuid);
UUID uuid(std::move(mem));
return uuid;
}