Module sha2

Implementations of SHA-224, SHA-256, SHA-384, SHA-512 in Erlang.

Copyright © 2009 Stephen B. Vinoski, All rights reserved. Open source, BSD License

Version: 1.1

Introduced in: 03 Jan 2009

Authors: Steve Vinoski (vinoski@ieee.org) [web site: http://steve.vinoski.net/].

References

Description

Implementations of SHA-224, SHA-256, SHA-384, SHA-512 in Erlang.

Function Index

hexdigest224/1Returns a SHA-224 hexadecimal digest.
hexdigest256/1Returns a SHA-256 hexadecimal digest.
hexdigest384/1Returns a SHA-384 hexadecimal digest.
hexdigest512/1Returns a SHA-512 hexadecimal digest.

Function Details

hexdigest224/1

hexdigest224(M::message()) -> digest()

Returns a SHA-224 hexadecimal digest. If the argument is a binary, the result is a binary, otherwise the argument is expected to be a string and the result is a string.

hexdigest256/1

hexdigest256(M::message()) -> digest()

Returns a SHA-256 hexadecimal digest. If the argument is a binary, the result is a binary, otherwise the argument is expected to be a string and the result is a string.

hexdigest384/1

hexdigest384(M::message()) -> digest()

Returns a SHA-384 hexadecimal digest. If the argument is a binary, the result is a binary, otherwise the argument is expected to be a string and the result is a string.

hexdigest512/1

hexdigest512(M::message()) -> digest()

Returns a SHA-512 hexadecimal digest. If the argument is a binary, the result is a binary, otherwise the argument is expected to be a string and the result is a string.


Generated by EDoc, Jan 3 2009, 22:43:48.