sh1 - SHA-1 module

Module Description

The sh1 module implements words for using the SHA-1 algorithm.

Module Words

SHA-1 structure

sh1% ( - n )
Get the required space for the sha1 data structure

SHA-1 structure creation, initialisation and destruction

sh1-init ( w:sh1 - )
Initialise the sh1 structure

sh1-create ( C: "name" - R: - w:sh1 )
Create a named sha-1 structure in the dictionary

sh1-new ( - w:sh1 )
Create a new sha-1 structure on the heap

sh1-free ( w:sh1 - )
Free the sha-1 structure from the heap

SHA-1 words

sh1-reset ( w:sh1 - )
Reset the SHA-1 state

sh1-update ( c-addr u w:sh1 - )
Update the SHA-1 with more data

sh1-finish ( w:sh1 - u1 u2 u3 u4 u5 )
Finish the SHA-1 calculation

sh1+to-string ( u1 u2 u3 u4 u5 - c-addr u )
Convert SHA-1 result to string, using the pictured output area

Inspection

sh1-dump ( w:sh1 - )
Dump the sh1 state


generated 09-Jan-2007 by ofcfrth-0.2.0