aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.cpp
diff options
context:
space:
mode:
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,