diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-16 16:25:09 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-23 18:55:05 +0100 |
commit | 294cf482ea49f690ac9eaad52f2574a90b2e51e6 (patch) | |
tree | a0b7e6505b020d30177a177f607bc514b9b15ed6 /tests | |
parent | f9139dfa6aea6ca8c4054a5b5fff9be484d978fa (diff) |
Convert cipher.hh to plain C
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_ratchet.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_ratchet.cpp b/tests/test_ratchet.cpp index 8f89048..2c8bc1b 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,8 +28,9 @@ 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 *cipher = olm_cipher_aes_sha_256_init( + &cipher0, message_info, sizeof(message_info) - 1 ); std::uint8_t random_bytes[] = "0123456789ABDEF0123456789ABCDEF"; |