diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-13 12:56:23 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-23 18:55:05 +0100 |
commit | e533b0dc8ef606aa808b38d2f49d9baf438dae47 (patch) | |
tree | 5d49a825bdfbc9e3a71d96c357ab9375fb17b695 /src/session.cpp | |
parent | 4f1bb49d20ff7e9583a764b5d7d6d6cd9dc26870 (diff) |
Give SHA256 functions C bindings
Diffstat (limited to 'src/session.cpp')
-rw-r--r-- | src/session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.cpp b/src/session.cpp index 86ba63b..85c958c 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -192,7 +192,7 @@ std::size_t olm::Session::new_inbound_session( std::size_t olm::Session::session_id_length() { - return olm::SHA256_OUTPUT_LENGTH; + return SHA256_OUTPUT_LENGTH; } @@ -208,7 +208,7 @@ std::size_t olm::Session::session_id( pos = olm::store_array(pos, alice_identity_key.public_key); pos = olm::store_array(pos, alice_base_key.public_key); pos = olm::store_array(pos, bob_one_time_key.public_key); - olm::sha256(tmp, sizeof(tmp), id); + crypto_sha256(tmp, sizeof(tmp), id); return session_id_length(); } |