/systemd-251/.github/workflows/ |
D | requirements.txt | 2 --hash=sha256:00e06dccac7d3b0568b5da82e70c2028c80c359aab6dc517bcbd1825511898c3 \ 3 --hash=sha256:06f8c1cfa51bfdb533c82623ffa524cacdbea02ace6d709145e33aabdad6adcb 5 --hash=sha256:0560eea57199e41e86ac2c1af0108b63ae77c3ca4d05a9425a750e908135935a \ 6 --hash=sha256:21a1d84d4c7df5881bfd86c25cce4cf7af44ba2b8b255c57bc1c434ec30a2dfc \ 7 --hash=sha256:279836285975e3519392c93c26e75755e8a8a7fafec9f4ecbb0293119ee0f9c6 \ 8 --hash=sha256:29570a18d697fc84d361e7e6330f0021f34603ae0fcb0ef67ae781e9814aae8d \ 9 --hash=sha256:5ea785bf6a15727040835256577239fa3cf5da0d60e618c307aa5efc31a1f0ce \ 10 --hash=sha256:688167841b088b6802e006f911d911ffa925e078c73e8ef2f88286107d3204f8 \ 11 --hash=sha256:6bd76a025f26b9ae507cf8b2b01bb25bb0031df54ed685d85fc559c411c86cf4 \ 12 --hash=sha256:740d61fefb4ca13573704ee8fe89b973d40b8dc2a51aaa4e9e68367233743bb6 \ [all …]
|
/systemd-251/src/basic/ |
D | hmac.c | 22 struct sha256_ctx hash; in hmac_sha256() local 32 sha256_init_ctx(&hash); in hmac_sha256() 33 sha256_process_bytes(key, key_size, &hash); in hmac_sha256() 34 sha256_finish_ctx(&hash, replacement_key); in hmac_sha256() 52 sha256_init_ctx(&hash); in hmac_sha256() 53 sha256_process_bytes(inner_padding, HMAC_BLOCK_SIZE, &hash); in hmac_sha256() 54 sha256_process_bytes(input, input_size, &hash); in hmac_sha256() 55 sha256_finish_ctx(&hash, res); in hmac_sha256() 58 sha256_init_ctx(&hash); in hmac_sha256() 59 sha256_process_bytes(outer_padding, HMAC_BLOCK_SIZE, &hash); in hmac_sha256() [all …]
|
D | hashmap.c | 338 uint64_t hash; in base_bucket_hash() local 342 h->hash_ops->hash(p, &state); in base_bucket_hash() 344 hash = siphash24_finalize(&state); in base_bucket_hash() 346 return (unsigned) (hash % n_buckets(h)); in base_bucket_hash() 1232 unsigned hash, idx; in hashmap_put() local 1236 hash = bucket_hash(h, key); in hashmap_put() 1237 idx = bucket_scan(h, hash, key); in hashmap_put() 1248 return hashmap_put_boldly(h, hash, &swap, true); in hashmap_put() 1254 unsigned hash, idx; in set_put() local 1258 hash = bucket_hash(s, key); in set_put() [all …]
|
D | gcrypt-util.c | 26 void *hash; in string_hashsum() local 40 hash = gcry_md_read(md, 0); in string_hashsum() 41 if (!hash) in string_hashsum() 44 enc = hexmem(hash, hash_size); in string_hashsum()
|
D | hash-funcs.c | 74 .hash = trivial_hash_func, 79 .hash = trivial_hash_func, 85 .hash = trivial_hash_func,
|
D | unit-name.c | 541 _cleanup_free_ char *n = NULL, *hash = NULL; in unit_name_hash_long() local 558 hash = hexmem(&h, sizeof(h)); in unit_name_hash_long() 559 if (!hash) in unit_name_hash_long() 562 assert_se(strlen(hash) == UNIT_NAME_HASH_LENGTH_CHARS); in unit_name_hash_long() 571 if (!strextend(&n, "_", hash, suffix)) in unit_name_hash_long()
|
/systemd-251/src/boot/efi/ |
D | random-seed.c | 64 struct sha256_ctx hash; in hash_once() local 69 sha256_init_ctx(&hash); in hash_once() 70 sha256_process_bytes(old_seed, size, &hash); in hash_once() 72 sha256_process_bytes(rng, size, &hash); in hash_once() 74 sha256_process_bytes(system_token, system_token_size, &hash); in hash_once() 75 sha256_process_bytes(&counter, sizeof(counter), &hash); in hash_once() 76 sha256_finish_ctx(&hash, ret); in hash_once() 185 uint8_t hash[HASH_VALUE_SIZE]; in validate_sha256() member 213 struct sha256_ctx hash; in validate_sha256() local 216 sha256_init_ctx(&hash); in validate_sha256() [all …]
|
/systemd-251/src/cryptenroll/ |
D | cryptenroll-tpm2.c | 14 const void *hash, in search_policy_hash() argument 20 assert(hash || hash_size == 0); in search_policy_hash() 56 if (memcmp_nn(hash, hash_size, thash, thash_size) == 0) in search_policy_hash() 140 _cleanup_free_ void *blob = NULL, *hash = NULL; in enroll_tpm2() local 160 …r = tpm2_seal(device, pcr_mask, pin_str, &secret, &secret_size, &blob, &blob_size, &hash, &hash_si… in enroll_tpm2() 165 r = search_policy_hash(cd, hash, hash_size); in enroll_tpm2() 177 …r = tpm2_unseal(device, pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash, hash_size, pin_str… in enroll_tpm2() 203 …r = tpm2_make_luks2_json(keyslot, pcr_mask, pcr_bank, primary_alg, blob, blob_size, hash, hash_siz… in enroll_tpm2()
|
/systemd-251/src/veritysetup/ |
D | veritysetup-generator.c | 53 const char *hash, in create_device() argument 68 if (!hash && !data_what && !hash_what) in create_device() 72 if (!hash) in create_device() 79 if (!hash || !data_what || !hash_what) in create_device() 82 …a device %s, hash device %s, options %s, and hash %s.", name, data_what, hash_what, options, hash); in create_device() 109 hash_escaped = specifier_escape(hash); in create_device() 258 const char *hash, in determine_device() argument 271 if (!hash) in determine_device() 277 r = unhexmem(hash, strlen(hash), &m, &l); in determine_device() 279 return log_error_errno(r, "Failed to parse hash: %s", hash); in determine_device()
|
/systemd-251/src/test/ |
D | test-libcrypt-util.c | 43 FOREACH_STRING(hash, in test_hash_password() 52 b = test_password_one(hash, "ppp"); in test_hash_password() 53 log_info("%s: %s", hash, yes_no(b)); in test_hash_password() 59 if (b && IN_SET(hash[1], '6', 'y')) in test_hash_password()
|
/systemd-251/docs/ |
D | JOURNAL_FILE_FORMAT.md | 76 * The 64bit hash function siphash24 is used for newer journal files. For older files [Jenkins looku… 136 * A **DATA_HASH_TABLE** object, which encapsulates a hash table for finding existing **DATA** objec… 137 * A **FIELD_HASH_TABLE** object, which encapsulates a hash table for finding existing **FIELD** obj… 224 **data_hash_chain_depth** is a counter of the deepest chain in the data hash 226 the previous deepest chain found. Note that the counter is updated during hash 228 when it is a good time to rotate the journal file, because hash collisions 232 field hash table, minus one. 276 hash function the keyed siphash24 hash function is used for the two hash 333 and hash value expected. All code must be written with the fact in mind that a 390 le64_t hash; [all …]
|
D | DISCOVERABLE_PARTITIONS.md | 80 …hash data | Contains dm-verity integrity hash data for the matching root partition. If this featur… 98 …cce0d25-c0d0-4a44-bd87-46331bf1df67` | A dm-verity superblock followed by hash data | Similar sema… 116 …0f7-700c99921ef8` | A serialized JSON object, see below | Contains a root hash and a PKCS#7 signat… 157 …56(machine-id, 0x4d21b016b53445c2a9fb5c16e091fd2d)` (i.e. the SHA256 HMAC hash of the binary type … 232 1. A trusted Verity root hash is passed in externally, for example is specified 237 to match the first 128 bit of the root hash, and the matching Verity 238 partition UUIDs is chosen to match the last 128bit of the root hash, then 240 root hash is enough to both find the partitions and then combine them in a 246 partition primarily contains two fields: the root hash to use, and a PKCS#7 249 root hash is validated with the signature and the OS-provided trusted [all …]
|
/systemd-251/src/shared/ |
D | tpm2-util.c | 404 .pcrSelections[0].hash = bank, in tpm2_pcr_mask_to_selecion() 519 … if (!IN_SET(pcap->data.assignedPCR.pcrSelections[i].hash, TPM2_ALG_SHA256, TPM2_ALG_SHA1)) in tpm2_get_best_pcr_bank() 528 … strna(tpm2_pcr_bank_to_string(pcap->data.assignedPCR.pcrSelections[i].hash))); in tpm2_get_best_pcr_bank() 544 … strna(tpm2_pcr_bank_to_string(pcap->data.assignedPCR.pcrSelections[i].hash))); in tpm2_get_best_pcr_bank() 548 … good = tpm2_pcr_mask_good(c, pcap->data.assignedPCR.pcrSelections[i].hash, pcr_mask); in tpm2_get_best_pcr_bank() 552 if (pcap->data.assignedPCR.pcrSelections[i].hash == TPM2_ALG_SHA256) { in tpm2_get_best_pcr_bank() 560 assert(pcap->data.assignedPCR.pcrSelections[i].hash == TPM2_ALG_SHA1); in tpm2_get_best_pcr_bank() 800 *ret_pcr_bank = pcr_selection.pcrSelections[0].hash; in tpm2_make_pcr_session() 810 struct sha256_ctx hash; in hash_pin() local 814 sha256_init_ctx(&hash); in hash_pin() [all …]
|
D | openssl-util.c | 119 uint8_t hash[EVP_MAX_MD_SIZE]; in string_hashsum() local 127 r = openssl_hash(md_algorithm, s, len, hash, NULL); in string_hashsum() 131 enc = hexmem(hash, hash_size); in string_hashsum()
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-monitor.c | 537 uint32_t hash = string_hash32(str); in string_bloom64() local 539 bits |= UINT64_C(1) << (hash & 63); in string_bloom64() 540 bits |= UINT64_C(1) << ((hash >> 6) & 63); in string_bloom64() 541 bits |= UINT64_C(1) << ((hash >> 12) & 63); in string_bloom64() 542 bits |= UINT64_C(1) << ((hash >> 18) & 63); in string_bloom64() 705 uint32_t hash = string_hash32(subsystem); in sd_device_monitor_filter_update() local 711 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, hash, 0, 1); in sd_device_monitor_filter_update() 714 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, hash, 0, 3); in sd_device_monitor_filter_update() 718 hash = string_hash32(devtype); in sd_device_monitor_filter_update() 719 bpf_jmp(ins, &i, BPF_JMP|BPF_JEQ|BPF_K, hash, 0, 1); in sd_device_monitor_filter_update()
|
/systemd-251/src/journal/ |
D | journald-rate-limit.c | 46 uint64_t hash; member 84 LIST_REMOVE(bucket, g->parent->buckets[g->hash % BUCKETS_MAX], g); in journal_ratelimit_group_free() 139 g->hash = siphash24_string(g->id, r->hash_key); in journal_ratelimit_group_new() 145 LIST_PREPEND(bucket, r->buckets[g->hash % BUCKETS_MAX], g); in journal_ratelimit_group_new()
|
/systemd-251/src/random-seed/ |
D | random-seed.c | 296 uint8_t hash[32]; in run() local 299 sha256_finish_ctx(&hash_state, hash); in run() 300 l = MIN((size_t)k, sizeof(hash)); in run() 301 memcpy((uint8_t *)buf + k - l, hash, l); in run()
|
/systemd-251/src/libsystemd/sd-journal/ |
D | journal-def.h | 63 le64_t hash; \ 78 le64_t hash; \ 90 le64_t hash; member
|
D | journal-file.c | 1139 uint64_t hash) { in journal_file_link_field() argument 1160 h = hash % m; in journal_file_link_field() 1184 uint64_t hash) { in journal_file_link_data() argument 1207 h = hash % m; in journal_file_link_data() 1259 const void *field, uint64_t size, uint64_t hash, in journal_file_find_field_object_with_hash() argument 1284 h = hash % m; in journal_file_find_field_object_with_hash() 1293 if (le64toh(o->field.hash) == hash && in journal_file_find_field_object_with_hash() 1352 const void *data, uint64_t size, uint64_t hash, in journal_file_find_data_object_with_hash() argument 1377 h = hash % m; in journal_file_find_data_object_with_hash() 1388 if (le64toh(o->data.hash) != hash) in journal_file_find_data_object_with_hash() [all …]
|
D | sd-journal.c | 237 uint64_t hash; in sd_journal_add_match() local 278 hash = jenkins_hash64(data, size); in sd_journal_add_match() 288 if (l4->hash == hash && in sd_journal_add_match() 314 m->hash = hash; in sd_journal_add_match() 503 uint64_t hash; in next_for_match() local 508 hash = journal_file_hash_data(f, m->data, m->size); in next_for_match() 510 hash = m->hash; in next_for_match() 512 r = journal_file_find_data_object_with_hash(f, m->data, m->size, hash, &d, NULL); in next_for_match() 599 uint64_t dp, hash; in find_location_for_match() local 602 hash = journal_file_hash_data(f, m->data, m->size); in find_location_for_match() [all …]
|
D | journal-authenticate.c | 250 gcry_md_write(f->hmac, &o->data.hash, sizeof(o->data.hash)); in journal_file_hmac_put_object() 256 gcry_md_write(f->hmac, &o->field.hash, sizeof(o->field.hash)); in journal_file_hmac_put_object()
|
/systemd-251/shell-completion/bash/ |
D | systemd-nspawn | 70 … --volatile --network-macvlan --kill-signal --template --notify-ready --root-hash --chdir 74 --resolv-conf --timezone --root-hash-sig' 88 --uuid|--root-hash) 186 --root-hash-sig)
|
/systemd-251/src/resolve/ |
D | test-dns-packet.c | 35 static uint64_t hash(DnsResourceRecord *rr) { in hash() function 74 hash1 = hash(rr); in test_packet_from_file() 88 hash2 = hash(rr); in test_packet_from_file()
|
D | resolved-dns-dnssec.c | 240 const void *hash, size_t hash_size, in dnssec_rsa_verify() argument 248 assert(hash); in dnssec_rsa_verify() 289 hash, hash_size, in dnssec_rsa_verify() 452 const void *hash, size_t hash_size, in dnssec_ecdsa_verify() argument 460 assert(hash); in dnssec_ecdsa_verify() 489 hash, hash_size, in dnssec_ecdsa_verify() 893 uint8_t hash[EVP_MAX_MD_SIZE]; in dnssec_rrset_verify_sig() local 897 void *hash; in dnssec_rrset_verify_sig() local 931 if (EVP_DigestFinal_ex(ctx, hash, &hash_size) <= 0) in dnssec_rrset_verify_sig() 949 hash = gcry_md_read(md, 0); in dnssec_rrset_verify_sig() [all …]
|
/systemd-251/src/libsystemd-network/ |
D | dhcp-identifier.c | 125 uint64_t hash; in dhcp_identifier_set_duid_en() local 146 hash = htole64(siphash24(&machine_id, sizeof(machine_id), HASH_KEY.bytes)); in dhcp_identifier_set_duid_en() 147 memcpy(ret_duid->en.id, &hash, sizeof(ret_duid->en.id)); in dhcp_identifier_set_duid_en()
|