[Botan-devel] SQLite3 encryption codec with Botan

Jack Lloyd lloyd at randombit.net
Thu Apr 16 19:02:08 EDT 2009

On Wed, Apr 15, 2009 at 09:51:21AM +0800, Mr Diggilin wrote:

> For now I figure I'll get the codec working with some other mode so that
> everything is ready, then XTS can simply be dropped in when it's ready.

Happily I found some time - was pretty quick going once I had an
actual spec in hand. So XTS mode will be included in 1.8.3. It's
included in rev 5ae15c470dec40764c945a9158fd02dff2b81fd5, if you want
to pull it out of monotone.

I have put zero work into profiling or optimizing it in any
interesting ways:

./check  --bench-algo=AES-128,AES-128/CTR,AES-128/XTS
AES-128:                   123.50 MiB/sec
AES-128/CTR:               106.38 MiB/sec
AES-128/XTS:                80.03 MiB/sec

The XTS implementation works with any 128 bit block cipher. Extending
it to other block sizes (64 bits being the most obvious) is trivial
but I am not sure doing so really makes sense or is worth the trouble.


More information about the botan-devel mailing list