For Gauche 0.9.15Search (procedure/syntax/module):

Next: , Previous: , Up: Library modules - Utilities   [Contents][Index]

12.53 rfc.sha - SHA message digest

Module: rfc.sha

This 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.

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>

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

Function: sha1-digest
Function: sha224-digest
Function: sha256-digest
Function: sha384-digest
Function: sha512-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

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


Next: , Previous: , Up: Library modules - Utilities   [Contents][Index]


For Gauche 0.9.15Search (procedure/syntax/module):