add thread based mac authentication in decrypt mode