HomeSort by: relevance | last modified time | path
    Searched refs:key (Results 1 - 25 of 964) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/lib/libcurses/
keyname.c 48 * Return name of key or NULL;
51 keyname(int key)
58 if (key < 0) {
64 if (key == 0x100) {
70 if (key < 0x20) {
72 name[1] = (char) (key + 64); /* Offset of '@' */
78 if (key < 0x7F) {
79 name[0] = (char) key;
84 /* Delete key */
85 if (key == 0x7F)
    [all...]
  /src/lib/libpthread/
tss.c 41 tss_create(tss_t *key, tss_dtor_t dtor)
44 _DIAGASSERT(key != NULL);
46 if (pthread_key_create(key, dtor) == 0)
53 tss_delete(tss_t key)
59 (void)pthread_key_delete(key);
63 tss_get(tss_t key)
66 return pthread_getspecific(key);
70 tss_set(tss_t key, void *val)
73 if (pthread_setspecific(key, val) == 0)
  /src/lib/libtelnet/
encrypt.h 67 #define VALIDKEY(key) ( key[0] | key[1] | key[2] | key[3] | \
68 key[4] | key[5] | key[6] | key[7])
  /src/sys/crypto/skipjack/
skipjack.h 17 extern void skipjack_forwards(u_int8_t *plain, u_int8_t *cipher, u_int8_t **key);
18 extern void skipjack_backwards(u_int8_t *cipher, u_int8_t *plain, u_int8_t **key);
19 extern void subkey_table_gen(const u_int8_t *key, u_int8_t **key_tables);
  /src/sys/netipsec/
key_var.h 57 #define _KEYLEN(key) ((u_int)((key)->sadb_key_bits >> 3))
58 #define _KEYBITS(key) ((u_int)((key)->sadb_key_bits))
59 #define _KEYBUF(key) ((u_int8_t *)((u_int8_t*)(key) + sizeof(struct sadb_key)))
  /src/sys/dev/fdt/
gpiokeys.c 57 /* Key and button events */
162 struct gpiokeys_key *key; local in function:gpiokeys_attach
184 key = kmem_zalloc(sizeof(*key), KM_SLEEP);
185 key->key_sc = sc;
186 key->key_phandle = child;
187 key->key_code = code;
188 key->key_label = kmem_zalloc(len, KM_SLEEP);
189 if (OF_getprop(child, "label", key->key_label, len) != len) {
190 kmem_free(key->key_label, len)
282 struct gpiokeys_key *key; local in function:gpiokeys_tick
300 struct gpiokeys_key *key = priv; local in function:gpiokeys_task
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/asan/
asan_posix.cc 51 tsd_key() : key(nullptr) {}
54 if (key)
55 (*tsd_destructor)(key);
57 void *key; member in struct:__asan::tsd_key
60 static thread_local struct tsd_key key; variable in namespace:__asan
69 return key.key;
75 CHECK(!key.key);
76 key.key = tsd
    [all...]
  /src/sys/dev/sysmon/
sysmon_envsys_util.c 46 sme_sensor_upbool(prop_dictionary_t dict, const char *key, bool val)
52 obj = prop_dictionary_get(dict, key);
55 if (!prop_dictionary_set_bool(dict, key, val)) {
57 __func__, key, val));
62 if (!prop_dictionary_set_bool(dict, key, val)) {
64 __func__, key, val));
73 sme_sensor_upint32(prop_dictionary_t dict, const char *key, int32_t val)
79 obj = prop_dictionary_get(dict, key);
82 if (!prop_dictionary_set_int32(dict, key, val)) {
84 __func__, key, val))
    [all...]
  /src/sys/external/isc/libsodium/dist/test/default/
auth5.c 5 static unsigned char key[32]; variable in typeref:typename:unsigned char[32]
15 crypto_auth_keygen(key);
17 crypto_auth(a, c, clen, key);
18 if (crypto_auth_verify(a, c, clen, key) != 0) {
24 if (crypto_auth_verify(a, c, clen, key) == 0) {
29 if (crypto_auth_verify(a, c, clen, key) == 0) {
auth7.c 5 static unsigned char key[32]; variable in typeref:typename:unsigned char[32]
15 crypto_auth_keygen(key);
17 crypto_auth_hmacsha512(a, c, clen, key);
18 if (crypto_auth_hmacsha512_verify(a, c, clen, key) != 0) {
24 if (crypto_auth_hmacsha512_verify(a, c, clen, key) == 0) {
29 if (crypto_auth_hmacsha512_verify(a, c, clen, key) == 0) {
onetimeauth7.c 5 static unsigned char key[32]; variable in typeref:typename:unsigned char[32]
15 crypto_onetimeauth_keygen(key);
17 crypto_onetimeauth(a, c, clen, key);
18 if (crypto_onetimeauth_verify(a, c, clen, key) != 0) {
24 if (crypto_onetimeauth_verify(a, c, clen, key) == 0) {
29 if (crypto_onetimeauth_verify(a, c, clen, key) == 0) {
auth6.c 6 static unsigned char key[32] = "Jefe"; variable in typeref:typename:unsigned char[32]
16 crypto_auth_hmacsha512(a, c, sizeof c - 1U, key);
  /src/sys/rump/librump/rumpkern/
etfs_wrap.c 39 rump_etfs_register(const char *key, const char *hostpath,
43 return rump__etfs_register(key, hostpath, ftype,
48 rump_etfs_register_withsize(const char *key, const char *hostpath,
52 return rump__etfs_register(key, hostpath, ftype, begin, size);
56 rump_etfs_remove(const char *key)
59 return rump__etfs_remove(key);
  /src/sys/external/bsd/drm2/include/linux/
sysrq.h 42 register_sysrq_key(char key __unused, struct sysrq_key_op *op __unused)
47 unregister_sysrq_key(char key __unused, struct sysrq_key_op *op __unused)
  /src/lib/libc/db/hash/
hash_func.c 62 * Assume that we've already split the bucket to which this key hashes,
74 const uint8_t *key;
78 for (key = keyarg, h = 0; len--;)
79 h = h * PRIME1 ^ (*key++ - ' ');
92 const uint8_t *e, *key;
96 key = keyarg;
97 e = key + len;
98 for (h = 0; key != e;) {
99 c = *key++;
100 if (!c && key > e
166 const uint8_t *key; local in function:hash4
    [all...]
  /src/usr.sbin/wg-keygen/
wg-keygen.c 50 fprintf(stderr, "\t%s : Generate a private key\n", progname);
51 fprintf(stderr, "\t%s --pub : Generate a public key from a private key via stdin\n", progname);
52 fprintf(stderr, "\t%s --psk : Generate a pre-shared key\n", progname);
63 gen_pubkey(uint8_t key[CURVE25519_SIZE], uint8_t pubkey[CURVE25519_SIZE])
67 crypto_scalarmult_curve25519(pubkey, key, basepoint);
71 normalize_key(uint8_t key[KEY_LEN])
75 key[0] &= 248;
76 key[31] &= 127;
77 key[31] |= 64
97 uint8_t key[KEY_LEN]; local in function:main
    [all...]
  /src/tests/lib/libc/db/
h_lfsr.c 61 DBT key, val; local in function:main
74 key.data = kb;
83 key.size = (len & 0xff) + 1;
85 memset(kb, c, key.size);
87 switch ((*db->put)(db, &key, &val, R_NOOVERWRITE)) {
90 key.size, val.size, c);
94 key.size, val.size, c);
97 key.size, val.size, c);
105 key.size = (len & 0xff) + 1;
107 memset(kb, c, key.size)
    [all...]
  /src/lib/libc/citrus/
citrus_hash.c 47 _citrus_string_hash_func(const char *key, int hashsize)
51 _region_init(&r, __UNCONST(key), strlen(key));
  /src/sys/crypto/cast128/
cast128.h 15 u_int32_t xkey[32]; /* Key, after expansion */
19 void cast128_setkey(cast128_key *key, const u_int8_t *rawkey, int keybytes);
20 void cast128_encrypt(const cast128_key *key, const u_int8_t *inblock,
22 void cast128_decrypt(const cast128_key *key, const u_int8_t *inblock,
  /src/usr.sbin/ypserv/revnetgroup/
hash.c 66 const u_char *key; local in function:hash
70 #define HASHC h = *key++ + 65599 * h
73 key = keyarg;
109 * Generate a hash value for a given key (character string).
114 hashkey(const char *key)
117 if (key == NULL)
119 return(hash((const void *)key, strlen(key)) & HASH_MASK);
124 lookup(struct group_entry **table, const char *key)
128 cur = table[hashkey(key)];
    [all...]
  /src/tests/net/ipsec/
algorithms.sh 32 # Valid key lengths of ESP encryption algorithms
78 # Valid key lengths of AH authentication algorithms
157 local key=
160 key="${key}a"
163 if [ ! -z "$key" ]; then
164 key="\"$key\""
167 echo $key
175 local key=$(generate_key $keylen
    [all...]
  /src/sbin/mount_portal/
portald.h 66 char *key, char **v, int *fdp);
74 char *key, char **v, int *fdp);
76 char *key, char **v, int *fdp);
78 char *key, char **v, int *fdp);
80 char *key, char **v, int *fdp);
82 char *key, char **v, int *fdp);
89 extern char **conf_match(qelem *q, char *key);
  /src/sys/external/bsd/drm2/dist/drm/
drm_hashtab.c 68 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key)
75 hashed_key = hash_long(key, ht->order);
76 DRM_DEBUG("Key is 0x%08lx, Hashed key is 0x%08x\n", key, hashed_key);
79 DRM_DEBUG("count %d, key: 0x%08lx\n", count++, entry->key);
83 unsigned long key)
89 hashed_key = hash_long(key, ht->order);
92 if (entry->key == key
124 unsigned long key = item->key; local in function:drm_ht_insert_item
    [all...]
  /src/sys/kern/
subr_optstr.c 41 * Given an options string of the form 'a=b c=d ... y=z' and a key,
42 * looks for the given key's value in the string and returns it in buf
43 * with a maximum of bufsize bytes. If the key is found, returns true;
49 optstr_get_pointer(const char *optstr, const char *key, const char **result)
57 /* Search for the given key within the option string. */
61 /* Check if the next word matches the key. */
62 keyp = key;
71 /* Key not found; skip until next space. */
90 optstr_get(const char *optstr, const char *key, char *buf, size_t bufsize)
93 bool found = optstr_get_pointer(optstr, key, &data)
    [all...]
  /src/lib/libc/stdlib/
lsearch.c 54 lsearch(const void *key, void *base, size_t *nelp, size_t width,
58 _DIAGASSERT(key != NULL);
62 return(linear_base(key, base, nelp, width, compar, 1));
66 lfind(const void *key, const void *base, size_t *nelp, size_t width,
70 _DIAGASSERT(key != NULL);
74 return(linear_base(key, __UNCONST(base), nelp, width, compar, 0));
78 linear_base(const void *key, void *base, size_t *nelp, size_t width,
83 _DIAGASSERT(key != NULL);
89 if (!compar(element, key)) /* key found *
    [all...]

Completed in 21 milliseconds

1 2 3 4 5 6 7 8 91011>>