Crate lhash

Source
Expand description

Minimal no_std hashing library

§Provided Algorithms

These are also names of features to be used to include algorithm code.

  • sha1
  • md5
  • sha256
  • sha512

It also includes generic hmac implementation

Structs§

DigestFmt
Wrapper to hex format digest
HmacKey
Represents key used to sign content in hmac algorithm.
Md5
MD5 algorithm implementation
Sha1
Sha1 algorithm implementation
Sha256
Sha256 algorithm implementation
Sha512
Sha512 algorithm implementation

Traits§

Digest
Hashing algorithm interface

Functions§

hmac
Creates HMAC using provided Digest algorithm.
md5
const MD5 algorithm implementation
sha1
const SHA1 algorithm implementation
sha256
const SHA256 algorithm implementation
sha512
const SHA512 algorithm implementation