Pike v8.0 release 1738

Class __builtin.Nettle.__Hash()->State

Inheritance graph
__builtin.Nettle.__Hash.State Nettle.Hash.State __builtin.Nettle.AEAD.State
Description

This is the context for a single incrementally updated hash.

Most of the functions here are only prototypes, and need to be overrided via inherit.


Method create

__builtin.Nettle.__Hash.State __builtin.Nettle.__Hash.State(string(8bit)|void data)

Description

Create the new context, and optionally add some initial data to hash.

The default implementation calls update() with data if any, so there's usually no reason to override this function, since overriding update() should be sufficient.