rfc.sha
- SHA message digest ¶This module implements US Secure Hash Algorithms. It provides SHA-1, SHA-2, and SHA-3.
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).
Classes <sha224>
, <sha256>
, <sha384>
, and <sha512>
implement SHA-2. Classes <sha3-256>
, <sha3-384>
, and
<sha3-512>
implement SHA-3.
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).
{rfc.sha
}
Deprecated.
Reads data from the current input port until EOF, and returns
its digest in an incomplete string.
{rfc.sha
}
Deprecated.
Digest the data in string, and returns the result
in an incomplete string.