A general purpose cryptography library with TLS implementation