Add min/max key length fields to the MAC algorithm description and validate configured keys before they are used.