State
Incremental BLAKE2b hash state; created via generichash.new().
Feed data incrementally with update, then call final exactly once to retrieve the digest.
Always call final - the internal FFI buffer cannot be reclaimed by the GC if it is skipped,
even when all references to the State are dropped.
Summary
Properties
Section titled “Properties”statePointer
Section titled “statePointer” State.statePointer :: FFIPointer
outputBytes
Section titled “outputBytes”finalized
Section titled “finalized”Methods
Section titled “Methods”update
Section titled “update”State : update ( chunk ) -> ()
Feeds chunk into the hash state. May be called any number of times before final.
Errors if called after final.
Parameters
| chunk: buffer |
State : final ( ) -> buffer
Finalises the hash and returns the digest. Frees the internal state buffer.
Errors if called more than once on the same State.
Returns
| buffer |
Functions
Section titled “Functions”State . new ( outputBytes , key ) -> State