boringssl and sqlcipher on Android

212 views
Skip to first unread message

Hans-Christoph Steiner

unread,
May 28, 2015, 5:02:25 PM5/28/15
to sqlc...@googlegroups.com

I recently was talking with the Android core team about openssl and IOCipher.
From that discussion, I got this useful advice:

> If you compile against BoringSSL statically the linker will be able to
> throw away a lot of what you are not using. OpenSSL wasn't as good in this
> department because of all the indirection. Look into the -fwhole-program
> option and mark your JNI entry points with the appropriate visibility
> markers.

Updating native builds is never fun, but I think this could pay off in terms
of making it easier to keep up to date, as well as making the binaries smaller.

.hc

--
PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81
https://pgp.mit.edu/pks/lookup?op=vindex&search=0x9F0FE587374BBE81

scott coleman

unread,
May 28, 2015, 5:53:10 PM5/28/15
to sqlc...@googlegroups.com
Looks like BoringSSL is not FIPS compliant which makes it off limits to us government folks.

--

---
You received this message because you are subscribed to the Google Groups "SQLCipher Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlcipher+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nick Parker

unread,
May 28, 2015, 6:06:42 PM5/28/15
to sqlc...@googlegroups.com
Hi Hans,

Have you tried compiling BoringSSL for Android yet?  I would be curious what size static library you get.

Chris Brody

unread,
May 29, 2015, 5:04:37 AM5/29/15
to sqlc...@googlegroups.com
On Thursday, May 28, 2015 at 11:53:10 PM UTC+2, scott coleman wrote:
Looks like BoringSSL is not FIPS compliant which makes it off limits to us government folks.

If I am not mistaken, the standard build of SQLCipher is not FIPS compliant. You would have to include the FIPS-compliant version of OpenSSL from here: https://www.openssl.org/docs/fips/

They seem to have an enterprise version with FIPS support here: https://www.zetetic.net/sqlcipher/buy/

Hans-Christoph Steiner

unread,
Jun 4, 2015, 12:27:44 PM6/4/15
to sqlc...@googlegroups.com

I haven't tried yet.

.hc

Nick Parker:

Dan Davis

unread,
Jul 16, 2015, 1:01:05 PM7/16/15
to sqlc...@googlegroups.com
Any progress on the build?
Reply all
Reply to author
Forward
0 new messages