Home | History | Annotate | Download | only in kadm5

Lines Matching refs:Keys

41  * Set the keys of `ent' to the string-to-key of `password'
51 Key *keys;
59 &keys, &num_keys);
63 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
64 ent->keys.val = keys;
65 ent->keys.len = num_keys;
99 * Set the keys of `ent' to (`n_key_data', `key_data')
115 Keys keys;
122 /* Clear all keys! */
127 free_Keys(&ent->keys);
131 memset(&keys, 0, sizeof (keys));
181 ret = add_Keys(&keys, &key);
188 * This kvno is historical. Build an hdb_keyset for keys of
197 /* We've added all keys of this kvno already (see below) */
203 /* Find all keys of this kvno and add them to the new keyset */
208 ret = add_Keys(&hkset.keys, &key);
229 * keys. kadm5 loses this info, so this heuristic is the best we
246 /* If hist keys not given in key_data then don't blow away hist_keys */
255 * copy_Keys(&keys, &ent->keys);
256 * free_Keys(&keys);
261 free_Keys(&ent->keys);
263 ent->keys = keys;
270 free_Keys(&keys);
276 * Set the keys of `ent' to `n_keys, keys'
288 Key *keys;
291 keys = malloc (len * sizeof(*keys));
292 if (keys == NULL && len != 0)
295 _kadm5_init_keys (keys, len);
298 keys[i].mkvno = NULL;
301 &keys[i].key);
304 keys[i].salt = NULL;
306 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
307 ent->keys.len = len;
308 ent->keys.val = keys;
315 _kadm5_free_keys (context->context, len, keys);
333 * Set the keys of `ent' to random keys and return them in `n_keys'
349 Key *keys;
352 ks_tuple, n_ks_tuple, &keys, &num_keys, 1);
359 _kadm5_free_keys (context->context, num_keys, keys);
368 * To make sure all des keys are the the same we generate only
369 * the first one and then copy key to all other des keys.
372 if (des_keyblock != -1 && is_des_key_p(keys[i].key.keytype)) {
378 kblock[i].keytype = keys[i].key.keytype;
381 keys[i].key.keytype,
386 if (is_des_key_p(keys[i].key.keytype))
392 &keys[i].key);
402 _kadm5_free_keys (context->context, num_keys, keys);
406 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
407 ent->keys.val = keys;
408 ent->keys.len = num_keys;