Made TYPE_CMAC case into code block to allow variable definition