| /src/lib/libcurses/ |
| H A D | keyname.c | 48 * Return name of key or NULL; 51 keyname(int key) argument 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 493 key_name(wchar_t key) argument [all...] |
| /src/lib/libpthread/ |
| H A D | tss.c | 41 tss_create(tss_t *key, tss_dtor_t dtor) argument 44 _DIAGASSERT(key != NULL); 46 if (pthread_key_create(key, dtor) == 0) 53 tss_delete(tss_t key) argument 59 (void)pthread_key_delete(key); 63 tss_get(tss_t key) argument 66 return pthread_getspecific(key); 70 tss_set(tss_t key, void *val) argument 73 if (pthread_setspecific(key, val) == 0)
|
| /src/lib/libtelnet/ |
| H A D | 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/ |
| H A D | 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/ |
| H A D | 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/ |
| H A D | gpiokeys.c | 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); 191 kmem_free(key, sizeo 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/ |
| H A D | 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 [all...] |
| /src/sys/external/isc/libsodium/dist/test/default/ |
| H A D | 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) {
|
| H A D | 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) {
|
| H A D | 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) {
|
| H A D | 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/dev/sysmon/ |
| H A D | sysmon_envsys_util.c | 46 sme_sensor_upbool(prop_dictionary_t dict, const char *key, bool val) argument 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) argument 79 obj = prop_dictionary_get(dict, key); 82 if (!prop_dictionary_set_int32(dict, key, val)) { 84 __func__, key, va 100 sme_sensor_upuint32(prop_dictionary_t dict,const char * key,uint32_t val) argument 127 sme_sensor_upstring(prop_dictionary_t dict,const char * key,const char * str) argument [all...] |
| /src/sys/rump/librump/rumpkern/ |
| H A D | etfs_wrap.c | 39 rump_etfs_register(const char *key, const char *hostpath, argument 43 return rump__etfs_register(key, hostpath, ftype, 48 rump_etfs_register_withsize(const char *key, const char *hostpath, argument 52 return rump__etfs_register(key, hostpath, ftype, begin, size); 56 rump_etfs_remove(const char *key) argument 59 return rump__etfs_remove(key);
|
| /src/sys/crypto/aes/ |
| H A D | aes_keysched.c | 47 * aes_keysched_enc(rk, key, keybytes) 49 * Compute the standard AES encryption key schedule, expanding a 50 * 16-, 24-, or 32-byte key into 44, 52, or 60 32-bit round keys 51 * for encryption. Returns the number of rounds for the key of 55 aes_keysched_enc(uint32_t *rk, const void *key, size_t keybytes) argument 59 return br_aes_ct64_keysched_stdenc(rk, key, keybytes); 61 return br_aes_ct_keysched_stdenc(rk, key, keybytes); 66 * aes_keysched_dec(rk, key, keybytes) 68 * Compute the standard AES decryption key schedule, expanding a 69 * 16-, 24-, or 32-byte key int 74 aes_keysched_dec(uint32_t * rk,const void * key,size_t keybytes) argument [all...] |
| /src/sys/external/bsd/drm2/include/linux/ |
| H A D | 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/ |
| H A D | 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 > 166 const uint8_t *key; local in function:hash4 [all...] |
| /src/usr.sbin/wg-keygen/ |
| H A D | 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]) argument 67 crypto_scalarmult_curve25519(pubkey, key, basepoint); 71 normalize_key(uint8_t key[KEY_LEN]) argument 75 key[0] &= 248; 76 key[31] &= 127; 77 key[3 81 base64(uint8_t key[KEY_LEN]) argument 97 uint8_t key[KEY_LEN]; local in function:main [all...] |
| /src/tests/lib/libc/db/ |
| H A D | 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 [all...] |
| /src/sys/crypto/cast128/ |
| H A D | cast128.h | 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/lib/libc/citrus/ |
| H A D | citrus_hash.c | 47 _citrus_string_hash_func(const char *key, int hashsize) argument 51 _region_init(&r, __UNCONST(key), strlen(key));
|
| /src/usr.sbin/ypserv/revnetgroup/ |
| H A D | 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) argument 117 if (key == NULL) 119 return(hash((const void *)key, strlen(key)) & HASH_MASK); 124 lookup(struct group_entry **table, const char *key) argument 128 cur = table[hashkey(key)]; 157 store(struct group_entry * table[],const char * key,const char * data) argument 186 mstore(struct member_entry * table[],const char * key,const char * data,const char * domain) argument [all...] |
| /src/tests/net/ipsec/ |
| H A D | 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 [all...] |
| /src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_hashtab.c | 68 void drm_ht_verbose_list(struct drm_open_hash *ht, unsigned long key) argument 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) 82 drm_ht_find_key(struct drm_open_hash * ht,unsigned long key) argument 100 drm_ht_find_key_rcu(struct drm_open_hash * ht,unsigned long key) argument 124 unsigned long key = item->key; local in function:drm_ht_insert_item 174 drm_ht_find_item(struct drm_open_hash * ht,unsigned long key,struct drm_hash_item ** item) argument 188 drm_ht_remove_key(struct drm_open_hash * ht,unsigned long key) argument [all...] |
| /src/sbin/mount_portal/ |
| H A D | 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/kern/ |
| H A D | 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) argument 57 /* Search for the given key within the option string. */ 61 /* Check if the next word matches the key. */ 62 keyp = key; 90 optstr_get(const char *optstr, const char *key, char *buf, size_t bufsize) argument 93 bool found = optstr_get_pointer(optstr, key, &data); 95 /* If the key wa 108 optstr_get_string(const char * optstr,const char * key,const char ** result) argument 121 optstr_get_number(const char * optstr,const char * key,unsigned long * result) argument 139 optstr_get_number_hex(const char * optstr,const char * key,unsigned long * result) argument 158 optstr_get_number_binary(const char * optstr,const char * key,unsigned long * result) argument 179 optstr_get_macaddr(const char * optstr,const char * key,uint8_t result[ETHER_ADDR_LEN]) argument [all...] |