Permit to choise the mac algorithm
MacInputStream improvements