/freebsd-10.0-release/lib/libc/gen/ |
H A D | srand48.c | 21 srand48(long seed) argument 24 _rand48_seed[1] = (unsigned short) seed; 25 _rand48_seed[2] = (unsigned short) (seed >> 16);
|
/freebsd-10.0-release/contrib/unbound/util/ |
H A D | random.h | 54 * @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 D | random.c | 99 /* (re)setup system seed */ 101 ub_systemseed(unsigned int seed) argument 105 /* try to seed it */ 107 unsigned int v = seed; 109 for(i=0; i<256/sizeof(seed); i++) { 110 memmove(buf+i*sizeof(seed), &v, sizeof(seed)); 111 v = v*seed + (unsigned int)i; 178 ub_initstate(unsigned int seed, struct ub_randstate* from) argument 185 ub_systemseed(seed); [all...] |
/freebsd-10.0-release/contrib/wpa/src/crypto/ |
H A D | fips_prf_cryptoapi.c | 15 int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) argument
|
H A D | fips_prf_gnutls.c | 16 int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) argument
|
H A D | fips_prf_nss.c | 16 int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen) argument
|
/freebsd-10.0-release/contrib/opie/libopie/ |
H A D | keycrunch.c | 27 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 D | newseed.c | 40 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 D | passwd.c | 26 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.0-release/lib/libstand/ |
H A D | random.c | 40 srandom(seed) 41 u_long seed; 43 randseed = seed;
|
/freebsd-10.0-release/crypto/openssl/crypto/des/ |
H A D | qud_cksm.c | 77 long length, int out_count, DES_cblock *seed) 96 z0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]); 97 z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]); 76 DES_quad_cksum(const unsigned char *input, DES_cblock output[], long length, int out_count, DES_cblock *seed) argument
|
/freebsd-10.0-release/sys/libkern/ |
H A D | random.c | 37 #define NSHUFF 50 /* to drop some "seed -> 1st value" linearity */ 42 srandom(seed) 43 u_long seed; 47 randseed = seed;
|
/freebsd-10.0-release/contrib/libreadline/ |
H A D | mbutil.c | 76 _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.0-release/contrib/wpa/src/eap_common/ |
H A D | eap_peap_common.h | 13 const char *label, const u8 *seed, size_t seed_len,
|
/freebsd-10.0-release/crypto/openssl/crypto/seed/ |
H A D | seed_ecb.c | 1 /* crypto/seed/seed_ecb.c -*- mode:C; c-file-style: "eay" -*- */ 52 #include <openssl/seed.h>
|
H A D | seed_cfb.c | 1 /* crypto/seed/seed_cfb.c -*- mode:C; c-file-style: "eay" -*- */ 108 #include <openssl/seed.h>
|
H A D | seed_ofb.c | 1 /* crypto/seed/seed_ofb.c -*- mode:C; c-file-style: "eay" -*- */ 108 #include <openssl/seed.h>
|
H A D | Makefile | 2 # 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 78 seed.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 79 seed.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 80 seed.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 81 seed.o: ../../include/openssl/seed [all...] |
/freebsd-10.0-release/usr.bin/newkey/ |
H A D | generic.c | 59 * 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.0-release/crypto/openssl/crypto/evp/ |
H A D | e_seed.c | 62 #include <openssl/seed.h> 72 IMPLEMENT_BLOCK_CIPHER(seed, ks, SEED, EVP_SEED_KEY, NID_seed,
|
/freebsd-10.0-release/usr.bin/enigma/ |
H A D | enigma.c | 43 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.0-release/contrib/opie/ |
H A D | opieauto.c | 56 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.0-release/crypto/openssl/crypto/rsa/ |
H A D | rsa_oaep.c | 33 const unsigned char *seed, long seedlen); 40 unsigned char *db, *seed; local 57 seed = to + 1; 66 if (RAND_bytes(seed, SHA_DIGEST_LENGTH) <= 0) 69 memcpy(seed, 81 if (MGF1(dbmask, emlen - SHA_DIGEST_LENGTH, seed, SHA_DIGEST_LENGTH) < 0) 89 seed[i] ^= seedmask[i]; 104 unsigned char *db = NULL, *em = NULL, seed[EVP_MAX_MD_SIZE], local 151 if (MGF1(seed, SHA_DIGEST_LENGTH, maskeddb, dblen)) 154 seed[ 212 PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst) argument 256 MGF1(unsigned char *mask, long len, const unsigned char *seed, long seedlen) argument [all...] |
/freebsd-10.0-release/tools/regression/netinet/tcpstream/ |
H A D | tcpstream.c | 57 fprintf(stderr, "tcpstream client [ip] [port] [seed]\n"); 58 fprintf(stderr, "tcpstream server [port] [seed]\n"); 84 tcpstream_client(struct sockaddr_in sin, long seed) argument 90 srandom(seed); 118 tcpstream_server(struct sockaddr_in sin, long seed) argument 152 srandom(seed); 183 long port, seed; local 204 seed = strtoul(argv[4], &dummy, 10); 208 tcpstream_client(sin, seed); 224 seed [all...] |
/freebsd-10.0-release/contrib/ldns/ |
H A D | util.c | 328 /* if fp is given, seed srandom with data from file 331 uint8_t *seed; local 337 standard prng seed */ 342 seed = LDNS_XMALLOC(uint8_t, size); 343 if(!seed) { 355 seed[read] = (uint8_t) (tv.tv_usec % 256); 358 read = fread(seed, 1, size, rand_f); 361 read = fread(seed, 1, size, rand_f); 365 read = fread(seed, 1, size, rand_f); 369 LDNS_FREE(seed); 422 size_t i, j = 0, rounds, seed = 1; local [all...] |