Add and use of MacAlgorithm enum