For Gauche 0.9.5


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

12.59 util.digest - Message digester framework

Module: util.digest

This module provides a base class and common interface for message digest algorithms, such as MD5 (see MD5 message digest) and SHA (see SHA message digest).

Class: <message-digest-algorithm-meta>

A metaclass of message digest algorithm implementation.

Instance Variable of <message-digest-algorithm-meta>: hmac-block-size

Specifies the block size (in bytes), which is specific to each algorithm. (This is a slot for each class object that implements the algorithm, not for instance of such classes. Only the author of such digest classes needs to care. See ext/digest/sha.scm in the source tree for more details.)

Class: <message-digest-algorithm>

A base class of message digest algorithm implementation.

The concrete subclass of message digest algorithm has to implement the following methods.

Generic function: digest-update! algorithm data

Takes the instance of massage-digest algorithm, and updates it with the data data, represented in a (possibly incomplete) string.

Generic function: digest-final! algorithm

Finalizes the instance of message-digest algorithm, and returns the digest result in an incomplete string.

Generic function: digest class

A wrapper of digest routines. Given message-digest algorithm class, this function reads the input data from current input port until EOF, and returns the digest result in an incomplete string.

Generic function: digest-string class string

A wrapper of digest routines. Given message-digest algorithm class, this function reads the input data from string, and returns the digest result in an incomplete string.

Function: digest-hexify digest-result

An utility procedure. Given the result of digest, digest-result, converts it to a hexified string.


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