1 --- Cryptographical Hash and HMAC object.
3 module "nixio.CryptoHash"
5 --- Add another chunk of data to be hashed.
7 -- @name CryptoHash.update
8 -- @param chunk Chunk of data
9 -- @return CryptoHash object (self)
11 --- Finalize the hash and return the digest.
13 -- @name CryptoHash.final
14 -- @usage You cannot call update on a hash object that was already finalized
15 -- you can however call final multiple times to get the digest.
17 -- @return buffer containing binary digest