Searched defs:mech_type (Results 1 - 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dmechkeygen.c35 pkcs11_mech2keygen(CK_MECHANISM_TYPE mech_type, CK_MECHANISM_TYPE *gen_mech) argument
37 switch (mech_type) {
H A Dmechkeytype.c36 pkcs11_mech2keytype(CK_MECHANISM_TYPE mech_type, CK_KEY_TYPE *ktype) argument
41 switch (mech_type) {
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_common.c92 gss_OID_desc mech_type, /* OID of mechanism */
121 mech->mech_type = mech_type;
130 context->mech = &mech->mech_type;
91 __dh_generic_initialize(gss_mechanism dhmech, gss_OID_desc mech_type, dh_keyopts_t keyopts ) argument
/illumos-gate/usr/src/lib/libgss/
H A Dg_canon_name.c50 const gss_OID mech_type,
67 if (input_name == GSS_C_NO_NAME || mech_type == GSS_C_NULL_OID)
76 mech_type,
80 const gss_OID mech_type;
90 mech_type,
103 if (!output_name && in_union->mech_type &&
104 g_OID_equal(in_union->mech_type, mech_type))
114 out_union->mech_type = 0;
140 if (in_union->mech_type) {
47 val_canon_name_args( OM_uint32 *minor_status, const gss_name_t input_name, const gss_OID mech_type, gss_name_t *output_name) argument
[all...]
H A Dg_dsp_status.c63 gss_OID mech_type = (gss_OID) req_mech_type; local
126 mech_type = &m_oid;
130 mech = __gss_get_mechanism(mech_type);
135 if (mech_type == GSS_C_NULL_OID)
136 mech_type = &mech->mech_type;
139 status_value, status_type, mech_type,
H A Dg_init_sec_context.c108 gss_OID mech_type = GSS_C_NULL_OID; local
121 mech_type = (gss_OID)req_mech_type;
127 * mechanism. If mech_type is NULL, set it to the resultant
130 mech = __gss_get_mechanism(mech_type);
137 if (mech_type == GSS_C_NULL_OID)
138 mech_type = &mech->mech_type;
142 * mech_type that we're about to use. Otherwise, do an import on
145 if (union_name->mech_type &&
146 g_OID_equal(union_name->mech_type, mech_typ
[all...]
H A Dg_inquire_context.c39 gss_OID *mech_type)
53 if (mech_type != NULL)
54 *mech_type = GSS_C_NO_OID;
75 gss_OID *mech_type,
89 mech_type);
99 mech = __gss_get_mechanism(ctx->mech_type);
148 if (mech_type)
149 *mech_type = &mech->mech_type;
34 val_inq_ctx_args( OM_uint32 *minor_status, gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, gss_OID *mech_type) argument
69 gss_inquire_context( OM_uint32 *minor_status, gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, OM_uint32 *lifetime_rec, gss_OID *mech_type, OM_uint32 *ctx_flags, int *locally_initiated, int *opened) argument
H A Dg_userok.c40 const gss_OID mech_type,
55 if (!gss_user.value || !name || !mech_type)
69 mech_type,
115 mech = __gss_get_mechanism(intName->mech_type);
120 if (intName->mech_type == NULL) {
129 major = compare_names(minor, intName->mech_type,
39 compare_names(OM_uint32 *minor, const gss_OID mech_type, const gss_name_t name, const char *user, int *user_ok) argument
H A Dg_accept_sec_context.c45 gss_OID *mech_type,
58 if (mech_type != NULL)
59 *mech_type = GSS_C_NO_OID;
93 mech_type,
105 gss_OID *mech_type;
128 mech_type,
162 &union_ctx_id->mech_type);
172 token_mech_type = union_ctx_id->mech_type;
199 mech_type,
211 if (mech_type
40 val_acc_sec_ctx_args( OM_uint32 *minor_status, gss_ctx_id_t *context_handle, gss_buffer_t input_token_buffer, gss_name_t *src_name, gss_OID *mech_type, gss_buffer_t output_token, gss_cred_id_t *d_cred) argument
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSlot.h39 int mech_type; member in struct:cipher_mechs_threshold
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dencrypt.c81 init_key_kef(crypto_mech_type_t mech_type, krb5_keyblock *key) argument
96 key->kef_mt = mech_type;
98 if (key->key_tmpl == NULL && mech_type != CRYPTO_MECH_INVALID) {
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm_digest.c110 CK_MECHANISM_TYPE mech_type = CKM_SHA_1; local
160 rv = C_GetMechanismInfo(slotID, mech_type, &info);
196 mech.mechanism = mech_type;
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_krb5ssp.c119 gss_OID mech_type = GSS_C_NULL_OID; local
138 GSS_C_NO_CHANNEL_BINDINGS, &gname, &mech_type, &outtok,
158 (int)mech_type, major, minor);
/illumos-gate/usr/src/lib/gss_mechs/mech_spnego/mech/
H A DgssapiP_spnego.h78 gss_OID mech_type; member in struct:__anon2545
170 gss_OID, /* mech_type */
188 gss_OID, /* mech_type */
208 gss_OID *, /* mech_type */
224 gss_OID *, /* mech_type */
273 gss_OID, /* mech_type */
283 gss_OID, /* mech_type */
294 gss_OID, /* mech_type */
445 gss_OID *mech_type,
458 gss_OID *mech_type,
[all...]
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_tabs.c798 kcf_get_sw_prov(crypto_mech_type_t mech_type, kcf_provider_desc_t **pd, argument
805 if (kcf_get_mech_entry(mech_type, &me) != KCF_SUCCESS)
H A Dkcf_mech_tabs.c629 crypto_mech_type_t mech_type; local
638 if ((mech_type = kcf_mech_hash_find(mech_name)) ==
648 if (kcf_get_mech_entry(mech_type, &mech_entry) != KCF_SUCCESS) {
717 mil2->ml_kcf_mechid != mech_type) {
758 kcf_get_mech_entry(crypto_mech_type_t mech_type, kcf_mech_entry_t **mep) argument
766 class = KCF_MECH2CLASS(mech_type);
774 index = KCF_MECH2INDEX(mech_type);
H A Dkcf_callprov.c112 crypto_mech_type_t mech_type,
120 mech_info = &(KCF_TO_PROV_MECHINFO(provider, mech_type));
170 crypto_mech_type_t, mech_type,
529 kcf_get_mech_provider(crypto_mech_type_t mech_type, crypto_key_t *key, argument
543 class = KCF_MECH2CLASS(mech_type);
550 index = KCF_MECH2INDEX(mech_type);
594 mech_type, key)) {
111 kcf_check_prov_mech_keylen(kcf_provider_desc_t *provider, crypto_mech_type_t mech_type, crypto_key_t *key) argument
/illumos-gate/usr/src/lib/rpcsec_gss/
H A Drpcsec_gss.c87 gss_OID mech_type; /* GSS mechanism */ member in struct:_rpc_gss_data
114 gss_OID mech_type; local
129 if (!__rpc_gss_mech_to_oid(mech, &mech_type)) {
180 ap->mech_type = mech_type;
187 &mech_type, &ret_flags, &time_rec)) {
220 if ((s = __rpc_gss_oid_to_mech(mech_type)) != NULL)
288 ap->mech_type,
437 if ((mech = __rpc_gss_oid_to_mech(ap->mech_type)) == NULL)
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dsha1_mod.c1419 sha1_mech_type_t mech_type; local
1429 mech_type = PROV_SHA1_CTX(ctx)->sc_mech_type;
1430 if (mech_type == SHA1_MECH_INFO_TYPE)
1433 ASSERT(mech_type == SHA1_HMAC_MECH_INFO_TYPE ||
1434 mech_type == SHA1_HMAC_GEN_MECH_INFO_TYPE);
H A Dmd5_mod.c1476 md5_mech_type_t mech_type; local
1486 mech_type = PROV_MD5_CTX(ctx)->mc_mech_type;
1487 if (mech_type == MD5_MECH_INFO_TYPE)
1490 ASSERT(mech_type == MD5_HMAC_MECH_INFO_TYPE ||
1491 mech_type == MD5_HMAC_GEN_MECH_INFO_TYPE);
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaUtil.c480 if (mechanism == meta_mechs_threshold[i].mech_type)
857 get_slotlist_for_mech(CK_MECHANISM_TYPE mech_type, argument
866 rv = meta_mechManager_slot_supports_mech(mech_type,
876 mech_support_info->mech = mech_type;
897 if ((mech_support_info->mech != mech_type) ||
899 mech_support_info->mech = mech_type;
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/
H A Dadm_uef.c1518 CK_MECHANISM_TYPE mech_type; local
1554 if (pkcs11_str2mech(marglist->name, &mech_type) != CKR_OK) {
1565 (int)mech_type);
/illumos-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c368 CK_MECHANISM_TYPE mech_type; local
398 mech_type = mech_aliases[mech_match].type;
543 rv = C_GetMechanismInfo(token_slot_id, mech_type, &info);
552 rv = C_GetMechanismInfo(slotID, mech_type, &info);
619 if (mech_type == CKM_DES_MAC) {
651 if (mech_type == CKM_DES_MAC) {
665 if (mech_type == CKM_DES_MAC) {
714 mech.mechanism = mech_type;
/illumos-gate/usr/src/uts/common/gssapi/
H A Dgssd_clnt_stubs.c616 const gss_OID mech_type,
685 arg.mech_type.GSS_OID_len = (uint_t)(mech_type != GSS_C_NULL_OID ?
686 mech_type->length : 0);
687 arg.mech_type.GSS_OID_val = (char *)(mech_type != GSS_C_NULL_OID ?
688 mech_type->elements : 0);
843 const gss_OID mech_type,
894 target_name, mech_type, req_flags, time_req,
929 gss_OID *mech_type,
609 kgss_init_sec_context_wrapped( OM_uint32 *minor_status, const gssd_cred_id_t claimant_cred_handle, OM_uint32 gssd_cred_verifier, gssd_ctx_id_t *context_handle, OM_uint32 *gssd_context_verifier, const gss_name_t target_name, const gss_OID mech_type, int req_flags, OM_uint32 time_req, const gss_channel_bindings_t input_chan_bindings, const gss_buffer_t input_token, gss_OID *actual_mech_type, gss_buffer_t output_token, int *ret_flags, OM_uint32 *time_rec, uid_t uid) argument
838 kgss_init_sec_context( OM_uint32 *minor_status, const gss_cred_id_t claimant_cred_handle, gss_ctx_id_t *context_handle, const gss_name_t target_name, const gss_OID mech_type, int req_flags, OM_uint32 time_req, const gss_channel_bindings_t input_chan_bindings, const gss_buffer_t input_token, gss_OID *actual_mech_type, gss_buffer_t output_token, int *ret_flags, OM_uint32 *time_rec, uid_t uid) argument
920 kgss_accept_sec_context_wrapped( OM_uint32 *minor_status, gssd_ctx_id_t *context_handle, OM_uint32 *gssd_context_verifier, const gssd_cred_id_t verifier_cred_handle, OM_uint32 gssd_cred_verifier, const gss_buffer_t input_token, const gss_channel_bindings_t input_chan_bindings, gss_buffer_t src_name, gss_OID *mech_type, gss_buffer_t output_token, int *ret_flags, OM_uint32 *time_rec, gss_cred_id_t *delegated_cred_handle, uid_t uid) argument
1117 kgss_accept_sec_context( OM_uint32 *minor_status, gss_ctx_id_t *context_handle, const gss_cred_id_t verifier_cred_handle, const gss_buffer_t input_token, const gss_channel_bindings_t input_chan_bindings, gss_buffer_t src_name, gss_OID *mech_type, gss_buffer_t output_token, int *ret_flags, OM_uint32 *time_rec, gss_cred_id_t *delegated_cred_handle, uid_t uid) argument
[all...]
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_miscapi.c70 * mechname. Once it find it, it builds the 64-bit mech_type and returns
642 crypto_get_all_mech_info(crypto_mech_type_t mech_type, argument
655 if ((rv = kcf_get_mech_entry(mech_type, &me)) != CRYPTO_SUCCESS) {

Completed in 146 milliseconds

12