/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | ser_key.c | 61 krb5_keyblock *keyblock; in krb5_keyblock_size() local 73 keyblock = (krb5_keyblock *) arg; in krb5_keyblock_size() 74 if (keyblock) { in krb5_keyblock_size() 80 (size_t) keyblock->length); in krb5_keyblock_size() 93 krb5_keyblock *keyblock; in krb5_keyblock_externalize() local 103 keyblock = (krb5_keyblock *) arg; in krb5_keyblock_externalize() 104 if (keyblock) { in krb5_keyblock_externalize() 112 (void) krb5_ser_pack_int32((krb5_int32) keyblock->enctype, in krb5_keyblock_externalize() 116 (void) krb5_ser_pack_int32((krb5_int32) keyblock->length, in krb5_keyblock_externalize() 120 (void) krb5_ser_pack_bytes(keyblock->contents, in krb5_keyblock_externalize() [all …]
|
H A D | ser_actx.c | 102 if (auth_context->i_vector && auth_context->keyblock) { in krb5_auth_context_size() 103 kret = krb5_c_block_size(kcontext, auth_context->keyblock->enctype, in krb5_auth_context_size() 152 if (!kret && auth_context->keyblock) { in krb5_auth_context_size() 155 (krb5_pointer) auth_context->keyblock, in krb5_auth_context_size() 237 auth_context->keyblock->enctype, in krb5_auth_context_externalize() 301 if (!kret && auth_context->keyblock) { in krb5_auth_context_externalize() 306 auth_context->keyblock, in krb5_auth_context_externalize() 480 &auth_context->keyblock, in krb5_auth_context_internalize()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | auth_con.c | 67 if (auth_context->keyblock) in krb5_auth_con_free() 68 krb5_free_keyblock(context, auth_context->keyblock); in krb5_auth_con_free() 168 …h_con_setuseruserkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) in krb5_auth_con_setuseruserkey() argument 170 if (auth_context->keyblock) in krb5_auth_con_setuseruserkey() 171 krb5_free_keyblock(context, auth_context->keyblock); in krb5_auth_con_setuseruserkey() 172 return(krb5_copy_keyblock(context, keyblock, &(auth_context->keyblock))); in krb5_auth_con_setuseruserkey() 176 krb5_auth_con_getkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) in krb5_auth_con_getkey() argument 178 if (auth_context->keyblock) in krb5_auth_con_getkey() 179 return krb5_copy_keyblock(context, auth_context->keyblock, keyblock); in krb5_auth_con_getkey() 180 *keyblock = NULL; in krb5_auth_con_getkey() [all …]
|
H A D | mk_req_ext.c | 82 krb5_keyblock *keyblock) in krb5int_generate_and_save_subkey() argument 111 if ((retval = krb5_generate_subkey(context, keyblock, &auth_context->send_subkey))) in krb5int_generate_and_save_subkey() 165 if ((*auth_context)->keyblock != NULL) { in krb5_mk_req_extended() 166 krb5_free_keyblock(context, (*auth_context)->keyblock); in krb5_mk_req_extended() 167 (*auth_context)->keyblock = NULL; in krb5_mk_req_extended() 171 if ((retval = krb5_copy_keyblock(context, &in_creds->keyblock, in krb5_mk_req_extended() 172 &((*auth_context)->keyblock)))) in krb5_mk_req_extended() 179 if ((retval = krb5_generate_seq_number(context, &in_creds->keyblock, in krb5_mk_req_extended() 196 &in_creds->keyblock); in krb5_mk_req_extended() 212 (*auth_context)->keyblock, in krb5_mk_req_extended() [all …]
|
H A D | mk_priv.c | 42 krb5_mk_priv_basic(krb5_context context, const krb5_data *userdata, const krb5_keyblock *keyblock, … in krb5_mk_priv_basic() argument 51 privmsg.enc_part.enctype = keyblock->enctype; in krb5_mk_priv_basic() 67 if ((retval = krb5_c_encrypt_length(context, keyblock->enctype, in krb5_mk_priv_basic() 80 if ((retval = krb5_c_block_size(context, keyblock->enctype, in krb5_mk_priv_basic() 88 if ((retval = krb5_c_encrypt(context, keyblock, in krb5_mk_priv_basic() 122 krb5_keyblock * keyblock; in krb5_mk_priv() local 129 if ((keyblock = auth_context->send_subkey) == NULL) in krb5_mk_priv() 130 keyblock = auth_context->keyblock; in krb5_mk_priv() 201 if ((retval = krb5_mk_priv_basic(context, userdata, keyblock, &replaydata, in krb5_mk_priv()
|
H A D | rd_priv.c | 60 krb5_rd_priv_basic(krb5_context context, const krb5_data *inbuf, const krb5_keyblock *keyblock, con… in krb5_rd_priv_basic() argument 77 if ((retval = krb5_c_block_size(context, keyblock->enctype, in krb5_rd_priv_basic() 91 if ((retval = krb5_c_decrypt(context, keyblock, in krb5_rd_priv_basic() 158 krb5_keyblock * keyblock; in krb5_rd_priv() local 162 if ((keyblock = auth_context->recv_subkey) == NULL) in krb5_rd_priv() 163 keyblock = auth_context->keyblock; in krb5_rd_priv() 213 if ((retval = krb5_rd_priv_basic(context, inbuf, keyblock, in krb5_rd_priv()
|
H A D | rd_safe.c | 49 const krb5_keyblock *keyblock, in krb5_rd_safe_basic() argument 127 retval = krb5_c_verify_checksum(context, keyblock, in krb5_rd_safe_basic() 139 retval = krb5_c_verify_checksum(context, keyblock, in krb5_rd_safe_basic() 167 krb5_keyblock * keyblock; in krb5_rd_safe() local 184 if ((keyblock = auth_context->recv_subkey) == NULL) in krb5_rd_safe() 185 keyblock = auth_context->keyblock; in krb5_rd_safe() 223 if ((retval = krb5_rd_safe_basic(context, inbuf, keyblock, in krb5_rd_safe()
|
H A D | mk_safe.c | 65 const krb5_keyblock *keyblock, krb5_replay_data *replaydata, in krb5_mk_safe_basic() argument 112 if ((retval = krb5_c_make_checksum(context, sumtype, keyblock, in krb5_mk_safe_basic() 144 krb5_keyblock * keyblock; in krb5_mk_safe() local 154 if ((keyblock = auth_context->send_subkey) == NULL) in krb5_mk_safe() 155 keyblock = auth_context->keyblock; in krb5_mk_safe() 240 retval = krb5_c_keyed_checksum_types (context, keyblock->enctype, in krb5_mk_safe() 260 if ((retval = krb5_mk_safe_basic(context, userdata, keyblock, &replaydata, in krb5_mk_safe()
|
H A D | get_creds.c | 86 ret = krb5_copy_keyblock_contents(context, &in_creds->keyblock, in krb5_get_credentials_core() 87 &mcreds->keyblock); in krb5_get_credentials_core() 98 if (mcreds->keyblock.enctype) { in krb5_get_credentials_core() 105 if (ktypes[i] == mcreds->keyblock.enctype) in krb5_get_credentials_core() 111 krb5_free_keyblock_contents(context, &mcreds->keyblock); in krb5_get_credentials_core() 122 krb5_free_keyblock_contents(context, &mcreds->keyblock); in krb5_get_credentials_core() 149 krb5_free_keyblock_contents(context, &mcreds.keyblock); in krb5_get_credentials() 168 krb5_free_keyblock_contents(context, &mcreds.keyblock); in krb5_get_credentials() 217 krb5_free_keyblock_contents(context, &mcreds.keyblock); in krb5_get_credentials()
|
H A D | rd_cred.c | 127 &pcur->keyblock))) in krb5_rd_cred_basic() 177 krb5_keyblock * keyblock; in krb5_rd_cred() local 181 if ((keyblock = auth_context->recv_subkey) == NULL) in krb5_rd_cred() 182 keyblock = auth_context->keyblock; in krb5_rd_cred() 200 if ((retval = krb5_rd_cred_basic(context, pcreddata, keyblock, in krb5_rd_cred() 203 auth_context->keyblock, in krb5_rd_cred()
|
H A D | mk_cred.c | 72 …text context, krb5_creds **ppcreds, krb5_int32 nppcreds, krb5_keyblock *keyblock, krb5_replay_data… in krb5_mk_ncred_basic() argument 117 if ((retval = krb5_copy_keyblock(context, &ppcreds[i]->keyblock, in krb5_mk_ncred_basic() 140 retval = encrypt_credencpart(context, &credenc, keyblock, in krb5_mk_ncred_basic() 162 krb5_keyblock * keyblock; in krb5_mk_ncred() local 192 if ((keyblock = auth_context->send_subkey) == NULL) in krb5_mk_ncred() 193 keyblock = auth_context->keyblock; in krb5_mk_ncred() 248 if ((retval = krb5_mk_ncred_basic(context, ppcreds, ncred, keyblock, in krb5_mk_ncred()
|
H A D | mk_rep.c | 55 if ((retval = krb5_generate_seq_number(context, auth_context->keyblock, in krb5_mk_rep() 64 auth_context->keyblock); in krb5_mk_rep() 76 if ((retval = krb5_encrypt_helper(context, auth_context->keyblock, in krb5_mk_rep()
|
H A D | copy_creds.c | 53 retval = krb5_copy_keyblock_contents(context, &incred->keyblock, in krb5_copy_creds() 54 &tempcred->keyblock); in krb5_copy_creds() 86 krb5_xfree(tempcred->keyblock.contents); in krb5_copy_creds()
|
H A D | rd_req_dec.c | 184 if ((*auth_context)->keyblock) { /* User to User authentication */ in krb5_rd_req_decoded_opt() 185 if ((retval = krb5_decrypt_tkt_part(context, (*auth_context)->keyblock, in krb5_rd_req_decoded_opt() 188 krb5_free_keyblock(context, (*auth_context)->keyblock); in krb5_rd_req_decoded_opt() 189 (*auth_context)->keyblock = NULL; in krb5_rd_req_decoded_opt() 462 if ((*auth_context)->keyblock != NULL) { in krb5_rd_req_decoded_opt() 463 krb5_free_keyblock(context, (*auth_context)->keyblock); in krb5_rd_req_decoded_opt() 464 (*auth_context)->keyblock = NULL; in krb5_rd_req_decoded_opt() 467 &((*auth_context)->keyblock)))) in krb5_rd_req_decoded_opt()
|
H A D | gc_via_tkt.c | 61 &(*ppcreds)->keyblock))) in krb5_kdcrep2creds() 95 krb5_free_keyblock(context, &(*ppcreds)->keyblock); in krb5_kdcrep2creds() 220 if (in_cred->keyblock.enctype) { in krb5_get_cred_via_tkt() 224 enctypes[0] = in_cred->keyblock.enctype; in krb5_get_cred_via_tkt() 387 &tkt->keyblock, &dec_rep))) in krb5_get_cred_via_tkt()
|
H A D | fwd_tgt.c | 96 enctype = out->keyblock.enctype; in krb5_fwd_tgt_creds() 177 creds.keyblock.enctype = enctype; in krb5_fwd_tgt_creds() 188 creds.keyblock.enctype = 0; in krb5_fwd_tgt_creds()
|
H A D | send_tgs.c | 67 &in_cred->keyblock, in krb5_send_tgs_basic() 104 if ((retval = krb5_encrypt_helper(context, &in_cred->keyblock, in krb5_send_tgs_basic() 210 if ((retval = krb5_encrypt_helper(context, &in_cred->keyblock, in krb5_send_tgs2()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/crypto/des/ |
H A D | string2key.c | 50 krb5_keyblock *keyblock, in mit_des_string_to_key_int() argument 70 keyblock->magic = KV5M_KEYBLOCK; in mit_des_string_to_key_int() 71 keyblock->length = sizeof(mit_des_cblock); in mit_des_string_to_key_int() 72 key = keyblock->contents; in mit_des_string_to_key_int() 88 return mit_afs_string_to_key(context, keyblock, data, &afssalt); in mit_des_string_to_key_int() 157 length, keyblock, key); in mit_des_string_to_key_int() 175 if (keyblock->hKey != CK_INVALID_HANDLE) { in mit_des_string_to_key_int() 176 (void)C_DestroyObject(krb_ctx_hSession(context), keyblock->hKey); in mit_des_string_to_key_int() 177 keyblock->hKey = CK_INVALID_HANDLE; in mit_des_string_to_key_int()
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | cc_retr.c | 197 (mcreds->keyblock.enctype == creds->keyblock.enctype))) in krb5int_cc_creds_match_request() 241 fetched.pref = pref (fetchcreds.keyblock.enctype, in krb5_cc_retrieve_cred_seq() 257 creds->keyblock.hKey = CK_INVALID_HANDLE; in krb5_cc_retrieve_cred_seq() 275 creds->keyblock.hKey = CK_INVALID_HANDLE; in krb5_cc_retrieve_cred_seq() 332 equal = (in_creds->keyblock.enctype == in_compare_creds->keyblock.enctype && in krb5_creds_compare() 333 in_creds->keyblock.length == in_compare_creds->keyblock.length && in krb5_creds_compare() 334 (!in_creds->keyblock.length || in krb5_creds_compare() 335 !memcmp (in_creds->keyblock.contents, in_compare_creds->keyblock.contents, in krb5_creds_compare() 336 in_creds->keyblock.length))); in krb5_creds_compare()
|
H A D | cc_file.c | 138 (krb5_context, krb5_ccache id, krb5_keyblock *keyblock); 188 (krb5_context, krb5_ccache id, krb5_keyblock *keyblock); 572 krb5_fcc_read_keyblock(krb5_context context, krb5_ccache id, krb5_keyblock *keyblock) in krb5_fcc_read_keyblock() argument 581 keyblock->magic = KV5M_KEYBLOCK; in krb5_fcc_read_keyblock() 582 keyblock->contents = 0; in krb5_fcc_read_keyblock() 585 keyblock->enctype = ui2; in krb5_fcc_read_keyblock() 598 keyblock->length = int32; in krb5_fcc_read_keyblock() 600 if (keyblock->length != int32) in krb5_fcc_read_keyblock() 602 if ( keyblock->length == 0 ) in krb5_fcc_read_keyblock() 605 keyblock->contents = calloc(keyblock->length, sizeof(krb5_octet)); in krb5_fcc_read_keyblock() [all …]
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | old_api_glue.c | 126 krb5_keyblock *keyblock, const krb5_data *data, in krb5_string_to_key() argument 130 keyblock)); in krb5_string_to_key() 135 const krb5_keyblock *keyblock, krb5_pointer *ptr) in krb5_init_random_key() argument 139 data.length = keyblock->length; in krb5_init_random_key() 140 data.data = (char *) keyblock->contents; in krb5_init_random_key() 154 krb5_pointer ptr, krb5_keyblock **keyblock) in krb5_random_key() argument 165 *keyblock = key; in krb5_random_key()
|
/titanic_50/usr/src/uts/common/gssapi/mechs/krb5/include/ |
H A D | des_int.h | 137 krb5_keyblock *keyblock, 226 const krb5_keyblock * keyblock); 231 krb5_keyblock * keyblock,
|
/titanic_50/usr/src/lib/libast/common/uwin/ |
H A D | crypt.c | 799 C_block keyblock; in setkey() local 807 keyblock.b[i] = k; in setkey() 809 return (des_setkey((char *)keyblock.b)); in setkey() 849 C_block keyblock, rsltblock; in crypt() local 861 keyblock.b[i] = t; in crypt() 863 if (des_setkey((char *)keyblock.b)) /* also initializes "a64toi" */ in crypt() 873 if (des_cipher((char *)&keyblock, in crypt() 874 (char *)&keyblock, 0L, 1)) in crypt() 879 keyblock.b[i] ^= t; in crypt() 881 if (des_setkey((char *)keyblock.b)) in crypt()
|
/titanic_50/usr/src/lib/krb5/kadm5/clnt/ |
H A D | client_principal.c | 387 krb5_keyblock *keyblock) in kadm5_setv4key_principal() argument 396 arg.keyblock = keyblock; in kadm5_setv4key_principal() 399 if(princ == NULL || keyblock == NULL) in kadm5_setv4key_principal() 618 kvno, krb5_keyblock *keyblock, in kadm5_decrypt_key() argument
|
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/crypto/old/ |
H A D | des_stringtokey.c | 34 krb5_keyblock * keyblock,
|