#digest #crypto #hash

no-std digest

Traits for cryptographic hash functions

25 releases

0.7.5 Jul 13, 2018
0.7.2 Nov 17, 2017
0.6.2 Jul 24, 2017
0.5.0-rc1 Mar 21, 2017
0.3.0 Nov 17, 2016

#5 in Cryptography

Download history 9589/week @ 2018-06-20 12049/week @ 2018-06-27 9722/week @ 2018-07-04 10144/week @ 2018-07-11 13227/week @ 2018-07-18 11927/week @ 2018-07-25 10975/week @ 2018-08-01 12123/week @ 2018-08-08 11057/week @ 2018-08-15 9570/week @ 2018-08-22 11218/week @ 2018-08-29 11949/week @ 2018-09-05 11425/week @ 2018-09-12

41,242 downloads per month
Used in 595 crates (82 directly)

MIT/Apache

17KB
340 lines


lib.rs:

This crate provides traits which describe funcionality of cryptographic hash functions.

Traits in this repository can be separatedin two levels:

  • Low level traits: Input, BlockInput, Reset, FixedOutput, VariableOutput, ExtendableOutput. These traits atomically describe available functionality of hash function implementations.
  • Convinience trait: Digest, DynDigest. They are wrappers around low level traits for most common hash-function use-cases.

Additionally hash functions implement traits from std: Default, Clone, Write. (the latter depends on enabled-by-default std crate feature)

The Digest trait is the most commonly used trait.

Dependencies

~202KB