Giter Site home page Giter Site logo

xtssharp's Introduction

XTSSharp is an implementation of XTS-AES 128/256 for .NET


XTS-AES is a cipher meant to be used for encryption of block-level devices. It allows a block to be encrypted/decrypted without depending on previous blocks.

This means that you effectively have random access (or very close to it) to the data.

The library provides a stream that simulates random access - encrypting and decrypting blocks as data is read/written. It also supports seeking.

For more information on the XTS-AES algorithm, see the following links:

http://en.wikipedia.org/wiki/Disk_encryption_theory#XTS
http://axelkenzo.ru/downloads/1619-2007-NIST-Submission.pdf

Main entry point is the XtsAes128 and XtsAes256 classes, as well as the XtsStream class. It should be pretty self explanatory. See the unit tests for more information.

The XtsStream will always write a full "sector". I.e. if you write 1 byte, it will write the full sector size (default of 512 bytes) with the other bytes zeroed (but encrypted before writing). Reading it back again will result in the full 512 bytes being available.

Note that the solution file is in Visual Studio 2010 format.


Repo based on https://bitbucket.org/garethl/xtssharp 0e6a81a

xtssharp's People

Contributors

garethl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.