Searched refs:mech (Results 51 - 75 of 187) sorted by relevance

12345678

/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dsupport.c48 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
H A Dcred.c86 !__OID_is_member(desired_mechs, cntx->mech))
126 if (mechs && (*minor = __OID_to_OID_set(mechs, cntx->mech))) {
159 * gss_name_t name, gss_OID mech, gss_cred_usage_t usage,
227 (*minor = __OID_to_OID_set(mechs, cntx->mech)) != DH_SUCCESS) {
239 * cred and mech. Since we're a backend, mech must be our mech.
241 * We verify that passed in mech is correct and use the above routine
248 gss_OID mech, /* Along with the mechanism */
261 if (!__OID_equal(mech, contex
245 __dh_gss_inquire_cred_by_mech(void *ctx, OM_uint32 *minor, gss_cred_id_t cred, gss_OID mech, gss_name_t *name, OM_uint32 *init_time, OM_uint32 *accept_time, gss_cred_usage_t *usage ) argument
[all...]
H A Dtoken.c95 * ~ ~ (mech->length) DER encoded length of mech->length
99 * ~ ~ mech->length OID elements (mech->elements)
117 gss_OID mech, /* The mechanism this is for */
148 oid_size = mech->length;
149 oid_size += der_length_size(mech->length);
178 put_der_length(mech->length, &buf, oid_size);
180 memcpy(buf, mech->elements, mech
116 __make_ap_token(gss_buffer_t result, gss_OID mech, dh_token_t token, dh_key_set_t keys ) argument
295 __get_ap_token(gss_buffer_t input, gss_OID mech, dh_token_t token, dh_signature_t sig ) argument
[all...]
H A Dname.c331 do_exported_netname(dh_context_t ctx, /* Diffie-Hellman mech context */
374 if (mechoidlen != ctx->mech->length)
376 if (memcmp(p, ctx->mech->elements, mechoidlen) != 0)
555 gss_OID mech, gss_OID_set *names)
557 _NOTE(ARGUNUSED(ctx,mech))
588 __dh_pname_to_uid(void *ctx, /* DH mech context (not used) */
667 oid_der_len = der_length_size(dc->mech->length);
670 + dc->mech->length + namelen_len + namelen;
692 *p++ = ((mechoid_tag_len + oid_der_len + dc->mech->length)
694 *p++ = ((mechoid_tag_len + oid_der_len + dc->mech
554 __dh_gss_inquire_names_for_mech(void *ctx, OM_uint32 *minor, gss_OID mech, gss_OID_set *names) argument
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/crypto/api/
H A Dkcf_digest.c52 * for problems with the 'mech'.
70 * mech: crypto_mechanism_t pointer.
73 * When the mech's parameter is not NULL, its definition depends
96 crypto_mechanism_t *mech, crypto_data_t *data, crypto_data_t *digest,
107 rv = kcf_get_hardware_provider(mech->cm_type, NULL,
114 KCF_WRAP_DIGEST_OPS_PARAMS(&params, KCF_OP_ATOMIC, sid, mech, NULL,
130 crypto_digest(crypto_mechanism_t *mech, crypto_data_t *data, argument
140 if ((pd = kcf_get_mech_provider(mech->cm_type, NULL, NULL, &error,
151 lmech = *mech;
152 KCF_SET_PROVIDER_MECHNUM(mech
95 crypto_digest_prov(crypto_provider_t provider, crypto_session_id_t sid, crypto_mechanism_t *mech, crypto_data_t *data, crypto_data_t *digest, crypto_call_req_t *crq) argument
209 crypto_digest_init_prov(crypto_provider_t provider, crypto_session_id_t sid, crypto_mechanism_t *mech, crypto_context_t *ctxp, crypto_call_req_t *crq) argument
272 crypto_digest_init(crypto_mechanism_t *mech, crypto_context_t *ctxp, crypto_call_req_t *crq) argument
[all...]
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dh/backend/
H A DMakefile.com53 CPPFLAGS += -I../mech -I../crypto -I$(SRC)/uts/common/gssapi/include
76 CSRCS= $(MECH:%.o=../mech/%.c) $(CRYPTO:%.o=../crypto/%.c)
99 $(OBJS): ../mech/dh_gssapi.h ../mech/token.h ../mech/oid.h
106 objs/%.o pics/%.o: ../mech/%.c
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/dummy/
H A Ddmech.c74 static int g_token_size(gss_OID mech, unsigned int body_size);
75 static void g_make_token_header(gss_OID mech, int body_size,
77 static int g_verify_token_header(gss_OID mech, int *body_size,
160 gss_mechanism mech, tmp; local
162 mech = gss_mech_initialize();
165 tmp = __kgss_get_mechanism(&mech->mech_type);
179 __kgss_add_mechanism(mech);
180 ASSERT(__kgss_get_mechanism(&mech->mech_type) == mech);
504 g_token_size(mech, body_siz
[all...]
/opensolaris-onvv-gate/usr/src/lib/libcryptoutil/common/
H A Dmechstr.c45 CK_MECHANISM_TYPE mech; member in struct:__anon3308
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...]
/opensolaris-onvv-gate/usr/src/lib/libsasl/lib/
H A Dserver.c105 * which may lead to a memory leak. We keep glob_context with each mech
201 /* can't set pass for this mech */
254 cur->mech->plug->mech_dispose(cur->context, s_conn->sparams->utils);
271 if (s_conn->mech
272 && s_conn->mech->plug->mech_dispose) {
273 s_conn->mech->plug->mech_dispose(pconn->context,
284 cur->mech->plug->mech_dispose(cur->context, s_conn->sparams->utils);
401 mechanism_t *mech; local
494 mech = sasl_ALLOC(sizeof(mechanism_t));
496 if (! mech) {
1421 mech_permitted(sasl_conn_t *conn, mechanism_t *mech) argument
[all...]
H A Dclient.c74 * which may lead to a memory leak. We keep glob_context with each mech
212 cmechanism_t *mech; local
293 mech = sasl_ALLOC(sizeof(cmechanism_t));
295 if (! mech) {
299 mech->glob_context = pluglist->glob_context;
301 if (! mech) return SASL_NOMEM;
304 mech->plug=pluglist++;
305 if(_sasl_strdup(plugname, &mech->plugname, NULL) != SASL_OK) {
309 sasl_FREE(mech);
315 mech
696 have_prompts(sasl_conn_t *conn, const sasl_client_plug_t *mech) argument
746 sasl_client_start(sasl_conn_t *conn, const char *mechlist, sasl_interact_t **prompt_need, const char **clientout, unsigned *clientoutlen, const char **mech) argument
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/sys/crypto/
H A Dapi.h64 extern int crypto_create_ctx_template(crypto_mechanism_t *mech,
71 extern int crypto_digest(crypto_mechanism_t *mech, crypto_data_t *data,
76 extern int crypto_digest_init(crypto_mechanism_t *mech, crypto_context_t *ctxp,
88 extern int crypto_mac(crypto_mechanism_t *mech, crypto_data_t *data,
94 extern int crypto_mac_verify(crypto_mechanism_t *mech, crypto_data_t *data,
100 extern int crypto_mac_init(crypto_mechanism_t *mech, crypto_key_t *key,
113 extern int crypto_sign(crypto_mechanism_t *mech, crypto_key_t *key,
119 extern int crypto_sign_init(crypto_mechanism_t *mech, crypto_key_t *key,
131 extern int crypto_sign_recover(crypto_mechanism_t *mech, crypto_key_t *key,
141 extern int crypto_verify(crypto_mechanism_t *mech, crypto_key_
[all...]
H A Dimpl.h310 /* list of crypto_mech_info_t valid as the second mech in a dual operation */
328 crypto_mech_info_t pm_mech_info; /* Provider mech info */
365 * threshold for using hardware providers for this mech
560 #define KCF_MECH_TAB_FULL 0x4 /* Need more room in the mech tabs. */
611 #define KCF_PROV_CREATE_CTX_TEMPLATE(pd, mech, key, template, size, req) ( \
614 (pd)->pd_prov_handle, mech, key, template, size, req) : \
642 #define KCF_PROV_DIGEST_INIT(pd, ctx, mech, req) ( \
644 KCF_PROV_DIGEST_OPS(pd)->digest_init(ctx, mech, req) : \
671 #define KCF_PROV_DIGEST_ATOMIC(pd, session, mech, data, digest, req) ( \
674 (pd)->pd_prov_handle, session, mech, dat
[all...]
/opensolaris-onvv-gate/usr/src/lib/libgss/
H A Dg_imp_name.c192 gss_mechanism mech; local
242 if ((mech = __gss_get_mechanism(&mechOid)) == NULL)
245 if (mech->gss_import_name == NULL)
251 * if we create it; so if mech->gss_export_name == NULL, we must
254 if (mech->gss_export_name) {
255 major = mech->gss_import_name(mech->context, minor,
260 map_error(minor, mech);
281 * Additionally, the Kerberos V mech used to make display names
340 * Can a name be null? Let the mech decid
[all...]
H A Dg_dsp_status.c64 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)
/opensolaris-onvv-gate/usr/src/cmd/ldap/common/
H A Dldaptool-sasl.c30 char *mech; member in struct:__anon765
41 ldaptool_set_sasl_defaults ( LDAP *ld, char *mech, char *authid, char *username, argument
49 if (mech)
50 defaults->mech = mech;
52 ldap_get_option(ld, LDAP_OPT_X_SASL_MECH, &defaults->mech);
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/
H A Dgssapi_ext.h82 char *mech; member in struct:_qop_num
88 char *mech, /* input mech string */
94 char *mech, /* input mech string */
101 char *mech, /* input mech string */
107 char *mech, /* input mech */
108 qop_num *mech_qops, /* mech qop
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/
H A Dkrb5mech.c151 gss_mechanism mech, tmp; local
156 mech = gss_mech_initialize();
159 tmp = __kgss_get_mechanism(&mech->mech_type);
175 __kgss_add_mechanism(mech);
176 ASSERT(__kgss_get_mechanism(&mech->mech_type) == mech);
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_template.c79 gss_mechanism mech; local
81 mech = __dh_generic_initialize(&dh_mech, OID, &dh_keyopts);
83 if (mech == NULL) {
87 return (mech);
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_spnego/
H A DMakefile.com42 SRCDIR = ../mech
49 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include $(DEBUG) -I$(SRC)/lib/gss_mechs/mech_krb5/include -I$(SRC)/uts/common/gssapi/mechs/krb5/include -I$(SRC)/lib/gss_mechs/mech_krb5/mech
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_dummy/
H A DMakefile.com48 SRCDIR = ../mech
/opensolaris-onvv-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSessionUtil.c493 switch (session_p->digest.mech.mechanism) {
529 switch (session_p->digest.mech.mechanism) {
565 static CK_BYTE_PTR alloc_digest(CK_ULONG mech) argument
569 switch (mech) {
598 CK_ULONG mech; local
623 mech = p_active_op->mech.mechanism;
625 if (!DIGEST_MECH_OK(mech)) {
647 (session_p->digest.mech.mechanism != mech)) {
[all...]
H A DsoftDigestUtil.c73 session_p->digest.mech.mechanism = CKM_MD5;
91 session_p->digest.mech.mechanism = CKM_SHA_1;
92 session_p->digest.mech.pParameter = pMechanism->pParameter;
93 session_p->digest.mech.ulParameterLen =
116 session_p->digest.mech.mechanism = CKM_SHA256;
123 session_p->digest.mech.mechanism = CKM_SHA384;
130 session_p->digest.mech.mechanism = CKM_SHA512;
178 switch (session_p->digest.mech.mechanism) {
228 switch (session_p->digest.mech.mechanism) {
365 switch (session_p->digest.mech
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_ccmp.c234 crypto_mechanism_t mech; local
250 mech.cm_type = crypto_mech2id(SUN_CKM_AES_CCM);
251 mech.cm_param = (caddr_t)cmparam;
252 mech.cm_param_len = sizeof (CK_AES_CCM_PARAMS);
255 ieee80211_dbg(IEEE80211_MSG_CRYPTO, "cm_type=%lx", mech.cm_type);
257 ieee80211_dbg(IEEE80211_MSG_CRYPTO, "cm_type=%llx", mech.cm_type);
276 rv = crypto_encrypt(&mech, &d1, &crkey, NULL, &d2, NULL);
287 crypto_mechanism_t mech; local
303 mech.cm_type = crypto_mech2id(SUN_CKM_AES_CCM);
304 mech
[all...]
/opensolaris-onvv-gate/usr/src/cmd/cmd-crypto/digest/
H A Ddigest.c243 int mech; local
250 for (mech = 0; mech < MECH_ALIASES_COUNT; mech++) {
252 if (mech_aliases[mech].available == B_FALSE)
256 (void) printf("%-15s", mech_aliases[mech].alias);
258 if (mech_aliases[mech].keysize_min != ULONG_MAX &&
259 mech_aliases[mech].keysize_max != 0)
261 (mech_aliases[mech].keysize_min *
262 mech_aliases[mech]
366 CK_MECHANISM mech; local
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/rpc/sec/
H A Dsec_clnt.c721 rpc_gss_OID mech; local
728 mech = kmem_alloc(sizeof (rpc_gss_OID_desc), KM_SLEEP);
735 kmem_free(mech, sizeof (rpc_gss_OID_desc));
738 mech->length = mech32.length;
739 mech->elements = (caddr_t)(uintptr_t)mech32.elements;
742 if (copyin(mechanism, mech, sizeof (rpc_gss_OID_desc))) {
743 kmem_free(mech, sizeof (rpc_gss_OID_desc));
747 if (mech->length < MINAUTHLEN ||
748 mech->length > MAXAUTHLEN) {
749 kmem_free(mech, sizeo
[all...]

Completed in 242 milliseconds

12345678