Home
last modified time | relevance | path

Searched refs:hash_method (Results 1 – 2 of 2) sorted by relevance

/external/python/rsa/rsa/
Dpkcs1.py250 def sign_hash(hash_value, priv_key, hash_method): argument
268 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): argument
302 msg_hash = compute_hash(message, hash_method)
303 return sign_hash(msg_hash, priv_key, hash_method)
Dcli.py247 hash_method = cli_args[1]
248 if hash_method not in HASH_METHODS:
252 return rsa.sign(indata, priv_key, hash_method)