6.4 MACS VS. SIGNATURES
Exercise 6.4: MACS vs SIGNATURES
Modify your algorithms to sign or apply a MAC to the data in the
finalize
methods. Try disabling encryption (just have the update methods return the unmodified plaintext) so that you can compare only the speed of the MAC and signature. Is the difference as extreme? Can you think why this is so?