Next: Transport layer security, Previous: Quoted-printable encoding/decoding, Up: Library modules - Utilities [Contents][Index]
rfc.sha - SHA message digestThis module implements US Secure Hash Algorithm defined in RFC 4634. It provides SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 (the latter four are sometimes referred as SHA-2 collectively).
The module extends util.digest (see Message digester framework).
This is the old module that provided only SHA-1. It is kept as
an alias of rfc.sha for the backward compatibility. New code
should use rfc.sha.
{rfc.sha} An instance of these class keeps internal state of SHA digest algorithm.
This class implements util.digest framework interface,
digest-update!, digest-final!,
digest, and digest-string.
See Message digester framework, for detailed explanation
of these methods.
Besides the digester framework, this module provides to short-cut procedures.
{rfc.sha} Reads data from the current input port until EOF, and returns its digest in an incomplete string.
{rfc.sha} Digest the data in string, and returns the result in an incomplete string.
Next: Transport layer security, Previous: Quoted-printable encoding/decoding, Up: Library modules - Utilities [Contents][Index]