Lines Matching refs:keys

39  * Set the keys of `ent' to the string-to-key of `password'
47 Key *keys;
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;
91 keys = malloc (len * sizeof(*keys));
92 if (keys == NULL)
95 _kadm5_init_keys (keys, len);
98 keys[i].mkvno = NULL;
99 keys[i].key.keytype = key_data[i].key_data_type[0];
100 ret = krb5_data_copy(&keys[i].key.keyvalue,
113 keys[i].salt = salt;
119 keys[i].salt = NULL;
121 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
122 ent->keys.len = len;
123 ent->keys.val = keys;
130 _kadm5_free_keys (context->context, len, keys);
135 * Set the keys of `ent' to `n_keys, keys'
147 Key *keys;
150 keys = malloc (len * sizeof(*keys));
151 if (keys == NULL)
154 _kadm5_init_keys (keys, len);
157 keys[i].mkvno = NULL;
160 &keys[i].key);
163 keys[i].salt = NULL;
165 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
166 ent->keys.len = len;
167 ent->keys.val = keys;
174 _kadm5_free_keys (context->context, len, keys);
192 * Set the keys of `ent' to random keys and return them in `n_keys'
206 Key *keys;
209 &keys, &num_keys, 1);
216 _kadm5_free_keys (context->context, num_keys, keys);
225 * To make sure all des keys are the the same we generate only
226 * the first one and then copy key to all other des keys.
229 if (des_keyblock != -1 && is_des_key_p(keys[i].key.keytype)) {
235 kblock[i].keytype = keys[i].key.keytype;
238 keys[i].key.keytype,
243 if (is_des_key_p(keys[i].key.keytype))
249 &keys[i].key);
259 _kadm5_free_keys (context->context, num_keys, keys);
263 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
264 ent->keys.val = keys;
265 ent->keys.len = num_keys;