some preparations for cbc-mac generation