Gareth Lennox

Monthly Archives: March 2012

XTS-AES implementation: SectorStream

As a by-product of the¬†XtsSharp project, I implemented a¬†SectorStream, which is a stream that reads and writes whole sectors (the size of which is configurable) to enable the XTS algorithm to operate on standard .NET streams. I also implemented another stream based class that provides random access to an underlying SectorStream. This simulates random access […]

XTS-AES implementation in .NET

I’ve been meaning to write about this for some time, but laziness, procrastination and work have managed to get in the way. DISCLAIMER: I am not a cryptographer, cryptography is something that interests me and the library is a proof of concept; you use it at your own risk. I recently (i.e. a year ago!) […]

A new home for my blog

This site has now moved to it’s own domain (, rather than sitting in a subdirectory under another domain. I managed to move it in the space of a couple of hours, without too many hassles. The main problem was that wordpress doesn’t like to have it’s main url changed from underneath it, so I […]