Searched refs:seed (Results 1 - 13 of 13) sorted by relevance

/systemd/src/basic/
H A DMurmurHash2.h29 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed );
H A DMurmurHash2.c37 uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed )
47 uint32_t h = seed ^ len;
/systemd/src/journal/
H A Djournal-qrcode.h27 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 Dfsprg.h43 /* 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 Dfsprg.c93 /* 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 Djournal-qrcode.c48 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 Djournal-authenticate.c493 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 Djournalctl.c1500 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 Dtest-ipv4ll-manual.c72 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 Dsd-ipv4ll.c142 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 Dtest-ipv4ll.c103 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 Dsd-ipv4ll.h48 int sd_ipv4ll_set_address_seed(sd_ipv4ll *ll, unsigned seed);
/systemd/src/network/
H A Dnetworkd-ipv4ll.c202 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);

Completed in 57 milliseconds