Crate tomcrypt [] [src]

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.

At the moment, only ecc and eax are exposed by these bindings, it should be easy to add more features.

I do not plan to add more functionality myself because I do not need it, pull requests or people, who are willing to overtake this project and expand the crate, are welcome though.

Usage

Add the following to your Cargo.toml:

[dependencies]
tomcrypt = "0.1"

Modules

errors
ffi

Structs

Cipher

A cipher.

EaxState

Authenticated encryption mode.

EccKey

A private or public elliptic curve key.

Rng

A random number generator.

Functions

init

Init the tomcrypt library.

register_rijndael_cipher

Register the rijndael cipher (aes).

register_sprng

Register the system pseudo random number generator.

rijndael

Get the rijndael cipher (aes), it has to be registered first using register_rijndael_cipher.

sprng

Get the sprng, it has to be registered first using register_sprng.