sha1_name: add get_sha1_with_context()