Create new constants for key lengths, etc
We were using olm::KEY_LENGTH for everything under the sun which happened to be 32 bytes long, and making a bunch of assumptions in the process. Create a bunch of new constants (as C #defines rather than C++ consts so that I can use them in another forthcoming refactor).
Showing
- include/olm/crypto.h 30 additions, 1 deletioninclude/olm/crypto.h
- include/olm/crypto.hh 5 additions, 10 deletionsinclude/olm/crypto.hh
- include/olm/ratchet.hh 6 additions, 1 deletioninclude/olm/ratchet.hh
- src/account.cpp 5 additions, 5 deletionssrc/account.cpp
- src/cipher.cpp 8 additions, 4 deletionssrc/cipher.cpp
- src/crypto.cpp 2 additions, 2 deletionssrc/crypto.cpp
- src/olm.cpp 5 additions, 5 deletionssrc/olm.cpp
- src/ratchet.cpp 14 additions, 13 deletionssrc/ratchet.cpp
- src/session.cpp 26 additions, 25 deletionssrc/session.cpp
- src/utility.cpp 1 addition, 1 deletionsrc/utility.cpp
- tests/test_crypto.cpp 1 addition, 1 deletiontests/test_crypto.cpp
Loading
Please register or sign in to comment