aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.cpp
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-04-26 11:44:32 +0100
committerRichard van der Hoff <richard@matrix.org>2016-04-26 17:55:26 +0100
commit9848f8445292ad3f7ff92bd4abfeb8f2d08ec32d (patch)
tree36f1f030f71bd16b85e0fe1aa77c42f457a3b168 /src/crypto.cpp
parente7a2af1ede768589e612bad1c61b10186a1bb686 (diff)
Add some logging to help understand what's going on
Diffstat (limited to 'src/crypto.cpp')
-rw-r--r--src/crypto.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto.cpp b/src/crypto.cpp
index 8867688..3801e93 100644
--- a/src/crypto.cpp
+++ b/src/crypto.cpp
@@ -101,6 +101,10 @@ inline static void hmac_sha256_final(
} // namespace
+std::string olm::Curve25519PublicKey::to_string() const {
+ return olm::bytes_to_string(std::begin(public_key),
+ std::end(public_key));
+};
void olm::curve25519_generate_key(
std::uint8_t const * random_32_bytes,