renamed MAC functions to sign and verify to be consistent with the common terminology