Add key MAC functions