|
Class type Cryptokit.hashclass type hash =
A hash is a function that maps arbitrarily-long character
sequences to small, fixed-size strings.
method add_substring : add_substring str pos len adds len characters from string
str , starting at character number pos , to the running
hash computation.method add_string : add_string str adds all characters of string str
to the running hash computation.method add_char : add_char c adds character c to the running hash computation.method add_byte : add_byte b adds the character having code b
to the running hash computation. b must be between 0 and 255
inclusive.method result :
Terminate the hash computation and return the hash value for
the input data provided via the
add_* methods. The hash
value is a string of length hash_size characters.
After calling result , the hash can no longer accept
additional data. Hence, do not call any of the add_* methods
after result .method hash_size :
Return the size of hash values produced by this hash function,
in bytes.
method wipe :
Erase all internal buffers and data structures of this hash,
overwriting them with zeroes. See
Cryptokit.transform.wipe . |