Move fixed_time_eq method to util module to make it public
Merge pull request #93 from DaGenix/expose_fixed_time_eq

Move fixed_time_eq method to util module to make it public
to_str() was renamed to to_string() for the getopts failure object
Use the index operator on Vec now that .get() has been deprecated
Merge pull request #94 from DaGenix/fixups

Minor Fixups
Build rust-crypto-util using Cargo.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Add RIPEMD160 implementation

There are a few other hashes in the RIPEMD family that are not
implemented because they aren't useful:

  1. RIPEMD128 has 128 bits of output, and therefore can probably
     be birthday attacked with a home PC.

  2. RIPEMD256 and RIPEMD320 have the same security as RIPEMD160
     (they are constructed by running two RIPEMD128 (RIPEMD160,
     respectively) lines with different IVs in parallel then
     merging).

     That, and the fact that I'm not personally aware of anyone
     using these hashes, mean that they get the boot. :)

References:
  http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
cleanup
documentation
typo
more typos
Merge pull request #1 from andrewclarkson/ripemd160

A little cleanup and documentation
Merge pull request #95 from omasanori/cargo

Build rust-crypto-util using Cargo.
Merge pull request #96 from apoelstra/ripemd160

Add RIPEMD160 implementation
Add ripemd160.rs to the test.rs module
Replace use of /*! inside struct Ripemd160 struct with /**
Merge pull request #98 from DaGenix/fixups

Fixups
Speed up the read_{u32,u64}{,v}_{le,be} and write_{u32,u64}_{be,le} functions

The original implementations of these functions were fairly efficient, however
they didn't respect the alignment requirements of the platform which could
cause crashes on ARM. The previous implementations of these functions were
designed to avoid the alignment issues, not necessarily to be optimal. The
result is that while the functions worked on ARM, they did a lot of unecessary
bounds checks and were not using the byte-swap instrinsics. I confirmed that
LLVM was not able to eliminate these checks by examining the X86_64 assembly
that was generated.

The functions have been re-written to use a similiar strategy as the original
implementations - namely processing u32 or u64 chunks of memory all at once
and using the byte-swap instrinsics. In order to avoid the alignment issues
of the original impementation, instead of coercing [u8] arrays into
[u64] (or [u32]) arrays (which might not be properly aligned) and then reading
or writing them, the new imlementation only works on [u8] arrays using the
copy_nonoverlapping_memory() instrinsic which does not have any particular
alignment restrictions.

The new implementations may be a bit slower than the original ones - it looks
like the original ones would generate some slightly different code using
some of the SSE registers. However, they definitally generate smaller code
with many fewer branches than the previous ones.
Convert all named labels in asm!() blocks to anonymous labels
Merge pull request #100 from DaGenix/fix-macosx-crash

Convert all named labels in asm!() blocks to anonymous labels