Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 682) sorted by relevance

12345678910>>...28

/NextBSD/usr.sbin/ctld/
HDkeys.c41 struct keys *
44 struct keys *keys; in keys_new() local
46 keys = calloc(sizeof(*keys), 1); in keys_new()
47 if (keys == NULL) in keys_new()
50 return (keys); in keys_new()
54 keys_delete(struct keys *keys) in keys_delete() argument
57 free(keys->keys_data); in keys_delete()
58 free(keys); in keys_delete()
62 keys_load(struct keys *keys, const struct pdu *pdu) in keys_load() argument
74 assert(keys->keys_data == NULL); in keys_load()
[all …]
/NextBSD/usr.sbin/iscsid/
HDkeys.c41 struct keys *
44 struct keys *keys; in keys_new() local
46 keys = calloc(sizeof(*keys), 1); in keys_new()
47 if (keys == NULL) in keys_new()
50 return (keys); in keys_new()
54 keys_delete(struct keys *keys) in keys_delete() argument
57 free(keys->keys_data); in keys_delete()
58 free(keys); in keys_delete()
62 keys_load(struct keys *keys, const struct pdu *pdu) in keys_load() argument
74 assert(keys->keys_data == NULL); in keys_load()
[all …]
HDiscsid.h77 struct keys { struct
114 struct keys *keys_new(void);
115 void keys_delete(struct keys *key);
116 void keys_load(struct keys *keys, const struct pdu *pdu);
117 void keys_save(struct keys *keys, struct pdu *pdu);
118 const char *keys_find(struct keys *keys, const char *name);
119 void keys_add(struct keys *keys,
121 void keys_add_int(struct keys *keys,
/NextBSD/contrib/wpa/src/eap_common/
HDikev2_common.c372 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument
381 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data()
395 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data()
430 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() argument
441 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload()
442 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar; in ikev2_decrypt_payload()
477 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload()
500 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload()
531 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument
541 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_build_encrypted()
[all …]
HDeap_ikev2_common.c18 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys, in eap_ikev2_derive_keymat() argument
27 if (keys->SK_d == NULL || i_nonce == NULL || r_nonce == NULL) in eap_ikev2_derive_keymat()
37 if (ikev2_prf_plus(prf, keys->SK_d, keys->SK_d_len, nonces, nlen, in eap_ikev2_derive_keymat()
68 int eap_ikev2_validate_icv(int integ_alg, struct ikev2_keys *keys, in eap_ikev2_validate_icv() argument
75 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar; in eap_ikev2_validate_icv()
96 if (ikev2_integ_hash(integ_alg, SK_a, keys->SK_integ_len, in eap_ikev2_validate_icv()
/NextBSD/crypto/heimdal/lib/kadm5/
HDset_keys.c47 Key *keys; in _kadm5_set_keys() local
53 password, &keys, &num_keys); in _kadm5_set_keys()
57 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val); in _kadm5_set_keys()
58 ent->keys.val = keys; in _kadm5_set_keys()
59 ent->keys.len = num_keys; in _kadm5_set_keys()
88 Key *keys; in _kadm5_set_keys2() local
91 keys = malloc (len * sizeof(*keys)); in _kadm5_set_keys2()
92 if (keys == NULL && len != 0) in _kadm5_set_keys2()
95 _kadm5_init_keys (keys, len); in _kadm5_set_keys2()
98 keys[i].mkvno = NULL; in _kadm5_set_keys2()
[all …]
HDdefault_keys.c40 print_keys(krb5_context context, Key *keys, size_t nkeys) in print_keys() argument
50 ret = krb5_enctype_to_string(context, keys[i].key.keytype, &str); in print_keys()
53 (int)keys[i].key.keytype); in print_keys()
58 if (keys[i].salt) { in print_keys()
61 switch (keys[i].salt->type) { in print_keys()
69 printf("unknown salt: %d", keys[i].salt->type); in print_keys()
72 if (keys[i].salt->salt.length) in print_keys()
73 printf("%.*s", (int)keys[i].salt->salt.length, in print_keys()
74 (char *)keys[i].salt->salt.data); in print_keys()
86 Key *keys; in parse_file() local
[all …]
HDchpass_s.c47 Key *keys; in change() local
68 num_keys = ent.entry.keys.len; in change()
69 keys = ent.entry.keys.val; in change()
71 ent.entry.keys.len = 0; in change()
72 ent.entry.keys.val = NULL; in change()
76 _kadm5_free_keys (context->context, num_keys, keys); in change()
81 existsp = _kadm5_exists_keys (ent.entry.keys.val, in change()
82 ent.entry.keys.len, in change()
83 keys, num_keys); in change()
84 _kadm5_free_keys (context->context, num_keys, keys); in change()
/NextBSD/crypto/heimdal/lib/hx509/
HDks_mem.c48 hx509_private_key *keys; member
80 for (i = 0; mem->keys && mem->keys[i]; i++) in mem_free()
81 hx509_private_key_free(&mem->keys[i]); in mem_free()
82 free(mem->keys); in mem_free()
158 hx509_private_key **keys) in mem_getkeys() argument
163 for (i = 0; mem->keys && mem->keys[i]; i++) in mem_getkeys()
165 *keys = calloc(i + 1, sizeof(**keys)); in mem_getkeys()
166 for (i = 0; mem->keys && mem->keys[i]; i++) { in mem_getkeys()
167 (*keys)[i] = _hx509_private_key_ref(mem->keys[i]); in mem_getkeys()
168 if ((*keys)[i] == NULL) { in mem_getkeys()
[all …]
/NextBSD/crypto/heimdal/kadmin/
HDext.c47 krb5_keytab_entry *keys = NULL; in do_ext_keytab() local
57 keys = malloc(sizeof(*keys) * princ.n_key_data); in do_ext_keytab()
58 if (keys == NULL) { in do_ext_keytab()
66 keys[i].principal = princ.principal; in do_ext_keytab()
67 keys[i].vno = kd->key_data_kvno; in do_ext_keytab()
68 keys[i].keyblock.keytype = kd->key_data_type[0]; in do_ext_keytab()
69 keys[i].keyblock.keyvalue.length = kd->key_data_length[0]; in do_ext_keytab()
70 keys[i].keyblock.keyvalue.data = kd->key_data_contents[0]; in do_ext_keytab()
71 keys[i].timestamp = time(NULL); in do_ext_keytab()
81 keys = malloc(sizeof(*keys) * n_k); in do_ext_keytab()
[all …]
/NextBSD/crypto/heimdal/lib/krb5/
HDsalt-des3.c48 DES_cblock keys[3]; in DES3_string_to_key() local
73 memcpy(keys + i, tmp + i * 8, sizeof(keys[i])); in DES3_string_to_key()
74 DES_set_odd_parity(keys + i); in DES3_string_to_key()
75 if(DES_is_weak_key(keys + i)) in DES3_string_to_key()
76 _krb5_xor(keys + i, (const unsigned char*)"\0\0\0\0\0\0\0\xf0"); in DES3_string_to_key()
77 DES_set_key_unchecked(keys + i, &s[i]); in DES3_string_to_key()
86 memcpy(keys + i, tmp + i * 8, sizeof(keys[i])); in DES3_string_to_key()
87 DES_set_odd_parity(keys + i); in DES3_string_to_key()
88 if(DES_is_weak_key(keys + i)) in DES3_string_to_key()
89 _krb5_xor(keys + i, (const unsigned char*)"\0\0\0\0\0\0\0\xf0"); in DES3_string_to_key()
[all …]
/NextBSD/contrib/mtree/
HDcreate.c177 if (sflag && keys & F_CKSUM) in cwalk()
203 if (keys & (F_UID | F_UNAME) && p->fts_statp->st_uid != uid) { in statf()
204 if (keys & F_UNAME && in statf()
207 if (keys & F_UID || (keys & F_UNAME && name == NULL)) in statf()
211 if (keys & (F_GID | F_GNAME) && p->fts_statp->st_gid != gid) { in statf()
212 if (keys & F_GNAME && in statf()
215 if (keys & F_GID || (keys & F_GNAME && name == NULL)) in statf()
219 if (keys & F_MODE && (p->fts_statp->st_mode & MBITS) != mode) in statf()
222 if (keys & F_DEV && in statf()
226 if (keys & F_NLINK && p->fts_statp->st_nlink != 1) in statf()
[all …]
/NextBSD/contrib/ntp/ntpd/
HDinvoke-ntp.keys.texi1 @node ntp.keys Notes
2 @section Notes about ntp.keys
3 @pindex ntp.keys
7 # EDIT THIS FILE WITH CAUTION (invoke-ntp.keys.texi)
10 # From the definitions ntp.keys.def
24 reads its keys from a file specified using the
27 @code{keys}
32 one or more keys numbered between 1 and 65534
33 may be arbitrarily set in the keys file.
92 Note that the keys used by the
[all …]
HDMakefile.am83 man5_MANS= ntp.conf.5 ntp.keys.5
120 invoke-ntp.keys.menu \
121 invoke-ntp.keys.texi \
132 ntp.keys.5man \
133 ntp.keys.5mdoc \
134 ntp.keys.def \
135 ntp.keys.man.in \
136 ntp.keys.mdoc.in \
137 ntp.keys.html \
138 ntp.keys.texi \
[all …]
HDntp.keys.texi3 @setfilename ntp.keys.info
15 * ntp.keys: (ntp.keys). NTP's Symmetric Key file
20 @subtitle ntp.keys, version @value{VERSION}, @value{UPDATED}
27 @node Top, ntp.keys Description, (dir), (dir)
33 This document applies to version @value{VERSION} of @code{ntp.keys}.
38 * ntp.keys Description::
39 * ntp.keys Notes::
42 @node ntp.keys Description, , Top, Top
47 be specified in a configuration file, by default @code{/etc/ntp.keys}.
49 @include invoke-ntp.keys.texi
/NextBSD/usr.sbin/fmtree/
HDcreate.c141 if (sflag && keys & F_CKSUM) in cwalk()
176 if (keys & F_UNAME) { in statf()
188 if (keys & F_UID) in statf()
192 if (keys & F_GNAME) { in statf()
204 if (keys & F_GID) in statf()
207 if (keys & F_MODE && (p->fts_statp->st_mode & MBITS) != mode) in statf()
209 if (keys & F_NLINK && p->fts_statp->st_nlink != 1) in statf()
211 if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode)) in statf()
214 if (keys & F_TIME) in statf()
218 if (keys & F_CKSUM && S_ISREG(p->fts_statp->st_mode)) { in statf()
[all …]
/NextBSD/contrib/ntp/sntp/tests/
HDkeyFile.c64 struct key* keys = NULL; in test_ReadEmptyKeyFile() local
68 TEST_ASSERT_EQUAL(0, auth_init(path, &keys)); in test_ReadEmptyKeyFile()
69 TEST_ASSERT_NULL(keys); in test_ReadEmptyKeyFile()
77 struct key* keys = NULL; in test_ReadASCIIKeys() local
81 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); in test_ReadASCIIKeys()
82 TEST_ASSERT_NOT_NULL(keys); in test_ReadASCIIKeys()
100 struct key* keys = NULL; in test_ReadHexKeys() local
104 TEST_ASSERT_EQUAL(3, auth_init(path, &keys)); in test_ReadHexKeys()
105 TEST_ASSERT_NOT_NULL(keys); in test_ReadHexKeys()
130 struct key* keys = NULL; in test_ReadKeyFileWithComments() local
[all …]
/NextBSD/contrib/libarchive/libarchive/
HDarchive_write_set_format_mtree.c151 int keys; member
185 int keys; member
452 int keys, oldkeys, effkeys; in write_global() local
456 keys = mtree->keys & SET_KEYS; in write_global()
457 oldkeys = mtree->set.keys; in write_global()
458 effkeys = keys; in write_global()
498 keys &= ~(F_UNAME | F_UID); in write_global()
500 keys &= ~(F_GNAME | F_GID); in write_global()
502 keys &= ~F_MODE; in write_global()
504 keys &= ~F_FLAGS; in write_global()
[all …]
/NextBSD/contrib/gcc/
HDpointer-set.c198 void **keys; member
212 result->keys = XCNEWVEC (void *, result->n_slots); in pointer_map_create()
220 XDELETEVEC (pmap->keys); in pointer_map_destroy()
236 if (pmap->keys[n] == p) in pointer_map_contains()
238 else if (pmap->keys[n] == 0) in pointer_map_contains()
267 if (pmap->keys[i]) in pointer_map_insert()
269 void *key = pmap->keys[i]; in pointer_map_insert()
275 XDELETEVEC (pmap->keys); in pointer_map_insert()
279 pmap->keys = new_keys; in pointer_map_insert()
283 n = insert_aux (p, pmap->keys, pmap->n_slots, pmap->log_slots); in pointer_map_insert()
[all …]
/NextBSD/crypto/heimdal/lib/hdb/
HDkeys.c42 hdb_free_keys (krb5_context context, int len, Key *keys) in hdb_free_keys() argument
47 free(keys[i].mkvno); in hdb_free_keys()
48 keys[i].mkvno = NULL; in hdb_free_keys()
49 if (keys[i].salt != NULL) { in hdb_free_keys()
50 free_Salt(keys[i].salt); in hdb_free_keys()
51 free(keys[i].salt); in hdb_free_keys()
52 keys[i].salt = NULL; in hdb_free_keys()
54 krb5_free_keyblock_contents(context, &keys[i].key); in hdb_free_keys()
56 free (keys); in hdb_free_keys()
364 Key **keys, size_t *num_keys) in hdb_generate_key_set_password() argument
[all …]
/NextBSD/contrib/mdocml/
HDtbl_opts.c41 static const struct tbl_phrase keys[] = { variable
59 #define KEY_MAXKEYS ((int)(sizeof(keys)/sizeof(keys[0])))
107 tbl->parse, ln, *pos, keys[key].name); in arg()
111 keys[key].name, want, len); in arg()
155 (strncasecmp(p + pos, keys[i].name, len) || in tbl_option()
156 keys[i].name[len] != '\0')) in tbl_option()
169 if (keys[i].key) in tbl_option()
170 tbl->opts.opts |= keys[i].key; in tbl_option()
/NextBSD/crypto/openssh/
HDPROTOCOL.agent3 OpenSSH's agent supports managing keys for the standard SSH protocol
6 protocol 2 keys cannot see or affect protocol 1 keys and vice-versa.
8 Protocol 1 and protocol 2 keys are separated because of the differing
9 cryptographic usage: protocol 1 private RSA keys are used to decrypt
11 whereas protocol 2 RSA private keys are used to sign challenges with
18 messages refer to protocol 1 keys only. SSH2_* messages refer to
19 protocol 2 keys. Furthermore, the names also indicate whether the
26 Because of support for legacy SSH protocol 1 keys, OpenSSH's agent
78 2.2 Adding keys to the agent
81 SSH2_AGENTC_ADD_IDENTITY requests for protocol 1 and protocol 2 keys
[all …]
/NextBSD/contrib/ofed/management/opensm/opensm/
HDosm_pkey.c63 cl_map_construct(&p_pkey_tbl->keys); in osm_pkey_tbl_construct()
86 cl_map_remove_all(&p_pkey_tbl->keys); in osm_pkey_tbl_destroy()
87 cl_map_destroy(&p_pkey_tbl->keys); in osm_pkey_tbl_destroy()
96 cl_map_init(&p_pkey_tbl->keys, 1); in osm_pkey_tbl_init()
165 cl_map_remove_all(&p_pkey_tbl->keys); in osm_pkey_tbl_set()
183 cl_map_get(&p_pkey_tbl->keys, in osm_pkey_tbl_set()
189 cl_map_insert(&p_pkey_tbl->keys, in osm_pkey_tbl_set()
314 pkey1 = cl_map_get(&(osm_physp_get_pkey_tbl(p_physp1))->keys, in osm_physp_share_this_pkey()
316 pkey2 = cl_map_get(&(osm_physp_get_pkey_tbl(p_physp2))->keys, in osm_physp_share_this_pkey()
335 map_iter1 = cl_map_head(&pkey_tbl1->keys); in osm_physp_find_common_pkey()
[all …]
/NextBSD/crypto/openssl/crypto/rc4/
HDrc4test.c75 static unsigned char keys[7][30] = { variable
131 RC4_set_key(&key, keys[i][0], &(keys[i][1])); in main()
151 RC4_set_key(&key, keys[3][0], &(keys[3][1])); in main()
174 RC4_set_key(&key, keys[3][0], &(keys[3][1])); in main()
205 RC4_set_key(&key, keys[0][0], &(keys[3][1])); in main()
/NextBSD/contrib/netbsd-tests/lib/libc/
HDt_cdb.c50 uint32_t keys[MAXKEYS]; variable
74 sorted_keys[i] = keys[i] = arc4random(); in init_keys()
96 buf[1] = keys[i]; in write_database()
97 ATF_REQUIRE(cdbw_put(db, &keys[i], sizeof(keys[i]), in write_database()
116 ATF_REQUIRE(cdbr_find(db, &keys[i], sizeof(keys[i]), in check_database()
121 ATF_REQUIRE_EQ(buf[1], keys[i]); in check_database()

12345678910>>...28