Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/rsa/
Dkey.py433 def find_p_q(nbits, getprime_func=rsa.prime.getprime, accurate=True): argument
474 p = getprime_func(pbits)
476 q = getprime_func(qbits)
500 p = getprime_func(pbits)
502 q = getprime_func(qbits)
533 def gen_keys(nbits, getprime_func, accurate=True): argument
544 (p, q) = find_p_q(nbits // 2, getprime_func, accurate)
582 getprime_func = functools.partial(parallel.getprime, poolsize=poolsize)
583 else: getprime_func = rsa.prime.getprime
586 (p, q, e, d) = gen_keys(nbits, getprime_func)