Class Block.mac_final_triple
Build a MAC (keyed hash function) from the given block ciphers c1, c2 and c3. The input is run through c1 in CBC mode, as described for Cryptokit.Block.mac. The final initialization vector is then super-enciphered by c2, then by c3, to provide the final MAC. This construction results in a MAC that is as nearly as fast as Cryptokit.Block.mac c1, but more resistant against brute-force key search because of the additional final encryption through c2 and c3.
method add_substring : bytes -> int -> int -> unitadd_substring b pos lenaddslencharacters from byte arrayb, starting at character numberpos, to the running hash computation.
method add_string : string -> unitadd_string stradds all characters of stringstrto the running hash computation.
method add_byte : int -> unitadd_byte badds the character having codebto the running hash computation.bmust be between0and255inclusive.
method result : stringTerminate the hash computation and return the hash value for the input data provided via the
add_*methods. The hash value is a string of lengthhash_sizecharacters. After callingresult, the hash can no longer accept additional data. Hence, do not call any of theadd_*methods afterresult.
method wipe : unitErase all internal buffers and data structures of this hash, overwriting them with zeroes. See
Cryptokit.transform.wipe.