aboutsummaryrefslogtreecommitdiff
path: root/src/Hash.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-28 10:44:11 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commitfb447b94e369114df0bc96b5c4c20b2cd102bff0 (patch)
tree1dac4f99a3feeb06e94b744163f8dfadb7616245 /src/Hash.cpp
parent2ecdfb3b47882411659a0efe451b0910c85a32f5 (diff)
Add decryption (and caching) of data, even when adding encryption key after data has been added
Diffstat (limited to 'src/Hash.cpp')
-rw-r--r--src/Hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hash.cpp b/src/Hash.cpp
index e46e5ba..364cddd 100644
--- a/src/Hash.cpp
+++ b/src/Hash.cpp
@@ -31,7 +31,7 @@ namespace odhtdb
Hash::Hash(const Hash &other)
{
- memcpy(data, other.data, HASH_BYTE_SIZE);
+ memmove(data, other.data, HASH_BYTE_SIZE);
}
size_t Hash::operator()() const