/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | crypto-des.c | 41 krb5_keyblock *key) 43 DES_cblock *k = key->keyvalue.data; 53 struct _krb5_key_data *key) 55 DES_set_key_unchecked(key->key->keyvalue.data, key->schedule->data); 60 krb5_keyblock *key, 64 DES_cblock *k = key->keyvalue.data; 65 memcpy(k, data, key->keyvalue.length); 101 struct _krb5_key_data *key, 40 krb5_DES_random_key(krb5_context context, krb5_keyblock *key) argument 51 krb5_DES_schedule_old(krb5_context context, struct _krb5_key_type *kt, struct _krb5_key_data *key) argument 59 krb5_DES_random_to_key(krb5_context context, krb5_keyblock *key, const void *data, size_t size) argument 100 CRC32_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument 119 RSA_MD4_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument 132 RSA_MD4_DES_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *cksum) argument 143 RSA_MD4_DES_verify(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument 154 RSA_MD5_DES_checksum(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument 165 RSA_MD5_DES_verify(krb5_context context, struct _krb5_key_data *key, const void *data, size_t len, unsigned usage, Checksum *C) argument 216 evp_des_encrypt_null_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument 235 evp_des_encrypt_key_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument 254 DES_CFB64_encrypt_null_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument 272 DES_PCBC_encrypt_key_ivec(krb5_context context, struct _krb5_key_data *key, void *data, size_t len, krb5_boolean encryptp, int usage, void *ignore_ivec) argument [all...] |
H A D | salt-des.c | 42 * encryption key. It is compatible with the original Andrew authentication 52 DES_cblock *key) 65 memcpy(key, crypt(password, "p1") + 2, sizeof(DES_cblock)); 71 ((unsigned char*)key)[i] <<= 1; 72 DES_set_odd_parity (key); 81 DES_cblock *key) 108 DES_cbc_cksum ((void*)password, key, passlen, &schedule, &ivec); 114 DES_set_odd_parity (key); 123 krb5_keyblock *key) 130 key 50 krb5_DES_AFS3_CMU_string_to_key(krb5_data pw, krb5_data cell, DES_cblock *key) argument 79 krb5_DES_AFS3_Transarc_string_to_key(krb5_data pw, krb5_data cell, DES_cblock *key) argument 118 DES_AFS3_string_to_key(krb5_context context, krb5_enctype enctype, krb5_data password, krb5_salt salt, krb5_data opaque, krb5_keyblock *key) argument 138 DES_string_to_key_int(unsigned char *data, size_t length, DES_cblock *key) argument 171 krb5_DES_string_to_key(krb5_context context, krb5_enctype enctype, krb5_data password, krb5_salt salt, krb5_data opaque, krb5_keyblock *key) argument [all...] |
/freebsd-11-stable/contrib/netbsd-tests/include/sys/ |
H A D | t_tree.c | 38 int key; member in struct:mist 46 return (b->key - a->key); /* wrong, can overflow */ 48 if (b->key > a->key) 50 else if (b->key < a->key) 61 addmist(int key) argument 66 m->key = key; [all...] |
/freebsd-11-stable/contrib/libreadline/ |
H A D | misc.c | 123 int key, r; local 125 key = c; 127 /* If we see a key bound to `universal-argument' after seeing digits, 144 key = rl_read_key (); 149 if (key < 0) 151 return (_rl_dispatch (key, _rl_keymap)); 179 r = _rl_dispatch (key, _rl_keymap); 232 rl_digit_argument (ignore, key) 233 int ignore, key; 238 _rl_arg_dispatch (_rl_argcxt, key); [all...] |
/freebsd-11-stable/usr.sbin/yp_mkdb/ |
H A D | yp_mkdb.c | 80 DBT key, data; local 87 key.data = NULL; 88 while (yp_next_record(dbp, &key, &data, 1, 1) == YP_TRUE) 89 printf("%.*s %.*s\n", (int)key.size, (char *)key.data, 112 DBT key, data; local 197 key.data = "YP_INTERDOMAIN"; 198 key.size = sizeof("YP_INTERDOMAIN") - 1; 201 yp_put_record(dbp, &key, &data, 0); 205 key [all...] |
/freebsd-11-stable/contrib/jemalloc/src/ |
H A D | ckh.c | 49 * Search bucket for key and return the cell number if found; SIZE_T_MAX 53 ckh_bucket_search(ckh_t *ckh, size_t bucket, const void *key) argument 60 if (cell->key != NULL && ckh->keycomp(key, cell->key)) 68 * Search table for key and return cell number if found; SIZE_T_MAX otherwise. 71 ckh_isearch(ckh_t *ckh, const void *key) argument 77 ckh->hash(key, hashes); 81 cell = ckh_bucket_search(ckh, bucket, key); 87 cell = ckh_bucket_search(ckh, bucket, key); 92 ckh_try_bucket_insert(ckh_t *ckh, size_t bucket, const void *key, const void *data) argument 127 const void *key, *data, *tkey, *tdata; local 198 const void *key = *argkey; local 227 const void *key, *data; local 439 ckh_iter(ckh_t *ckh, size_t *tabind, void **key, void **data) argument 459 ckh_insert(tsdn_t *tsdn, ckh_t *ckh, const void *key, const void *data) argument 483 ckh_remove(tsdn_t *tsdn, ckh_t *ckh, const void *searchkey, void **key, void **data) argument 515 ckh_search(ckh_t *ckh, const void *searchkey, void **key, void **data) argument 534 ckh_string_hash(const void *key, size_t r_hash[2]) argument 551 ckh_pointer_hash(const void *key, size_t r_hash[2]) argument [all...] |
/freebsd-11-stable/contrib/gcc/ |
H A D | prefix.c | 43 be considered a "key" and looked up as follows: 46 an entry of "key" in 54 key_ROOT (the value of "key" concatenated with the constant "_ROOT") 92 get_key_value (char *key) argument 98 prefix = lookup_key (key); 102 prefix = getenv (temp = concat (key, "_ROOT", NULL)); 131 /* Look up "key" in the registry, as above. */ 134 lookup_key (char *key) argument 164 res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); 168 res = RegQueryValueExA (reg_key, key, 189 char *key, *old_name; local 250 update_path(const char *path, const char *key) argument [all...] |
/freebsd-11-stable/usr.bin/grep/regex/ |
H A D | hashtable.c | 59 * each of which has a key of key_size bytes and a value of value_size 95 * Places the key-value pair to the hashtable tbl. 97 * HASH_OK: if the key was not present in the hash table yet 99 * HASH_UPDATED: if the value for the key has been updated with the 107 hashtable_put(hashtable *tbl, const void *key, const void *value) argument 117 hash = hash32_buf(key, tbl->key_size, hash) % tbl->table_size; 123 * with the same key (and update it) or we find a free space. 129 else if (memcmp(tbl->entries[hash]->key, key, tbl->key_size) == 0) 149 tbl->entries[hash]->key 181 hashtable_lookup(const hashtable *tbl, const void *key) argument 209 hashtable_get(hashtable *tbl, const void *key, void *value) argument 231 hashtable_remove(hashtable *tbl, const void *key) argument [all...] |
/freebsd-11-stable/lib/libc/yp/ |
H A D | xdryp.c | 66 char *key, *val; local 84 key = (char *)malloc(out.ypresp_all_u.val.key.keydat_len + 1); 85 if (key == NULL) { 90 bcopy(out.ypresp_all_u.val.key.keydat_val, key, 91 out.ypresp_all_u.val.key.keydat_len); 92 key[out.ypresp_all_u.val.key.keydat_len] = '\0'; 95 free(key); [all...] |
/freebsd-11-stable/crypto/openssl/crypto/des/ |
H A D | str2key.c | 62 void DES_string_to_key(const char *str, DES_cblock *key) argument 68 memset(key, 0, 8); 72 (*key)[i % 8] ^= (str[i] << 1); 77 (*key)[i % 8] ^= (j << 1); 83 (*key)[7 - (i % 8)] ^= j; 87 DES_set_odd_parity(key); 89 if (DES_is_weak_key(key)) 90 (*key)[7] ^= 0xF0; 91 DES_set_key(key, &ks); 93 DES_set_key_unchecked(key, [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_dict_helpers.h | 27 const char *key, const char *value); 30 const char *key, 34 const char *key, 38 const char *key, 42 const char *key, 46 const char *key, 50 const char *key, 54 const char *key, 60 const char *key, const char *type, 66 const char *key, 119 const char *key; /** key of the dict entry */ member in struct:wpa_dbus_dict_entry [all...] |
/freebsd-11-stable/contrib/unbound/iterator/ |
H A D | iter_fwd.c | 118 node->node.key = node; 291 struct iter_forward_zone key; local 292 key.node.key = &key; 293 key.dclass = c; 294 key.name = nm; 295 key.namelabs = dname_count_size_labels(key.name, &key 345 struct iter_forward_zone key; local 361 struct iter_forward_zone key; local 399 struct iter_forward_zone key; local 463 struct iter_forward_zone key; local [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/hcsecd/ |
H A D | hcsecd.c | 57 (int sock, struct sockaddr_hci *addr, bdaddr_p bdaddr, uint8_t *key); 216 link_key_p key = NULL; local 222 if ((key = get_key(bdaddr, 0)) != NULL) { 225 bt_ntoa(&key->bdaddr, NULL), 226 (key->name != NULL)? key->name : "No name", 227 (key->pin != NULL)? "exists" : "doesn't exist"); 229 return (send_pin_code_reply(sock, addr, bdaddr, key->pin)); 243 link_key_p key = NULL; local 249 if ((key 326 send_link_key_reply(int sock, struct sockaddr_hci *addr, bdaddr_p bdaddr, uint8_t *key) argument 387 link_key_p key = NULL; local [all...] |
/freebsd-11-stable/contrib/apr-util/dbm/sdbm/ |
H A D | sdbm_pair.c | 53 * | key | data | key | 82 putpair(pag, key, val) 84 apr_sdbm_datum_t key; 93 * enter the key first 95 off -= key.dsize; 96 (void) memcpy(pag + off, key.dptr, key.dsize); 111 getpair(pag, key) 113 apr_sdbm_datum_t key; 145 apr_sdbm_datum_t key; local 259 apr_sdbm_datum_t key; local [all...] |
/freebsd-11-stable/sys/dev/nxge/xgehal/ |
H A D | xgehal-mgmtaux.c | 34 #define __hal_aux_snprintf(retbuf, bufsize, fmt, key, value, retsize) \ 36 retsize = xge_os_snprintf(retbuf, bufsize, fmt, key, \ 40 #define __hal_aux_snprintf(retbuf, bufsize, fmt, key, value, retsize) \ 42 retsize = xge_os_sprintf(retbuf, fmt, key, XGE_HAL_AUX_SEPA, value); \ 52 #define __HAL_AUX_ENTRY(key, value, fmt) \ 54 __hal_aux_snprintf(ptr, leftsize, "%s%c"fmt"\n", key, value, entrysize) 956 char key[XGE_OS_SPRINTF_STRLEN]; local 965 (void) xge_os_sprintf(key, "ring%d_", channel->post_qid); 967 xge_os_strcpy(key+6, "full_cnt"); 968 __HAL_AUX_ENTRY(key, chsta 987 char key[XGE_OS_SPRINTF_STRLEN]; local 1208 char key[XGE_OS_SPRINTF_STRLEN]; local 1254 char key[XGE_OS_SPRINTF_STRLEN]; local 1291 char key[XGE_OS_SPRINTF_STRLEN]; local 1510 char key[XGE_OS_SPRINTF_STRLEN]; local [all...] |
/freebsd-11-stable/crypto/openssl/crypto/evp/ |
H A D | evp_pkey.c | 67 /* Extract a private key from a PKCS8 structure */ 112 /* Turn a private key into a PKCS8 structure */ 171 int EVP_PKEY_get_attr_count(const EVP_PKEY *key) argument 173 return X509at_get_attr_count(key->attributes); 176 int EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos) argument 178 return X509at_get_attr_by_NID(key->attributes, nid, lastpos); 181 int EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, ASN1_OBJECT *obj, argument 184 return X509at_get_attr_by_OBJ(key->attributes, obj, lastpos); 187 X509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc) argument 189 return X509at_get_attr(key 192 EVP_PKEY_delete_attr(EVP_PKEY *key, int loc) argument 197 EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr) argument 204 EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key, const ASN1_OBJECT *obj, int type, const unsigned char *bytes, int len) argument 213 EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key, int nid, int type, const unsigned char *bytes, int len) argument 222 EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key, const char *attrname, int type, const unsigned char *bytes, int len) argument [all...] |
/freebsd-11-stable/usr.sbin/ypserv/ |
H A D | yp_dblookup.c | 75 char *key; member in struct:dbent 133 * package, including the memory pointed to by q->dbptr->key. 134 * This means we don't have to free q->dbptr->key here. 204 DBT key = { NULL, 0 }, data = { NULL, 0 }; local 207 key.data = inter_string; 208 key.size = inter_sz; 210 if (!(dbp->get)(dbp, &key, &data, 0)) 213 key.data = secure_string; 214 key.size = secure_sz; 216 if (!(dbp->get)(dbp, &key, 319 yp_find_db(const char *name, const char *key, int size) argument 351 yp_open_db_cache(const char *domain, const char *map, const char *key, const int size) argument 452 yp_get_record(DB *dbp, const DBT *key, DBT *data, int allow) argument 517 yp_first_record(const DB *dbp, DBT *key, DBT *data, int allow) argument 569 yp_next_record(const DB *dbp, DBT *key, DBT *data, int all, int allow) argument 662 yp_select_map(char *map, char *domain, keydat *key, int allow) argument 676 yp_getbykey(keydat *key, valdat *val) argument 696 yp_firstbykey(keydat *key, valdat *val) argument 714 yp_nextbykey(keydat *key, valdat *val) argument [all...] |
/freebsd-11-stable/usr.sbin/sa/ |
H A D | db.c | 60 int (*v1_to_v2)(DBT *key, DBT *data)) 62 DBT key, data; local 84 key.data = (void*)&VERSION_KEY; 85 key.size = sizeof(VERSION_KEY); 87 rv = DB_GET(ddb, &key, &data, 0); 89 warn("get version key from %s stats", uname); 108 for (rv = DB_SEQ(ddb, &key, &data, R_FIRST); rv == 0; 109 rv = DB_SEQ(ddb, &key, &data, R_NEXT)) { 112 if (key.size == sizeof(VERSION_KEY) && 113 memcmp(key 59 db_copy_in(DB **mdb, const char *dbname, const char *uname, BTREEINFO *bti, int (*v1_to_v2)(DBT *key, DBT *data)) argument 154 DBT key, data; local [all...] |
/freebsd-11-stable/contrib/jemalloc/include/jemalloc/internal/ |
H A D | ckh.h | 28 const void *key; member in struct:ckhc_s 71 bool ckh_iter(ckh_t *ckh, size_t *tabind, void **key, void **data); 72 bool ckh_insert(tsdn_t *tsdn, ckh_t *ckh, const void *key, const void *data); 73 bool ckh_remove(tsdn_t *tsdn, ckh_t *ckh, const void *searchkey, void **key, 75 bool ckh_search(ckh_t *ckh, const void *searchkey, void **key, void **data); 76 void ckh_string_hash(const void *key, size_t r_hash[2]); 78 void ckh_pointer_hash(const void *key, size_t r_hash[2]);
|
/freebsd-11-stable/sys/crypto/blowfish/ |
H A D | bf_skey.c | 73 BF_set_key(key, len, data) 74 BF_KEY *key; 82 memcpy((char *)key, (const char *)&bf_init, sizeof(BF_KEY)); 83 p = key->P; 112 BF_encrypt(in, key); 117 p = key->S; 119 BF_encrypt(in, key);
|
/freebsd-11-stable/contrib/opie/libopie/ |
H A D | passwd.c | 18 Added code to compute the key from the secret. Use the opie_ 50 struct opie_otpkey key; local 53 if (opiekeycrunch(MDX, &key, seed, ks)) 56 opiehash(&key, MDX); 57 if (!(opie.opie_val = opiebtoa8(opie.opie_buf, &key))) 60 if ((opieetob(&key, ks) != 1) && !opieatob8(&key, ks)) 62 if (!(opie.opie_val = opiebtoa8(opie.opie_buf, &key)))
|
/freebsd-11-stable/lib/libc/stdlib/ |
H A D | lsearch.c | 22 void *lsearch(const void *key, void *base, size_t *nelp, size_t width, argument 26 return (lwork(key, base, nelp, width, compar, 1)); 29 void *lfind(const void *key, const void *base, size_t *nelp, size_t width, argument 33 return (lwork(key, base, nelp, width, compar, 0)); 37 lwork(const void *key, const void *base, size_t *nelp, size_t width, argument 44 if (compar(key, ep) == 0) 48 /* lfind() shall return when the key was not found. */ 53 * lsearch() adds the key to the end of the table and increments 56 memcpy(endp, key, width);
|
/freebsd-11-stable/contrib/wpa/src/crypto/ |
H A D | md5.c | 18 * @key: Key for HMAC operations 19 * @key_len: Length of the key in bytes 26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, argument 29 u8 k_pad[64]; /* padding - key XORd with ipad/opad */ 43 /* if key is longer than 64 bytes reset it to key = MD5(key) */ 45 if (md5_vector(1, &key, &key_len, tk)) 47 key = tk; 55 * where K is an n byte key 105 hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument [all...] |
H A D | sha256.c | 18 * @key: Key for HMAC operations 19 * @key_len: Length of the key in bytes 26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem, argument 29 unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */ 42 /* if key is longer than 64 bytes reset it to key = SHA256(key) */ 44 if (sha256_vector(1, &key, &key_len, tk) < 0) 46 key = tk; 54 * where K is an n byte key 100 hmac_sha256(const u8 *key, size_t key_len, const u8 *data, size_t data_len, u8 *mac) argument [all...] |
/freebsd-11-stable/lib/libc/db/test/hash.tests/ |
H A D | tverify.c | 62 DBT key, res; local 82 key.data = wp1; 89 key.size = strlen(wp1); 91 stat = (dbp->get)(dbp, &key, &res,0); 93 fprintf ( stderr, "Error retrieving %s\n", key.data ); 96 fprintf ( stderr, "%s not found\n", key.data ); 100 fprintf ( stderr, "data for %s is incorrect. Data was %s. Should have been %s\n", key.data, res.data, wp2 );
|