Client-side encryption using C libraries on Linux or whatever is just asking to be hacked. Best will be secure hardware, drivers, kernel, and trusted components. See CHERI processor [4], EROS documentation [5] (esp "Principle-driven...") and Mikro-SINA VPN [6] for examples of The Right Thing in security-critical development. Need more like that.
[1] http://pastebin.com/y3PufJ0V
[2] https://www.schneier.com/blog/archives/2014/09/identifying_d...
[3] https://github.com/maqp/tfc-otp
[4] https://www.cl.cam.ac.uk/research/security/ctsrd/cheri/
Considering that many encryption systems around seem to get broken, I don't think that's the only solution needed.