[PATCH 1/3] Move MAC testing code to generic place from cmac-test