Searched refs:hash_length (Results 1 – 8 of 8) sorted by relevance
/external/pigweed/pw_tokenizer/py/ |
D | generate_hash_macro.py | 57 def generate_pw_tokenizer_65599_fixed_length_hash_macro(hash_length): argument 97 hash_length=hash_length, 103 HASH_NAME.upper(), hash_length))) 120 index='{{index:>{}}}'.format(len(str(hash_length - 1)))) 122 for i in range(1, hash_length): 141 for hash_length in HASH_LENGTHS: 143 base, '{}_{}_hash_macro.h'.format(HASH_NAME, hash_length)) 148 hash_length)) 151 hash_length, path))
|
D | generate_hash_test_data.py | 90 def _test_case_at_length(data, hash_length): argument 103 hash_length=hash_length, 105 data, hash_length), 106 macro=HASH_MACRO.format(hash_length))
|
/external/python/rsa/rsa/ |
D | pkcs1_v2.py | 51 hash_length = pkcs1.HASH_METHODS[hasher]().digest_size 60 if length > (2**32 * hash_length): 64 hash_length=hash_length, 77 for counter in range(common.ceil_div(length, hash_length) + 1)
|
/external/pigweed/pw_tokenizer/public/pw_tokenizer/ |
D | hash.h | 82 size_t hash_length = PW_TOKENIZER_CFG_C_HASH_LENGTH) 87 for (uint8_t ch : string.substr(0, hash_length)) { 99 size_t hash_length = PW_TOKENIZER_CFG_C_HASH_LENGTH) { 102 hash_length); 113 size_t hash_length);
|
/external/pigweed/pw_tokenizer/ |
D | hash.cc | 22 size_t hash_length) { in pw_tokenizer_65599FixedLengthHash() argument 24 std::string_view(string, string_length), hash_length); in pw_tokenizer_65599FixedLengthHash()
|
D | hash_test.cc | 38 for (const auto [string, hash_length, python_hash, macro_hash] : kHashTests) { in CheckGeneratedCases() 40 PwTokenizer65599FixedLengthHash(string, hash_length); in CheckGeneratedCases() 52 for (const auto [string, hash_length, python_hash, macro_hash] : kHashTests) { in TEST() 54 PwTokenizer65599FixedLengthHash(string, hash_length); in TEST()
|
/external/pigweed/pw_tokenizer/py/pw_tokenizer/ |
D | tokens.py | 49 hash_length: int) -> int: 58 for char in string[:hash_length]:
|
/external/pigweed/pw_tokenizer/pw_tokenizer_private/ |
D | generated_hash_test_cases.h | 34 size_t hash_length; member
|