block-sha1: perform register rotation using cpp