def make_hasher(algorithm_id):
if algorithm_id == <NUM_LIT:1>:<EOL><INDENT>return hashes.Hash(hashes.SHA1(), default_backend())<EOL><DEDENT>elif algorithm_id == <NUM_LIT:2>:<EOL><INDENT>return hashes.Hash(hashes.SHA384(), default_backend())<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>" % algorithm_id)<EOL><DEDENT>
Create a hashing object for the given signing algorithm.