Next: rfc.tls - Transport layer security, Previous: rfc.quoted-printable - 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 util.digest - Message digester framework).
Typically, all you need to do is to pass the class object <sha256> etc.
to the message
digester; see util.digest - Message digester framework, and also
see rfc.hmac - HMAC keyed-hashing.
Deprecated.
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,
so you can pass this class to message digest procedures such as
digest-message-to (see util.digest - Message digester framework).
The following procedures are deprecated. Use generic
message digester (see util.digest - Message digester framework) or
HMAC keyed digester (see rfc.hmac - HMAC keyed-hashing).
Next: rfc.tls - Transport layer security, Previous: rfc.quoted-printable - Quoted-printable encoding/decoding, Up: Library modules - Utilities [Contents][Index]