Themis v0.11.0 Release Notes

Release Date: 2019-03-28 // about 5 years ago
  • ๐Ÿš€ 0.11.0, March 28th 2019

    TL;DR: Added Rust Themis, added Carthage distribution for iOS and Maven distribution for Android. Improved Secure Message API and propagated it to all our language wrappers.

    โœ… We found that Themis is now recommended by OWASP as data encryption library for mobile platforms.

    ๐Ÿ’ฅ Breaking changes: We renamed rubythemis to rbthemis as a beginning of a tradition of gentle deprecations, with timely warning of all the users that can potentially be affected. We removed themis_version() function that allowed checking Themis' version at run-time (with no replacement function).

    Code:

    Core

    ๐Ÿ›  Fixes in Soter (low-level security core used by Themis):

    - 
    

    ๐Ÿ›  Fixed possible null pointer deference caused by the misusage of short-circuit evaluation. Huge thanks to @movie-travel-code for pointing out (#315, #314).

    - 
    

    ๐Ÿ›  Fixed crash in Secure Message when RSA keys are used incorrectly (swapped or empty) โ€“ a shoutout for @ilammy and @secumod for fixing this (#334).

    - 
    

    ๐Ÿ›  Fixed issue with RSA key generator silently truncating private keys โ€“ our gratitude going out to @ilammy and @secumod again (#335).

    - 
    

    ๐Ÿ›  Fixed crash that occured on re-using Secure Comparator with BoringSSL โ€“ thanks to @ilammy and @secumod for this fix (#347).

    - 
    

    ๐Ÿ›  Fixed overflow during Secure Cell decryption in Seal mode - thanks to @ilammy and his skills in fuzz testing (#367).

    - 
    

    ๐Ÿ‘Œ Improved the test suite to catch more corner cases, including with OpenSSL-specific issues (#323, #319).

    Secure Session

    - 
    

    โž• Added additional safety tests for Secure Session: return error if clientID is empty (thanks @deszip for asking tough questions and mis-using clientID) (#386).

    - 
    

    Described thread safety code practices when using Secure Session.

    Secure Message

    - 
    

    โšก๏ธ Updated Secure Message API: divided the wrap function into encrypt and sign, and the unwrap function into decrypt and verify. The new API has more intuitive naming and should be harder to misuse, with encrypt/decrypt and sign/verify API clearly named and separated.

    A common mistake with the old API was that users could accidentally use sign/verify API instead of encryption because they didn't provide a private key. The new API features more strict checks and prevents this kind of mistake.

    This change doesn't affect the language wrappers you are using, so no code changes are required from you.

    ๐Ÿ“š Documentation for the new API calls is available in the Wiki documentation and for each language separately (in their Howtos).

    (#389).

    - 
    

    ๐Ÿ›  Fixed a potential memory leak in Secure Message encryption and decryption (#398).

    Code quality

    - 
    

    Cleaned up circular dependencies in header files. This change has made the code cleaner and the compilation time faster (#392).

    - 
    

    ๐Ÿ‘Œ Improved code quality by fixing warnings from various compiler flags (-Wall -Wextra -Wformat-security -Wnull-dereference -Wshift-overflow and so on) (#377).

    - 
    

    โœ… Formatted the code using clang-format and clang-tidy, added automated formatting for core and tests (#418, #399, #397, #396, #395).

    Other changes

    - 
    

    ๐Ÿ‘Œ Improved and refactored our Great Makefile to be more stable, more user-friendly, and to support OS-specific issues (#417, #413, #348, #346, #345, #343, #321).

    - 
    

    โœ‚ Removed themis_version() function and all related API for querying Themis and Soter versions at run-time. There is no replacement for it and this is obviously a breaking change (#388).

    Rust

    Introduced Rust Themis wrapper, all work done by brilliant @ilammy!

    ๐Ÿ“ฆ Rust Themis supports the same functionality as other Themis wrappers: Secure Cell, Secure Message, Secure Session, and Secure Comparator. Rust Themis package is available through crates.io, examples are stored in docs/examples/rust, the HowTo guide is available in Wiki.

    (#419, #405, #403, #390, #383, #382, #381, #380, #376, #375, #374, #373, #372, #365, #363, #362, #358, #357, #356, #353, #349, #340).

    ๐ŸŽ iOS and macOS

    โž• Added Carthage support. Now users can add Themis to their Cartfile using github "cossacklabs/themis".

    ๐Ÿ“„ More details available in Objective-C Howto and Swift Howto on wiki. Example projects available in docs/examples/objc and docs/examples/swift/ folders.

    (#432, #430, #428, #427).

    โž• Added BoringSSL support, now users can select which crypto-engine they want to include. This change affects only Themis CocoaPod: users can add Themis based on BoringSSL to their Podfile using pod 'themis/themis-boringssl' (#351, #331, #330, #329).

    โž• Added bitcode support. This affects only Themis CocoaPod that uses OpenSSL โ€“ thanks @deszip and @popaaaandrei (#407, #355, #354).

    โž• Added compatibility for Swift frameworks. Now Themis can be used directly from Swift without Bridging header file, kudos to @popaaaandrei for pointing on this out (#416, #415).

    โšก๏ธ Updated code to use the latest Secure Message API (see description of core changes above). This change doesn't affect user-facing code so no code changes are required from users (#393).

    โšก๏ธ Updated error codes and error messages for all crypto systems, now errors and logs are more user-friendly and understandable (#394, #393).

    ๐Ÿ‘Œ Improved code quality here and there (#317).

    Dropped feature flag SECURE_COMPARATOR_ENABLED because it's redundant: Secure Comparator is enabled by default (#429).

    ๐ŸŽ macOS specific

    • Added Homebrew support for Themis Core. Now users can install Themis Core library using brew tap cossacklabs/tap && brew update && brew install libthemis. This is useful when you're developing on macOS.

    ๐ŸŽ More details can be found in the Installation guide.

    C++

    ๐Ÿ‘Œ Improved Secure Session memory behavior (now users can move and copy Secure Session objects and callbacks) (#370, #369).

    ๐Ÿ‘ Allowed to link ThemisPP as header-only library by adding "inline" functions โ€“ thanks @deszip for pushing us. Check for detailed instructions in C++ wiki (#371).

    Added support of smart pointer constructors for Secure Session, now users should use std::shared_ptr<secure_session_callback_interface_t> constructor (#378).

    โž• Added functions for key validation: now you can check if keypairs are valid before using it for encryption/decryption (#389).

    โšก๏ธ Updated test suite to test C++03 and C++11 (#379).

    โšก๏ธ Updated error codes and error messages for all crypto systems, now errors and logs are more user-friendly and understandable (#385).

    Formatted code using clang-format rules and implemented some clang-tidy recommendations (#410, #404).

    Java

    โšก๏ธ Updated Secure Message API: separated function wrap into encrypt and sign, and function unwrap into decrypt and verify. Old functions are still available, but will be deprecated eventually (#389).

    Significantly improved Themis usage examples for Desktop Java - thanks to @Dimdron #3.

    Formatted JNI code using clang-format rules and implemented some clang-tidy recommendations (#420).

    Android

    โž• Added Maven distribution (#361).

    ๐Ÿ”ง The new installation process requires adding only two lines to the Maven app configuration (instead of manually re-compiling the whole Themis library)!
    โšก๏ธ See the updated HowTo guide in Wiki.

    Significantly improved Themis usage examples for Android - thanks to @Dimdron #3.

    Significantly improved Secure mobile websocket example - thanks to @sergeyzenchenko #4.

    Formatted JNI code using clang-format rules and implemented some clang-tidy recommendations (#420).

    Go

    โšก๏ธ Updated code to use the latest Secure Message API (see the description of core changes above). This change doesn't affect user-facing code so no code changes are required from users (#400).

    ๐Ÿ‘• Formatted code and fixed gofmt and golint warnings (#426, #424, #432, #422).

    Node.js

    ๐Ÿ›  Fixed jsthemis to be compatible with Node 10, huge thanks to @deszip (#327, #326).

    โšก๏ธ Updated error codes and error messages for all crypto systems, now errors and logs are more user-friendly and understandable (#384).

    ๐Ÿ›  Fixed memory corruption tests on i386 systems (#408).

    Formatted native extension code using clang-format rules and implemented some clang-tidy recommendations (#412).

    PHP

    - Updated PHP installer to use the latest Composer installer (#360, #328).

    Python

    โšก๏ธ Updated code to use the latest Secure Message API (see description of core changes above). This change doesn't affect user-facing code so no code changes are required from users (#401).

    โšก๏ธ Updated error codes and error messages for all crypto systems, now errors and logs are more user-friendly and understandable (#401).

    ๐Ÿ’Ž Ruby

    โšก๏ธ Updated code to use latest Secure Message API (see description of core changes above). This change doesn't affect user-facing code so no code changes are required from users (#402).

    โšก๏ธ Updated error codes and error messages for all crypto systems, now errors and logs are more user-friendly and understandable (#402).

    ๐Ÿ—„ Deprecated rubythemis in favor of rbthemis. Users should use require 'rbthemis' in their projects (#434).

    โœ… Tests and other things

    โž• Added tools for fuzzing testing and tests on Themis Core (#421, #368, #366, #364).

    โšก๏ธ Updated BoringSSL submodule configuration to use Clang while building (#352).

    โšก๏ธ Updated NIST test suite: improved readability, maintainability, and output of NIST STS makefile, added build files to gitignore (#414).

    ๐Ÿ“„ Docs:

    Described the new Secure Message API: how we divided the wrap function into encrypt and sign, and the unwrap function โ€” into decrypt and verify to make it more obvious for the users.

    Described thread safety code practices when using Secure Session.

    ๐Ÿ‘Œ Improved installation guides for numerous languages.

    Infrastructure:

    โž• Added Homebrew support for Themis Core. Now users can install Themis Core libraby using brew tap cossacklabs/tap && brew update && brew install libthemis. This is useful when you're developing on macOS. More details can be found in the Installation guide.

    โž• Added installation guide on using Docker container as a building environment for Themis: if you can't download Themis Core from packages, feel free to use Docker container for this.