Searched defs:mech (Results 1 - 25 of 77) sorted by relevance

1234

/osnet-11/usr/src/lib/libgss/
H A Dg_context_time.c43 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(
71 map_error(minor_status, mech);
H A Dg_process_context.c44 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(
75 map_error(minor_status, mech);
H A Dg_unseal.c51 gss_mechanism mech; local
80 mech = __gss_get_mechanism(ctx->mech_type);
82 if (mech) {
83 if (mech->gss_unseal) {
84 status = mech->gss_unseal(
92 map_error(minor_status, mech);
H A Dg_verify.c47 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(
77 map_error(minor_status, mech);
H A Dg_rel_cred.c47 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
87 map_error(minor_status, mech);
H A Dg_inq_context_oid.c46 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 Dg_inquire_cred.c54 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(minor_status,
95 map_error(minor_status, mech);
104 &temp_minor_status, mech,
108 map_error(minor_status, mech);
227 gss_mechanism mech; local
240 mech
[all...]
H A Dg_sign.c83 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(
107 map_error(minor_status, mech);
H A Dg_compare_name.c75 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(
129 map_error(minor_status, mech);
200 if (!mech)
202 if (!mech
[all...]
H A Dg_dsp_status.c64 gss_mechanism mech; local
132 mech = __gss_get_mechanism(mech_type);
134 if (mech && mech->gss_display_status) {
138 mech_type = &mech->mech_type;
140 r = mech->gss_display_status(minor_status,
149 map_error(minor_status, mech);
153 if (!mech)
H A Dg_exp_sec_context.c82 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(minor_status,
106 map_error(minor_status, mech);
H A Dg_imp_sec_context.c84 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(minor_status,
152 map_error(minor_status, mech);
H A Dg_init_sec_context.c109 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(
213 map_error(minor_status, mech);
H A Dg_seal.c90 gss_mechanism mech; local
105 mech = __gss_get_mechanism(ctx->mech_type);
107 if (mech) {
108 if (mech->gss_seal) {
109 status = mech->gss_seal(
118 map_error(minor_status, mech);
167 gss_mechanism mech; local
186 mech = __gss_get_mechanism(ctx->mech_type);
188 if (!mech)
191 if (mech
[all...]
H A Dg_store_cred.c100 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(minor_status,
145 map_error(minor_status, mech);
154 /* Get mech and cred element */
156 mech = __gss_get_mechanism(dmech);
157 if (mech == NULL)
160 if (mech
[all...]
H A Dg_inquire_context.c81 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(
118 map_error(minor_status, mech);
124 status = __gss_convert_name_to_union_name(minor_status, mech,
128 mech
[all...]
H A Dg_inquire_names.c44 gss_mechanism mech; local
67 mech = __gss_get_mechanism(mechanism);
69 if (mech) {
71 if (mech->gss_inquire_names_for_mech) {
72 status = mech->gss_inquire_names_for_mech(
77 map_error(minor_status, mech);
H A Dg_userok.c96 gss_mechanism mech; local
112 mech = __gss_get_mechanism(intName->mech_type);
113 if (mech == NULL)
122 if (mech->gssint_userok)
123 major = mech->gssint_userok(minor, mechName,
/osnet-11/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Ddhmech.c34 {0, 0}, /* OID for mech type. */
121 * then check that the mech is not already initialized (If so just return
122 * the mech). It will then assign the entry points that are common to the
123 * mechanism family to the uninitialized mech. After which, it allocate space
129 __dh_gss_initialize(gss_mechanism mech) argument
132 *mech = dh_mechanism;
134 /* return the mech */
135 return (mech);
H A Dsupport.c41 gss_OID mech, /* Our OID or GSS_C_NO_OID */
72 if (mech != GSS_C_NO_OID &&
73 !__OID_equal(&OID, mech))
37 __dh_gss_display_status( OM_uint32 *minor, OM_uint32 status_value, int status_type, gss_OID mech, OM_uint32* mesg_ctx, gss_buffer_t status_str ) argument
/osnet-11/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_common.c48 gss_mechanism (*mech_init)(gss_mechanism mech);
49 gss_mechanism mech; local
53 if ((mech = __dh_gss_initialize(dhmech)) == NULL) {
58 mech->mech_type = mech_type;
60 return (mech);
/osnet-11/usr/src/lib/libcryptoutil/common/
H A Dmechstr.c45 CK_MECHANISM_TYPE mech; member in struct:__anon1503
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...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftFipsPostUtil.c81 CK_MECHANISM mech = {0, NULL, 0}; local
114 mech.mechanism = CKM_SHA1_RSA_PKCS;
119 mech.mechanism = CKM_DSA_SHA1;
124 mech.mechanism = CKM_ECDSA_SHA1;
138 rv = soft_sign_init(session_p, &mech, privateKey);
152 rv = soft_verify_init(session_p, &mech, publicKey);
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddecr_mgr.c36 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 Dencr_mgr.c34 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...]

Completed in 404 milliseconds

1234