diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-24 13:33:33 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-24 13:33:33 +0100 |
commit | 2e7800cf650197f4b8998ef8ac24d08daa316a2f (patch) | |
tree | 1f9e5e06b755f929c7bad363b77eaafdd21d706c /tests/test_ratchet.cpp | |
parent | b1c5732fc8c89ee9217d0f54408f860565fa01f4 (diff) | |
parent | 2fd28a66824bda7b86c08b065736009c39761987 (diff) |
Merge branch 'rav/c_bindings'
Diffstat (limited to 'tests/test_ratchet.cpp')
-rw-r--r-- | tests/test_ratchet.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_ratchet.cpp b/tests/test_ratchet.cpp index 8f89048..2f8412e 100644 --- a/tests/test_ratchet.cpp +++ b/tests/test_ratchet.cpp @@ -13,7 +13,7 @@ * limitations under the License. */ #include "olm/ratchet.hh" -#include "olm/cipher.hh" +#include "olm/cipher.h" #include "unittest.hh" @@ -28,9 +28,8 @@ olm::KdfInfo kdf_info = { ratchet_info, sizeof(ratchet_info) - 1 }; -olm::CipherAesSha256 cipher( - message_info, sizeof(message_info) - 1 -); +_olm_cipher_aes_sha_256 cipher0 = OLM_CIPHER_INIT_AES_SHA_256(message_info); +_olm_cipher *cipher = OLM_CIPHER_BASE(&cipher0); std::uint8_t random_bytes[] = "0123456789ABDEF0123456789ABCDEF"; olm::Curve25519KeyPair alice_key; |