/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | dhmech.c | 36 {0, 0}, /* OID for mech type. */ 74 * then check that the mech is not already initialized (If so just return 75 * the mech). It will then assign the entry points that are common to the 76 * mechanism family to the uninitialized mech. After which, it allocate space 82 __dh_gss_initialize(gss_mechanism mech) argument 84 if (mech->context != NULL) 85 return (mech); /* already initialized */ 88 *mech = dh_mechanism; 91 mech->context = New(dh_context_desc, 1); 92 if (mech [all...] |
H A D | support.c | 48 gss_OID mech, /* Our OID or GSS_C_NO_OID */ 79 if (mech != GSS_C_NO_OID && 80 !__OID_equal(((dh_context_t)ctx)->mech, mech)) 44 __dh_gss_display_status(void *ctx, OM_uint32 *minor, OM_uint32 status_value, int status_type, gss_OID mech, OM_uint32* mesg_ctx, gss_buffer_t status_str ) argument
|
/illumos-gate/usr/src/lib/libgss/ |
H A D | g_context_time.c | 43 gss_mechanism mech; local 61 mech = __gss_get_mechanism(ctx->mech_type); 63 if (mech) { 65 if (mech->gss_context_time) { 66 status = mech->gss_context_time( 67 mech->context, 72 map_error(minor_status, mech);
|
H A D | g_process_context.c | 44 gss_mechanism mech; local 65 mech = __gss_get_mechanism(ctx->mech_type); 67 if (mech) { 69 if (mech->gss_process_context_token) { 70 status = mech->gss_process_context_token( 71 mech->context, 76 map_error(minor_status, mech);
|
H A D | g_unseal.c | 50 gss_mechanism mech; local 79 mech = __gss_get_mechanism(ctx->mech_type); 81 if (mech) { 82 if (mech->gss_unseal) { 83 status = mech->gss_unseal( 84 mech->context, 92 map_error(minor_status, mech);
|
H A D | g_verify.c | 47 gss_mechanism mech; local 66 mech = __gss_get_mechanism(ctx->mech_type); 68 if (mech) { 69 if (mech->gss_verify) { 70 status = mech->gss_verify( 71 mech->context, 78 map_error(minor_status, mech);
|
H A D | g_rel_cred.c | 47 gss_mechanism mech; local 76 mech = __gss_get_mechanism(&union_cred->mechs_array[j]); 80 if (mech) { 81 if (mech->gss_release_cred) { 82 temp_status = mech->gss_release_cred 83 (mech->context, minor_status, 87 map_error(minor_status, mech);
|
H A D | g_inq_context_oid.c | 46 gss_mechanism mech; local 60 mech = gssint_get_mechanism (ctx->mech_type); 62 if (mech != NULL) { 63 if (mech->gss_inquire_sec_context_by_oid != NULL) { 64 status = mech->gss_inquire_sec_context_by_oid(minor_status, 69 map_error(minor_status, mech);
|
H A D | g_inquire_cred.c | 54 gss_mechanism mech; local 78 * get_mechanism will return the first mechanism in the mech 82 if ((mech = __gss_get_mechanism(GSS_C_NULL_OID)) == NULL) 85 if (!mech->gss_inquire_cred) 88 status = mech->gss_inquire_cred(mech->context, minor_status, 95 map_error(minor_status, mech); 104 &temp_minor_status, mech, 108 map_error(minor_status, mech); 227 gss_mechanism mech; local [all...] |
H A D | g_sign.c | 83 gss_mechanism mech; local 96 mech = __gss_get_mechanism(ctx->mech_type); 98 if (mech) { 99 if (mech->gss_sign) { 100 status = mech->gss_sign( 101 mech->context, 108 map_error(minor_status, mech);
|
H A D | g_compare_name.c | 75 gss_mechanism mech = NULL; local 99 mech = __gss_get_mechanism(union_name1->mech_type); 100 if (!mech) 102 if (!mech->gss_compare_name) 119 if (!mech) 121 if (!mech->gss_compare_name) 123 major_status = mech->gss_compare_name(mech->context, 129 map_error(minor_status, mech); 200 if (!mech) [all...] |
H A D | g_dsp_status.c | 64 gss_mechanism mech; local 130 mech = __gss_get_mechanism(mech_type); 132 if (mech && mech->gss_display_status) { 136 mech_type = &mech->mech_type; 138 r = mech->gss_display_status(mech->context, minor_status, 145 map_error(minor_status, mech); 149 if (!mech)
|
H A D | g_exp_sec_context.c | 82 gss_mechanism mech; local 97 mech = __gss_get_mechanism(ctx->mech_type); 98 if (!mech) 100 if (!mech->gss_export_sec_context) 103 status = mech->gss_export_sec_context(mech->context, minor_status, 106 map_error(minor_status, mech);
|
H A D | g_imp_sec_context.c | 84 gss_mechanism mech; local 134 mech = __gss_get_mechanism(ctx->mech_type); 135 if (!mech) { 139 if (!mech->gss_import_sec_context) { 144 status = mech->gss_import_sec_context(mech->context, minor_status, 151 map_error(minor_status, mech);
|
H A D | g_init_sec_context.c | 109 gss_mechanism mech; local 130 mech = __gss_get_mechanism(mech_type); 131 if (mech == NULL) 134 if (mech->gss_init_sec_context == NULL) 138 mech_type = &mech->mech_type; 157 * descriptor to hold the mech type information as well as the 191 status = mech->gss_init_sec_context( 192 mech->context, 214 map_error(minor_status, mech);
|
H A D | g_seal.c | 88 gss_mechanism mech; local 103 mech = __gss_get_mechanism(ctx->mech_type); 105 if (mech) { 106 if (mech->gss_seal) { 107 status = mech->gss_seal( 108 mech->context, 117 map_error(minor_status, mech); 165 gss_mechanism mech; local 184 mech = __gss_get_mechanism(ctx->mech_type); 186 if (!mech) [all...] |
H A D | g_store_cred.c | 100 gss_mechanism mech; local 125 mech = __gss_get_mechanism(desired_mech); 126 if (mech == NULL) 129 if (mech->gss_store_cred == NULL) 136 major_status = mech->gss_store_cred(mech->context, 146 map_error(minor_status, mech); 155 /* Get mech and cred element */ 157 mech = __gss_get_mechanism(dmech); 158 if (mech [all...] |
H A D | g_inquire_context.c | 81 gss_mechanism mech; local 99 mech = __gss_get_mechanism(ctx->mech_type); 101 if (!mech || !mech->gss_inquire_context || !mech->gss_display_name || 102 !mech->gss_release_name) { 106 status = mech->gss_inquire_context( 107 mech->context, 119 map_error(minor_status, mech); 125 status = __gss_convert_name_to_union_name(minor_status, mech, [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | dh_common.c | 95 gss_mechanism (*mech_init)(gss_mechanism mech); 96 gss_mechanism mech; local 116 if ((mech = mech_init(dhmech)) == NULL) { 121 mech->mech_type = mech_type; 124 context = (dh_context_t)mech->context; 130 context->mech = &mech->mech_type; 132 return (mech);
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | mechstr.c | 45 CK_MECHANISM_TYPE mech; member in struct:__anon3096 327 return (((pkcs11_mapping_t *)mapping1)->mech - 328 ((pkcs11_mapping_t *)mapping2)->mech); 333 * pkcs11_mech2str - convert PKCS#11 mech to a string 340 *pkcs11_mech2str(CK_MECHANISM_TYPE mech) argument 345 if (mech >= CKM_VENDOR_DEFINED) { 350 target.mech = mech; 363 * pkcs11_str2mech - convert a string into a PKCS#11 mech number. 365 * Since there isn't a reserved value for an invalid mech w 370 pkcs11_str2mech(char *mech_str, CK_MECHANISM_TYPE_PTR mech) argument [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/ |
H A D | ef_crypto.c | 22 crypto_mechanism_t mech; local 45 mech.cm_type = key->kef_mt; 46 if (mech.cm_type == CRYPTO_MECH_INVALID) { 48 "k5_ef_crypto - invalid crypto mech type: 0x%llx", 54 mech.cm_param_len = ivec->length; 55 mech.cm_param = (char *)ivec->data; 57 mech.cm_param_len = 0; 58 mech.cm_param = NULL; 62 rv = crypto_encrypt(&mech, &d1, 68 rv = crypto_decrypt(&mech, [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/ |
H A D | hash_kef_generic.c | 24 crypto_mechanism_t mech; local 40 mech.cm_type = context->kef_cksum_mt; 41 if (mech.cm_type == CRYPTO_MECH_INVALID) { 43 "k5_ef_hash() invalid mech specified: 0x%llx", 47 mech.cm_param = 0; 48 mech.cm_param_len = 0; 50 rv = crypto_digest_init(&mech, &ctxp, NULL); 97 crypto_mechanism_t mech; local 116 mech.cm_type = context->kef_hash_mt; 117 if (mech [all...] |
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_ctxops.c | 47 * mech: crypto_mechanism_t pointer. 50 * When the mech's parameter is not NULL, its definition depends 73 * RYPTO_MECHANISM_INVALID: invalid mechanism 'mech'. 76 crypto_create_ctx_template(crypto_mechanism_t *mech, crypto_key_t *key, argument 90 if (mech == NULL) 93 error = kcf_get_sw_prov(mech->cm_type, &pd, &me, B_TRUE); 104 prov_mech.cm_type = KCF_TO_PROV_MECHNUM(pd, mech->cm_type); 105 prov_mech.cm_param = mech->cm_param; 106 prov_mech.cm_param_len = mech->cm_param_len;
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | decr_mgr.c | 36 CK_MECHANISM *mech, 88 switch (mech->mechanism) { 91 if (mech->ulParameterLen != 0) 115 if (mech->ulParameterLen > 0) { 116 ptr = (CK_BYTE *)malloc(mech->ulParameterLen); 120 (void) memcpy(ptr, mech->pParameter, mech->ulParameterLen); 124 ctx->mech.ulParameterLen = mech->ulParameterLen; 125 ctx->mech 32 decr_mgr_init( SESSION *sess, ENCR_DECR_CONTEXT *ctx, CK_ULONG operation, CK_MECHANISM *mech, CK_OBJECT_HANDLE key_handle) argument [all...] |
H A D | encr_mgr.c | 34 CK_MECHANISM * mech, 45 if (! sess || ! ctx || ! mech) { 88 switch (mech->mechanism) { 91 if (mech->ulParameterLen != 0) { 114 if (mech->ulParameterLen > 0) { 115 ptr = (CK_BYTE *)malloc(mech->ulParameterLen); 119 (void) memcpy(ptr, mech->pParameter, mech->ulParameterLen); 123 ctx->mech.ulParameterLen = mech 31 encr_mgr_init(SESSION * sess, ENCR_DECR_CONTEXT * ctx, CK_ULONG operation, CK_MECHANISM * mech, CK_OBJECT_HANDLE key_handle) argument [all...] |