/systemd/src/basic/ |
H A D | MurmurHash2.h | 29 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed );
|
H A D | MurmurHash2.c | 37 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed ) 47 uint32_t h = seed ^ len;
|
/systemd/src/journal/ |
H A D | journal-qrcode.h | 27 int print_qr_code(FILE *f, const void *seed, size_t seed_size, uint64_t start, uint64_t interval, const char *hn, sd_id128_t machine);
|
H A D | fsprg.h | 43 /* Setup msk and mpk. Providing seed != NULL makes this algorithm deterministic. */ 44 void FSPRG_GenMK(void *msk, void *mpk, const void *seed, size_t seedlen, unsigned secpar); 46 /* Initialize state deterministically in dependence on seed. */ 48 the same seed for both GenMK and GenState0. 50 void FSPRG_GenState0(void *state, const void *mpk, const void *seed, size_t seedlen); 56 /* Seek to any arbitrary state (by providing msk together with seed from GenState0). */ 57 void FSPRG_Seek(void *state, uint64_t epoch, const void *msk, const void *seed, size_t seedlen);
|
H A D | fsprg.c | 93 /* deterministically generate from seed/idx a string of buflen pseudorandom bytes */ 94 static void det_randomize(void *buf, size_t buflen, const void *seed, size_t seedlen, uint32_t idx) { argument 101 gcry_md_write(hd, seed, seedlen); 123 /* deterministically generate from seed/idx a prime of length `bits' that is 3 (mod 4) */ 124 static gcry_mpi_t genprime3mod4(int bits, const void *seed, size_t seedlen, uint32_t idx) { argument 132 det_randomize(buf, buflen, seed, seedlen, idx); 143 /* deterministically generate from seed/idx a quadratic residue (mod n) */ 144 static gcry_mpi_t gensquare(const gcry_mpi_t n, const void *seed, size_t seedlen, uint32_t idx, unsigned secpar) { argument 149 det_randomize(buf, buflen, seed, seedlen, idx); 254 void FSPRG_GenMK(void *msk, void *mpk, const void *seed, size_ argument 294 FSPRG_GenState0(void *state, const void *mpk, const void *seed, size_t seedlen) argument 340 FSPRG_Seek(void *state, uint64_t epoch, const void *msk, const void *seed, size_t seedlen) argument [all...] |
H A D | journal-qrcode.c | 48 const void *seed, 61 assert(seed); 73 fprintf(f, "%02x", ((uint8_t*) seed)[i]); 46 print_qr_code( FILE *output, const void *seed, size_t seed_size, uint64_t start, uint64_t interval, const char *hn, sd_id128_t machine) argument
|
H A D | journal-authenticate.c | 493 uint8_t *seed; local 500 seed = malloc(seed_size); 501 if (!seed) 513 free(seed); 519 free(seed); 524 seed[c] = (uint8_t) (x * 16 + y); 528 free(seed); 535 free(seed); 539 f->fsprg_seed = seed;
|
H A D | journalctl.c | 1500 uint8_t *mpk, *seed, *state; local 1552 seed = alloca(seed_size); 1563 log_info("Generating seed..."); 1564 r = loop_read_exact(fd, seed, seed_size, true); 1566 log_error_errno(r, "Failed to read random seed: %m"); 1571 FSPRG_GenMK(NULL, mpk, seed, seed_size, FSPRG_RECOMMENDED_SECPAR); 1574 FSPRG_GenState0(state, mpk, seed, seed_size); 1638 printf("%02x", ((uint8_t*) seed)[i]); 1663 print_qr_code(stderr, seed, seed_size, n, arg_interval, hn, machine);
|
/systemd/src/libsystemd-network/ |
H A D | test-ipv4ll-manual.c | 72 unsigned seed; local 74 assert_se(safe_atou(seed_str, &seed) >= 0); 76 assert_se(sd_ipv4ll_set_address_seed(ll, seed) >= 0); 90 static int test_ll(const char *ifname, const char *seed) { argument 109 client_run(ifindex, seed, &ha, e); 125 "\t %s <ifname> [<seed>]", program_invocation_short_name);
|
H A D | sd-ipv4ll.c | 142 uint64_t seed; local 145 seed = siphash24(&addr->ether_addr_octet, ETH_ALEN, HASH_KEY.bytes); 149 r = sd_ipv4ll_set_address_seed(ll, (unsigned) htole64(seed)); 196 int sd_ipv4ll_set_address_seed(sd_ipv4ll *ll, unsigned seed) { argument 211 r = initstate_r(seed, random_data_state, 128, random_data);
|
H A D | test-ipv4ll.c | 103 unsigned seed = 0; local 131 assert_se(sd_ipv4ll_set_address_seed(NULL, seed) == -EINVAL); 132 assert_se(sd_ipv4ll_set_address_seed(ll, seed) == 0);
|
/systemd/src/systemd/ |
H A D | sd-ipv4ll.h | 48 int sd_ipv4ll_set_address_seed(sd_ipv4ll *ll, unsigned seed);
|
/systemd/src/network/ |
H A D | networkd-ipv4ll.c | 202 uint64_t seed; local 216 r = net_get_unique_predictable_data(link->udev_device, &seed); 220 r = sd_ipv4ll_set_address_seed(link->ipv4ll, (unsigned)seed);
|