Home
last modified time | relevance | path

Searched refs:key_data (Results 1 – 25 of 39) sorted by relevance

12

/illumos-gate/usr/src/lib/krb5/kdb/
H A Dkdb_cpw.c270 key_data = db_entry->key_data;
282 db_entry->key_data = key_data;
292 db_entry->key_data[i+n_new_key_data] = key_data[i];
325 key_data = db_entry->key_data;
336 db_entry->key_data = key_data;
347 db_entry->key_data[db_entry->n_key_data - 1] = key_data[i];
569 key_data = db_entry->key_data;
583 db_entry->key_data = key_data;
593 db_entry->key_data[i+n_new_key_data] = key_data[i];
628 key_data = db_entry->key_data;
[all …]
H A Dencrypt_key.c77 krb5_key_data * key_data) in krb5_dbekd_encrypt_key_data() argument
86 for (i = 0; i < key_data->key_data_ver; i++) in krb5_dbekd_encrypt_key_data()
87 if (key_data->key_data_contents[i]) in krb5_dbekd_encrypt_key_data()
90 key_data->key_data_ver = 1; in krb5_dbekd_encrypt_key_data()
91 key_data->key_data_kvno = keyver; in krb5_dbekd_encrypt_key_data()
107 key_data->key_data_length[0] = 2 + len; in krb5_dbekd_encrypt_key_data()
108 key_data->key_data_contents[0] = ptr; in krb5_dbekd_encrypt_key_data()
121 krb5_xfree(key_data->key_data_contents[0]); in krb5_dbekd_encrypt_key_data()
128 key_data->key_data_ver++; in krb5_dbekd_encrypt_key_data()
131 key_data->key_data_contents[1] = in krb5_dbekd_encrypt_key_data()
[all …]
H A Ddecrypt_key.c74 const krb5_key_data * key_data, in krb5_dbekd_decrypt_key_data() argument
84 ptr = key_data->key_data_contents[0]; in krb5_dbekd_decrypt_key_data()
91 cipher.ciphertext.length = key_data->key_data_length[0]-2; in krb5_dbekd_decrypt_key_data()
93 plain.length = key_data->key_data_length[0]-2; in krb5_dbekd_decrypt_key_data()
116 dbkey->enctype = key_data->key_data_type[0]; in krb5_dbekd_decrypt_key_data()
125 if (key_data->key_data_ver == 2) { in krb5_dbekd_decrypt_key_data()
126 keysalt->type = key_data->key_data_type[1]; in krb5_dbekd_decrypt_key_data()
127 if ((keysalt->data.length = key_data->key_data_length[1])) { in krb5_dbekd_decrypt_key_data()
129 if (key_data->key_data_contents[0]) { in krb5_dbekd_decrypt_key_data()
136 memcpy(keysalt->data.data, key_data->key_data_contents[1], in krb5_dbekd_decrypt_key_data()
H A Dkdb_default.c73 if (kvno < dbentp->key_data[i].key_data_kvno) {
74 kvno = dbentp->key_data[i].key_data_kvno;
86 if (dbentp->key_data[i].key_data_ver > 1) {
96 dbentp->key_data[i].key_data_type[0])) {
104 dbentp->key_data[i].key_data_type[0],
113 if (kvno == dbentp->key_data[i].key_data_kvno) {
114 datap = &dbentp->key_data[i];
120 if (dbentp->key_data[i].key_data_kvno > maxkvno) {
121 maxkvno = dbentp->key_data[i].key_data_kvno;
122 datap = &dbentp->key_data[i];
[all …]
H A Dkdb_convert.c101 if (current->key_data[j].key_data_kvno != in find_changed_attrs()
102 new->key_data[j].key_data_kvno) { in find_changed_attrs()
465 ULOG_ENTRY_KEYVAL(upd, final, j).k_ver = ent->key_data[j].key_data_ver; in ulog_conv_2logentry()
466 ULOG_ENTRY_KEYVAL(upd, final, j).k_kvno = ent->key_data[j].key_data_kvno; in ulog_conv_2logentry()
482 for (cnt = 0; cnt < ent->key_data[j].key_data_ver; cnt++) { in ulog_conv_2logentry()
490 ….k_contents.k_contents_val[cnt].utf8str_t_val, ent->key_data[j].key_data_contents[cnt], ent->key_d… in ulog_conv_2logentry()
715 ent->key_data = NULL; in ulog_conv_2dbentry()
717 ent->key_data = (krb5_key_data *)realloc(ent->key_data, in ulog_conv_2dbentry()
723 if (ent->key_data == NULL) in ulog_conv_2dbentry()
730 ent->key_data[j].key_data_contents[cnt] = NULL; in ulog_conv_2dbentry()
[all …]
H A Dkeytab.c129 krb5_key_data * key_data; local
177 -1, kvno, &key_data);
183 key_data, &entry->key, NULL);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_xdr.c403 krb5_key_data * key_data; local
410 key_data = entry->key_data + i;
411 memset(key_data, 0, sizeof(krb5_key_data));
433 if (key_data->key_data_length[j]) {
440 key_data->key_data_length[j]);
475 if (entry->key_data) {
478 if (entry->key_data[i].key_data_length[j]) {
486 entry->key_data[i].key_data_contents[j] = NULL;
487 entry->key_data[i].key_data_length[j] = 0;
488 entry->key_data[i].key_data_type[j] = 0;
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Dovload.c50 hist->key_data = (krb5_key_data *) malloc(hist->n_key_data *
52 if (hist->key_data == NULL)
54 memset(hist->key_data, 0, sizeof(krb5_key_data)*hist->n_key_data);
57 krb5_key_data *key_data = &hist->key_data[i]; local
59 key_data->key_data_ver = 1;
66 key_data->key_data_type[0] = atoi(cp);
73 key_data->key_data_length[0] = atoi(cp);
80 if(!(key_data->key_data_contents[0] =
81 (krb5_octet *) malloc(key_data->key_data_length[0]+1))) {
85 for(j = 0; j < key_data->key_data_length[0]; j++) {
[all …]
H A Ddump.c382 key_data = &db_entry->key_data[i];
383 if (key_data->key_data_length == 0)
386 key_data, &v5plainkey,
395 key_data->key_data_kvno,
405 *key_data = new_key_data;
574 datap = &dbentp->key_data[i];
1304 krb5_key_data *key_data = &adb.old_keys[x].key_data[y]; in dump_ov_princ() local
1807 pkey = &dbent.key_data[0];
1808 akey = &dbent.key_data[1];
2167 dbentry.key_data = kp;
[all …]
H A Dkdb5_create.c452 &iargs->dbentp->key_data[ind]);
496 if ((entry.key_data=(krb5_key_data*)malloc(sizeof(krb5_key_data)))
499 memset((char *) entry.key_data, 0, sizeof(krb5_key_data));
505 1, entry.key_data)))
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_principal.c895 &kdb.key_data[i], in kadm5_get_principal()
1053 &key_data[i], in create_history_entry()
1061 &hist->key_data[i]); in create_history_entry()
1080 free(hist->key_data); in free_history_entry()
1206 free(histp->key_data); in add_to_history()
1652 -1, -1, &key_data); in kadm5_randkey_principal_3()
1762 kdb.key_data = NULL;
1933 if (kdb.key_data != NULL) in kadm5_setkey_principal_3()
1970 tptr = &kdb.key_data[i]; in kadm5_setkey_principal_3()
2100 &key_data[i], in decrypt_key_data()
[all …]
H A Dserver_kdb.c135 krb5_key_data *key_data; in kdb_init_hist() local
205 handle->params.enctype, -1, -1, &key_data); in kdb_init_hist()
211 &handle->master_keyblock, key_data, &hist_key, NULL); in kdb_init_hist()
215 hist_kvno = key_data->key_data_kvno; in kdb_init_hist()
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dmap_ctrl.c108 map->key_data.dptr = NULL; in create_map_ctrl()
253 map->key_data.dptr = NULL; in map_ctrl_init()
254 map->key_data.dsize = 0; in map_ctrl_init()
375 sfree(map->key_data.dptr); in free_map_ctrl()
376 map->key_data.dptr = NULL; in free_map_ctrl()
377 map->key_data.dsize = 0; in free_map_ctrl()
432 if (NULL != map->key_data.dptr) { in set_key_data()
433 sfree(map->key_data.dptr); in set_key_data()
434 map->key_data.dptr = NULL; in set_key_data()
435 map->key_data.dsize = 0; in set_key_data()
[all …]
H A Dshim.h66 datum key_data; /* See NOTE at top of shim.c */ member
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dmisc_free.c78 krb5_key_data *key_data) in kadm5_free_key_data() argument
85 if (key_data == NULL) in kadm5_free_key_data()
89 krb5_free_key_data_contents(handle->context, &key_data[i]); in kadm5_free_key_data()
90 free(key_data); in kadm5_free_key_data()
114 &val->key_data[i]); in kadm5_free_principal_ent()
115 free(val->key_data); in kadm5_free_principal_ent()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dldap_key_seq.c63 krb5_key_data key_data, in asn1_encode_key() argument
74 key_data.key_data_length[0], in asn1_encode_key()
75 key_data.key_data_contents[0], in asn1_encode_key()
95 if (key_data.key_data_ver > 1) { in asn1_encode_key()
98 if (key_data.key_data_length[1] > 0) { in asn1_encode_key()
100 key_data.key_data_length[1], in asn1_encode_key()
101 key_data.key_data_contents[1], in asn1_encode_key()
135 asn1_encode_sequence_of_keys (krb5_key_data *key_data, in asn1_encode_sequence_of_keys() argument
159 ret = asn1_encode_key (buf, key_data[i], &length); checkerr; in asn1_encode_sequence_of_keys()
180 if (key_data[0].key_data_kvno < 0) in asn1_encode_sequence_of_keys()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_principal.c105 if (entry->key_data) {
107 for (j = 0; j < entry->key_data[i].key_data_ver; j++) {
108 if (entry->key_data[i].key_data_length[j]) {
109 if (entry->key_data[i].key_data_contents[j]) {
110 memset(entry->key_data[i].key_data_contents[j],
112 (unsigned) entry->key_data[i].key_data_length[j]);
113 free (entry->key_data[i].key_data_contents[j]);
116 entry->key_data[i].key_data_contents[j] = NULL;
117 entry->key_data[i].key_data_length[j] = 0;
118 entry->key_data[i].key_data_type[j] = 0;
[all …]
H A Dldap_principal2.c379 if (key_data[i].key_data_kvno != key_data[i + 1].key_data_kvno) in krb5_encode_krbsecretkey()
391 asn1_encode_sequence_of_keys (key_data+last, in krb5_encode_krbsecretkey()
410 currkvno = key_data[i].key_data_kvno; in krb5_encode_krbsecretkey()
943 bersecretkey = krb5_encode_krbsecretkey (entries->key_data,
1258 krb5_key_data *key_data=NULL, *tmp; local
1288 tmp = key_data;
1289 key_data = realloc (key_data, noofkeys * sizeof (krb5_key_data));
1290 if (key_data == NULL) {
1291 key_data = tmp;
1296 key_data[noofkeys - n_kd + j] = kd[j];
[all …]
H A Dprinc_xdr.h36 krb5_key_data *key_data; member
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dadmin_cmds.c350 TSS_KM_KEYINFO2 *key_data; member
357 hash_insert(TSS_UUID uuid, TSS_KM_KEYINFO2 *key_data) in hash_insert() argument
379 if (node->key_data == NULL) in hash_insert()
380 node->key_data = key_data; in hash_insert()
407 type = (parent->key_data->persistentStorageType == TSS_PS_TYPE_USER) ? in print_all()
409 loaded = parent->key_data->fIsLoaded ? "(loaded)" : ""; in print_all()
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_crypto.c706 uint8_t *key_data = NULL; in populate_create_encryption_params_nvlists() local
774 key_material_len, salt, &key_data); in populate_create_encryption_params_nvlists()
780 *wkeydata = key_data; in populate_create_encryption_params_nvlists()
787 if (key_data != NULL) in populate_create_encryption_params_nvlists()
788 free(key_data); in populate_create_encryption_params_nvlists()
1130 uint8_t *key_material = NULL, *key_data = NULL; in zfs_crypto_load_key() local
1221 key_material_len, salt, &key_data); in zfs_crypto_load_key()
1255 free(key_data); in zfs_crypto_load_key()
1265 if (key_data != NULL) { in zfs_crypto_load_key()
1266 free(key_data); in zfs_crypto_load_key()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_bigkey.c89 int8_t *key_data, *val_data, base_page; local
91 key_data = (int8_t *)key->data;
118 memmove(BIGKEY(pagep), key_data, key_move_bytes);
123 key_data += key_move_bytes;
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dkadmin.c1575 krb5_key_data *key_data = &dprinc.key_data[i]; local
1578 if (krb5_enctype_to_string(key_data->key_data_type[0],
1581 key_data->key_data_type[0]);
1582 printf("Key: vno %d, %s, ", key_data->key_data_kvno, enctype);
1583 if (key_data->key_data_ver > 1) {
1584 if (krb5_salttype_to_string(key_data->key_data_type[1],
1587 key_data->key_data_type[1]);
1613 dprinc.key_data[i].key_data_ver,
1614 dprinc.key_data[i].key_data_kvno,
1615 dprinc.key_data[i].key_data_type[0],
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/krb5/
H A Dkdb.h152 krb5_key_data * key_data; /* Array */ member
340 const krb5_key_data * key_data,
350 krb5_key_data * key_data);
/illumos-gate/usr/src/boot/efi/libefi/
H A Defi_console.c674 EFI_KEY_DATA key_data; in efi_readkey_ex() local
677 status = coninex->ReadKeyStrokeEx(coninex, &key_data); in efi_readkey_ex()
679 kss = key_data.KeyState.KeyShiftState; in efi_readkey_ex()
680 kp = &key_data.Key; in efi_readkey_ex()

12