Searched defs:keys (Results 1 - 25 of 114) sorted by relevance

12345

/freebsd-head/crypto/openssh/
H A Dsshconnect.h29 struct sshkey **keys; member in struct:Sensitive
/freebsd-head/crypto/heimdal/lib/kadm5/
H A Dchpass_s.c47 Key *keys; local
68 num_keys = ent.entry.keys.len;
69 keys = ent.entry.keys.val;
71 ent.entry.keys.len = 0;
72 ent.entry.keys.val = NULL;
76 _kadm5_free_keys (context->context, num_keys, keys);
81 existsp = _kadm5_exists_keys (ent.entry.keys.val,
82 ent.entry.keys.len,
83 keys, num_key
[all...]
H A Ddefault_keys.c40 print_keys(krb5_context context, Key *keys, size_t nkeys) argument
46 printf("keys:\n");
50 ret = krb5_enctype_to_string(context, keys[i].key.keytype, &str);
53 (int)keys[i].key.keytype);
58 if (keys[i].salt) {
61 switch (keys[i].salt->type) {
69 printf("unknown salt: %d", keys[i].salt->type);
72 if (keys[i].salt->salt.length)
73 printf("%.*s", (int)keys[i].salt->salt.length,
74 (char *)keys[
86 Key *keys; local
[all...]
H A Dkeys.c39 * free all the memory used by (len, keys)
44 int len, Key *keys)
46 hdb_free_keys(context, len, keys);
50 * null-ify `len', `keys'
54 _kadm5_init_keys (Key *keys, int len) argument
59 keys[i].mkvno = NULL;
60 keys[i].salt = NULL;
61 keys[i].key.keyvalue.length = 0;
62 keys[i].key.keyvalue.data = NULL;
43 _kadm5_free_keys(krb5_context context, int len, Key *keys) argument
H A Dset_keys.c39 * Set the keys of `ent' to the string-to-key of `password'
47 Key *keys; local
53 password, &keys, &num_keys);
57 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
58 ent->keys.val = keys;
59 ent->keys.len = num_keys;
76 * Set the keys of `ent' to (`n_key_data', `key_data')
88 Key *keys; local
147 Key *keys; local
206 Key *keys; local
[all...]
/freebsd-head/crypto/heimdal/kadmin/
H A Dext.c47 krb5_keytab_entry *keys = NULL; local
57 keys = malloc(sizeof(*keys) * princ.n_key_data);
58 if (keys == NULL) {
66 keys[i].principal = princ.principal;
67 keys[i].vno = kd->key_data_kvno;
68 keys[i].keyblock.keytype = kd->key_data_type[0];
69 keys[i].keyblock.keyvalue.length = kd->key_data_length[0];
70 keys[i].keyblock.keyvalue.data = kd->key_data_contents[0];
71 keys[
[all...]
H A Dinit.c49 krb5_keyblock *keys; local
86 /* Replace the string2key based keys with real random bytes */
87 ret = kadm5_randkey_principal(kadm_handle, princ, &keys, &n_keys);
94 krb5_free_keyblock_contents(context, &keys[i]);
95 free(keys);
H A Dcpw.c49 krb5_keyblock *keys; local
52 ret = kadm5_randkey_principal(kadm_handle, principal, &keys, &num_keys);
56 krb5_free_keyblock_contents(context, &keys[i]);
57 free(keys);
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dsalt-des3.c48 DES_cblock keys[3]; local
73 memcpy(keys + i, tmp + i * 8, sizeof(keys[i]));
74 DES_set_odd_parity(keys + i);
75 if(DES_is_weak_key(keys + i))
76 _krb5_xor(keys + i, (const unsigned char*)"\0\0\0\0\0\0\0\xf0");
77 DES_set_key_unchecked(keys + i, &s[i]);
86 memcpy(keys + i, tmp + i * 8, sizeof(keys[i]));
87 DES_set_odd_parity(keys
[all...]
H A Ddeprecated.c96 } keys[] = { variable in typeref:struct:__anon4512
106 static int num_keys = sizeof(keys) / sizeof(keys[0]);
125 if(keys[i].type == keytype) {
126 name = keys[i].name;
162 if(strcasecmp(keys[i].name, string) == 0){
163 *keytype = keys[i].type;
/freebsd-head/usr.sbin/ctld/
H A Dkeys.c43 struct keys *
46 struct keys *keys; local
48 keys = calloc(1, sizeof(*keys));
49 if (keys == NULL)
52 return (keys);
56 keys_delete(struct keys *keys) argument
59 free(keys
64 keys_load(struct keys *keys, const struct pdu *pdu) argument
108 keys_save(struct keys *keys, struct pdu *pdu) argument
148 keys_find(struct keys *keys, const char *name) argument
167 keys_add(struct keys *keys, const char *name, const char *value) argument
189 keys_add_int(struct keys *keys, const char *name, int value) argument
[all...]
/freebsd-head/usr.sbin/iscsid/
H A Dkeys.c43 struct keys *
46 struct keys *keys; local
48 keys = calloc(1, sizeof(*keys));
49 if (keys == NULL)
52 return (keys);
56 keys_delete(struct keys *keys) argument
59 free(keys
64 keys_load(struct keys *keys, const struct pdu *pdu) argument
108 keys_save(struct keys *keys, struct pdu *pdu) argument
148 keys_find(struct keys *keys, const char *name) argument
167 keys_add(struct keys *keys, const char *name, const char *value) argument
189 keys_add_int(struct keys *keys, const char *name, int value) argument
[all...]
/freebsd-head/contrib/ntp/sntp/tests/
H A DkeyFile.c72 struct key * keys = NULL; local
76 TEST_ASSERT_EQUAL(0, auth_init(path, &keys));
77 TEST_ASSERT_NULL(keys);
86 struct key * keys = NULL; local
91 TEST_ASSERT_EQUAL(2, auth_init(path, &keys));
92 TEST_ASSERT_NOT_NULL(keys);
110 struct key * keys = NULL; local
117 TEST_ASSERT_EQUAL(3, auth_init(path, &keys));
118 TEST_ASSERT_NOT_NULL(keys);
145 struct key * keys local
171 struct key * keys = NULL; local
[all...]
/freebsd-head/contrib/mandoc/
H A Dtbl_layout.c40 static const struct tbl_phrase keys[] = { variable in typeref:struct:tbl_phrase
53 #define KEYS_MAX ((int)(sizeof(keys)/sizeof(keys[0])))
234 if (tolower((unsigned char)p[*pos]) == keys[i].name)
243 c = keys[i].key;
H A Dtbl_opts.c42 static const struct tbl_phrase keys[] = { variable in typeref:struct:tbl_phrase
60 #define KEY_MAXKEYS ((int)(sizeof(keys)/sizeof(keys[0])))
107 "%s", keys[key].name);
110 "%s want %d have %d", keys[key].name, want, len);
154 (strncasecmp(p + pos, keys[i].name, len) ||
155 keys[i].name[len] != '\0'))
168 if (keys[i].key)
169 tbl->opts.opts |= keys[i].key;
/freebsd-head/contrib/wpa/src/eap_common/
H A Deap_ikev2_common.c18 int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys, argument
27 if (keys->SK_d == NULL || i_nonce == NULL || r_nonce == NULL)
37 if (ikev2_prf_plus(prf, keys->SK_d, keys->SK_d_len, nonces, nlen,
68 int eap_ikev2_validate_icv(int integ_alg, struct ikev2_keys *keys, argument
75 const u8 *SK_a = initiator ? keys->SK_ai : keys->SK_ar;
96 if (ikev2_integ_hash(integ_alg, SK_a, keys->SK_integ_len,
/freebsd-head/usr.sbin/fmtree/
H A Dmtree.c57 u_int keys; variable
71 keys = KEYDEFAULT;
105 keys |= parsekey(p, NULL);
108 keys = F_TYPE;
111 keys |= parsekey(p, NULL);
/freebsd-head/contrib/netbsd-tests/lib/libc/
H A Dt_cdb.c53 uint32_t keys[MAXKEYS]; variable
77 sorted_keys[i] = keys[i] = arc4random();
99 buf[1] = keys[i];
100 ATF_REQUIRE(cdbw_put(db, &keys[i], sizeof(keys[i]),
119 ATF_REQUIRE(cdbr_find(db, &keys[i], sizeof(keys[i]),
124 ATF_REQUIRE_EQ(buf[1], keys[i]);
/freebsd-head/lib/libc/tests/stdlib/
H A Dtsearch_test.c88 /* Create 1000 possible keys. */
89 int keys[NKEYS]; local
91 keys[i] = i;
121 ATF_CHECK_EQ(&keys[key],
129 ATF_CHECK_EQ(&keys[key],
132 ATF_CHECK_EQ(&keys[key], *(int **)tsearch(
133 &keys[key], &root, compar));
/freebsd-head/contrib/ofed/opensm/include/opensm/
H A Dosm_pkey.h88 cl_map_t keys; member in struct:osm_pkeybl
108 * keys
109 * A set holding all keys
139 * 'keys' map
/freebsd-head/sys/contrib/libsodium/src/libsodium/crypto_kx/
H A Dcrypto_kx.c42 unsigned char keys[2 * crypto_kx_SESSIONKEYBYTES]; local
57 COMPILER_ASSERT(sizeof keys <= crypto_generichash_BYTES_MAX);
58 crypto_generichash_init(&h, NULL, 0U, sizeof keys);
63 crypto_generichash_final(&h, keys, sizeof keys);
66 rx[i] = keys[i];
67 tx[i] = keys[i + crypto_kx_SESSIONKEYBYTES];
69 sodium_memzero(keys, sizeof keys);
83 unsigned char keys[ local
[all...]
/freebsd-head/contrib/gcc/
H A Dpointer-set.c189 its contents. Null keys are a reserved value. Deletion is not
199 void **keys;
213 result->keys = XCNEWVEC (void *, result->n_slots);
221 XDELETEVEC (pmap->keys);
237 if (pmap->keys[n] == p)
239 else if (pmap->keys[n] == 0)
268 if (pmap->keys[i])
270 void *key = pmap->keys[i];
276 XDELETEVEC (pmap->keys);
280 pmap->keys
198 void **keys; member in struct:pointer_map_t
[all...]
/freebsd-head/crypto/heimdal/admin/
H A Dchange.c47 krb5_keyblock *keys; local
99 ret = kadm5_randkey_principal (kadm_handle, principal, &keys, &num_keys);
113 new_entry.keyblock = keys[i];
118 krb5_free_keyblock_contents (context, &keys[i]);
125 * their keys, writing the new keys
H A Dget.c128 krb5_keyblock *keys; local
170 ret = kadm5_randkey_principal(kadm_handle, princ_ent, &keys, &n_keys);
183 krb5_free_keyblock_contents(context, &keys[j]);
200 krb5_free_keyblock_contents(context, &keys[j]);
213 if (keys[j].keytype == etypes[k]) {
221 entry.keyblock = keys[j];
227 krb5_free_keyblock_contents(context, &keys[j]);
/freebsd-head/crypto/heimdal/lib/hdb/
H A Dkeys.c38 * free all the memory used by (len, keys)
42 hdb_free_keys (krb5_context context, int len, Key *keys) argument
47 free(keys[i].mkvno);
48 keys[i].mkvno = NULL;
49 if (keys[i].salt != NULL) {
50 free_Salt(keys[i].salt);
51 free(keys[i].salt);
52 keys[i].salt = NULL;
54 krb5_free_keyblock_contents(context, &keys[i].key);
56 free (keys);
361 hdb_generate_key_set_password(krb5_context context, krb5_principal principal, const char *password, Key **keys, size_t *num_keys) argument
[all...]

Completed in 355 milliseconds

12345