aboutsummaryrefslogtreecommitdiff
path: root/src/Signature.cpp
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-04-28 10:44:11 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-04-28 10:44:22 +0200
commit54d8ae4c335c21290dc41e5ba4701b3c19bba601 (patch)
treef381e10e071e1800e8e5ca69701fe25e58dbd837 /src/Signature.cpp
parent166e132873fccf62327d2190fe1d827d89a5db63 (diff)
Add decryption (and caching) of data, even when adding encryption key after data has been added
Diffstat (limited to 'src/Signature.cpp')
-rw-r--r--src/Signature.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Signature.cpp b/src/Signature.cpp
index 3fd52ee..9f44ad2 100644
--- a/src/Signature.cpp
+++ b/src/Signature.cpp
@@ -122,5 +122,11 @@ namespace odhtdb
{
}
+
+ KeyPair::KeyPair(const KeyPair &other)
+ {
+ memmove(publicKey.data, other.publicKey.data, PUBLIC_KEY_NUM_BYTES);
+ memmove(privateKey.data, other.privateKey.data, PRIVATE_KEY_NUM_BYTES);
+ }
}
}