An Overview On Encryption in C++ - Jens Weller - CppCon 2015
An Overview On Encryption in C++ - Jens Weller - CppCon 2015
Jens Weller
CppCon 2015
NDC Oslo 2015
C++Now 2015
● OpenSSL ● QCA
– libCrypto – Encryption
based on
Qt4
● C++03 ● C++03(stable) ● C
C++11 C++11(dev)
ISC License
● ●
●
● + ● -
● No Parallel encryption
● Secure
● Known attacks
– When used properly – Malleability
● Parallel decryption – Secure, when done correctly
● + ● -
● Key stream ● Security model is
– Computable in advance questionable
● Fast hardware ● Misconfiguration can lead to
implementation short key stream cycles
● + ● -
● Small footprint ● Not very common
● Parallel decryption
● + ● -
● Secure ● ?
– When done right
● Parallel en/decryption
Code example
Code example
SecureVector<byte> plaintext
= dec->decrypt(ciphertext, ciphertext.size());
Code example
Questions?