HomeSort by relevance Sort by last modified time
    Searched refs:log_rounds (Results 1 - 2 of 2) sorted by null

  /external/python/cpython3/Lib/
crypt.py 40 log_rounds = 12
42 log_rounds = int.bit_length(rounds-1)
43 if rounds != 1 << log_rounds:
45 if not 4 <= log_rounds <= 31:
47 s += f'{log_rounds:02d}$'
  /external/python/cpython3/Lib/test/
test_crypt.py 60 for log_rounds in range(4, 11):
61 salt = crypt.mksalt(crypt.METHOD_BLOWFISH, rounds=1 << log_rounds)
62 self.assertIn('$%02d$' % log_rounds, salt)

Completed in 122 milliseconds