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

1234567

/freebsd-10.1-release/lib/libc/gen/
H A Dsrand48.c21 srand48(long seed) argument
24 _rand48_seed[1] = (unsigned short) seed;
25 _rand48_seed[2] = (unsigned short) (seed >> 16);
/freebsd-10.1-release/contrib/unbound/util/
H A Drandom.h54 * @param seed: seed value to create state (if no good entropy is found).
56 void ub_systemseed(unsigned int seed);
60 * @param seed: seed value to create state contents.
62 * @param from: if not NULL, the seed is taken from this random structure.
63 * can be used to seed random states via a parent-random-state that
67 struct ub_randstate* ub_initstate(unsigned int seed,
H A Drandom.c100 /* (re)setup system seed */
102 ub_systemseed(unsigned int seed) argument
106 /* try to seed it */
108 unsigned int v = seed;
110 for(i=0; i<256/sizeof(seed); i++) {
111 memmove(buf+i*sizeof(seed), &v, sizeof(seed));
112 v = v*seed + (unsigned int)i;
179 ub_initstate(unsigned int seed, struct ub_randstate* from) argument
186 ub_systemseed(seed);
[all...]
/freebsd-10.1-release/contrib/wpa/src/crypto/
H A Dfips_prf_cryptoapi.c15 int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) argument
H A Dfips_prf_gnutls.c16 int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) argument
H A Dfips_prf_nss.c16 int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) argument
/freebsd-10.1-release/contrib/opie/libopie/
H A Dkeycrunch.c27 int opiekeycrunch FUNCTION((algorithm, result, seed, secret), int algorithm AND
28 struct opie_otpkey *result AND char *seed AND char *secret)
33 if (!result || !seed || !secret)
36 i = strlen(seed) + strlen(secret);
46 while(*seed)
47 if (isspace(*(c2++) = tolower(*(seed++))))
H A Dnewseed.c40 int opienewseed FUNCTION((seed), char *seed) argument
42 if (!seed)
45 if (seed[0]) {
49 if ((i = strlen(seed)) > OPIE_SEED_MAX)
52 for (c = seed + i - 1, max = 1;
53 (c >= seed) && isdigit(*c); c--)
85 if (snprintf(seed, OPIE_SEED_MAX+1, "%s%04d", utsname.nodename,
H A Dpasswd.c26 int opiepasswd FUNCTION((old, flags, principal, n, seed, ks), struct opie *old AND int flags AND char *principal AND int n AND char *seed AND char *ks)
46 opie.opie_seed = seed;
52 if (opiekeycrunch(MDX, &key, seed, ks))
/freebsd-10.1-release/contrib/libucl/src/
H A Dxxhash.h78 unsigned int XXH32 (const void* input, int len, unsigned int seed);
84 "seed" can be used to alter the result predictably.
97 void* XXH32_init (unsigned int seed);
125 XXH_errorcode XXH32_resetState(void* state, unsigned int seed);
/freebsd-10.1-release/lib/libstand/
H A Drandom.c40 srandom(seed)
41 u_long seed;
43 randseed = seed;
/freebsd-10.1-release/crypto/openssl/crypto/des/
H A Dqud_cksm.c78 long length, int out_count, DES_cblock *seed)
101 z0 = Q_B0((*seed)[0]) | Q_B1((*seed)[1]) | Q_B2((*seed)[2]) |
102 Q_B3((*seed)[3]);
103 z1 = Q_B0((*seed)[4]) | Q_B1((*seed)[5]) | Q_B2((*seed)[6]) |
104 Q_B3((*seed)[7]);
77 DES_quad_cksum(const unsigned char *input, DES_cblock output[], long length, int out_count, DES_cblock *seed) argument
/freebsd-10.1-release/contrib/libreadline/
H A Dmbutil.c76 _rl_find_next_mbchar_internal (string, seed, count, find_non_zero)
78 int seed, count, find_non_zero;
88 if (seed < 0)
89 seed = 0;
91 return seed;
93 point = seed + _rl_adjust_point (string, seed, &ps);
94 /* if this is true, means that seed was not pointed character
96 if (seed < point)
144 _rl_find_prev_mbchar_internal (string, seed, find_non_zer
[all...]
/freebsd-10.1-release/sys/libkern/
H A Drandom.c37 #define NSHUFF 50 /* to drop some "seed -> 1st value" linearity */
42 srandom(seed)
43 u_long seed;
47 randseed = seed;
/freebsd-10.1-release/contrib/wpa/src/eap_common/
H A Deap_peap_common.h13 const char *label, const u8 *seed, size_t seed_len,
/freebsd-10.1-release/crypto/openssl/crypto/seed/
H A Dseed_ecb.c1 /* crypto/seed/seed_ecb.c -*- mode:C; c-file-style: "eay" -*- */
52 #include <openssl/seed.h>
H A Dseed_ofb.c1 /* crypto/seed/seed_ofb.c -*- mode:C; c-file-style: "eay" -*- */
108 #include <openssl/seed.h>
H A Dseed_cfb.c1 /* crypto/seed/seed_cfb.c -*- mode:C; c-file-style: "eay" -*- */
108 #include <openssl/seed.h>
H A DMakefile2 # crypto/seed/Makefile
5 DIR= seed
21 LIBSRC=seed.c seed_ecb.c seed_cbc.c seed_cfb.c seed_ofb.c
22 LIBOBJ=seed.o seed_ecb.o seed_cbc.o seed_cfb.o seed_ofb.o
26 EXHEADER= seed.h
80 seed.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
81 seed.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
82 seed.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
83 seed.o: ../../include/openssl/seed
[all...]
/freebsd-10.1-release/usr.bin/newkey/
H A Dgeneric.c59 * Generate a seed
62 getseed(char *seed, int seedsize, unsigned char *pass) argument
67 seed[i] = (arc4random() & 0xff) ^ pass[i % 8];
89 unsigned short seed[KEYSIZE/BASEBITS + 1]; local
92 getseed((char *)seed, sizeof (seed), (u_char *)pass);
94 r = seed[i] % BASE;
/freebsd-10.1-release/crypto/openssl/crypto/evp/
H A De_seed.c62 # include <openssl/seed.h>
72 IMPLEMENT_BLOCK_CIPHER(seed, ks, SEED, EVP_SEED_KEY, NID_seed,
/freebsd-10.1-release/usr.bin/enigma/
H A Denigma.c43 int32_t seed; local
53 seed = 123;
55 seed = seed*buf[i] + i;
61 seed = 5*seed + buf[i%13];
62 rnd = seed % 65521;
142 static int32_t seed = 123; local
145 seed = 5*seed
[all...]
/freebsd-10.1-release/contrib/opie/
H A Dopieauto.c56 char seed[OPIE_SEED_MAX+1]; member in struct:cachedotp
87 char *seed = NULL, *response = NULL; local
114 if (!(c = strchr(seed = c + 1, ' '))) {
116 fprintf(stderr, "%s: got bogus seed: %s\n", myname, cmd);
132 if (!(c = strchr(seed = c + 1, '\n'))) {
134 fprintf(stderr, "%s: got bogus seed: %s\n", myname, cmd);
144 fprintf(stderr, "got cmd=%c, algorithm=%d sequence=%d seed=+%s+ response=+%s+ on fd %d\n", cmd[0], algorithm, sequence, seed, response, fd);
147 seed = strdup(seed);
[all...]
/freebsd-10.1-release/contrib/ntp/lib/isc/include/isc/
H A Drandom.h39 isc_random_seed(isc_uint32_t seed);
41 * Set the initial seed of the random state.
/freebsd-10.1-release/crypto/openssl/crypto/rsa/
H A Drsa_oaep.c32 const unsigned char *seed, long seedlen);
39 unsigned char *db, *seed; local
54 seed = to + 1;
63 if (RAND_bytes(seed, SHA_DIGEST_LENGTH) <= 0)
66 memcpy(seed,
77 if (MGF1(dbmask, emlen - SHA_DIGEST_LENGTH, seed, SHA_DIGEST_LENGTH) < 0)
85 seed[i] ^= seedmask[i];
102 unsigned char *db = NULL, *em = NULL, seed[EVP_MAX_MD_SIZE], local
148 if (MGF1(seed, SHA_DIGEST_LENGTH, maskeddb, dblen))
151 seed[
212 PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst) argument
252 MGF1(unsigned char *mask, long len, const unsigned char *seed, long seedlen) argument
[all...]

Completed in 158 milliseconds

1234567