For Development HEAD DRAFTSearch (procedure/syntax/module):

12.53 rfc.sha - SHA message digest

Module: rfc.sha

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.

Module: rfc.sha1

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.

Class: <sha1>
Class: <sha224>
Class: <sha256>
Class: <sha384>
Class: <sha512>
Class: <sha3-224>
Class: <sha3-256>
Class: <sha3-384>
Class: <sha3-512>

{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).

Function: sha1-digest
Function: sha224-digest
Function: sha256-digest
Function: sha384-digest
Function: sha512-digest
Function: sha3-224-digest
Function: sha3-256-digest
Function: sha3-384-digest
Function: sha3-512-digest

{rfc.sha} Deprecated. Reads data from the current input port until EOF, and returns its digest in an incomplete string.

Function: sha1-digest-string string
Function: sha224-digest-string string
Function: sha256-digest-string string
Function: sha384-digest-string string
Function: sha512-digest-string string
Function: sha3-224-digest-string string
Function: sha3-256-digest-string string
Function: sha3-384-digest-string string
Function: sha3-512-digest-string string

{rfc.sha} Deprecated. Digest the data in string, and returns the result in an incomplete string.



For Development HEAD DRAFTSearch (procedure/syntax/module):
DRAFT