[PATCH 03/14] macros: add interface for working with separate hash state and buffer