Searched refs:hash_method (Results 1 – 2 of 2) sorted by relevance
250 def sign_hash(hash_value, priv_key, hash_method): argument268 if hash_method not in HASH_ASN1:269 raise ValueError('Invalid hash method: %s' % hash_method)270 asn1code = HASH_ASN1[hash_method]284 def sign(message, priv_key, hash_method): argument302 msg_hash = compute_hash(message, hash_method)303 return sign_hash(msg_hash, priv_key, hash_method)
247 hash_method = cli_args[1]248 if hash_method not in HASH_METHODS:252 return rsa.sign(indata, priv_key, hash_method)