Searched refs:mechanism (Results 1 - 25 of 135) sorted by relevance

123456

/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/
H A Dhash_md5.c46 CK_MECHANISM mechanism; local
48 mechanism.mechanism = CKM_MD5;
49 mechanism.pParameter = NULL_PTR;
50 mechanism.ulParameterLen = 0;
52 return(k5_ef_hash(context, &mechanism, icount, input, output));
H A Dhash_sha1.c42 CK_MECHANISM mechanism; local
44 mechanism.mechanism = CKM_SHA_1;
45 mechanism.pParameter = NULL_PTR;
46 mechanism.ulParameterLen = 0;
48 return(k5_ef_hash(context, &mechanism, icount, input, output));
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_crypt.c56 CK_MECHANISM mechanism; local
61 mechanism.mechanism = CKM_MD5;
62 mechanism.pParameter = 0;
63 mechanism.ulParameterLen = 0;
65 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession);
70 rv = C_DigestInit(hSession, &mechanism);
97 CK_MECHANISM mechanism; local
102 mechanism
150 CK_MECHANISM mechanism; local
[all...]
H A Dsmb_mac.c83 CK_MECHANISM mechanism; local
99 mechanism.mechanism = CKM_MD5;
100 mechanism.pParameter = 0;
101 mechanism.ulParameterLen = 0;
103 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession);
108 rv = C_DigestInit(hSession, &mechanism);
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_crypt.c59 CK_MECHANISM mechanism; local
79 * the mechanism we plan on using.
81 mechanism.mechanism = CKM_DES_ECB;
82 mechanism.pParameter = NULL;
83 mechanism.ulParameterLen = 0;
84 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession);
91 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism,
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dinq_names.c30 * inq_names.c - Return set of nametypes supported by the KRB5 mechanism.
36 krb5_gss_inquire_names_for_mech(minor_status, mechanism, name_types)
38 gss_OID mechanism;
44 * We only know how to handle our own mechanism.
46 if ((mechanism != GSS_C_NULL_OID) &&
47 !g_OID_equal(gss_mech_krb5, mechanism) &&
48 !g_OID_equal(gss_mech_krb5_old, mechanism)) {
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftRSA.h63 CK_MECHANISM_TYPE mechanism);
68 CK_MECHANISM_TYPE mechanism);
76 CK_MECHANISM_TYPE mechanism);
81 CK_MECHANISM_TYPE mechanism);
86 CK_MECHANISM_TYPE mechanism, boolean_t Final);
91 CK_MECHANISM_TYPE mechanism, boolean_t Final);
H A DsoftVerifyUtil.c50 * verify init routine based on the mechanism.
58 switch (pMechanism->mechanism) {
127 * verify routine based on the mechanism.
136 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local
145 switch (mechanism) {
214 pSignature, ulSignatureLen, mechanism));
224 ulDataLen, pSignature, ulSignatureLen, mechanism, B_FALSE));
262 * verify update routine based on the mechanism.
269 CK_MECHANISM_TYPE mechanism local
339 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local
463 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local
[all...]
H A DsoftSignUtil.c49 * sign init routine based on the mechanism.
57 switch (pMechanism->mechanism) {
126 * sign routine based on the mechanism.
135 CK_MECHANISM_TYPE mechanism = session_p->sign.mech.mechanism; local
138 switch (mechanism) {
197 pSignature, pulSignatureLen, mechanism));
207 pSignature, pulSignatureLen, mechanism, B_FALSE));
245 * sign update routine based on the mechanism.
252 CK_MECHANISM_TYPE mechanism local
322 CK_MECHANISM_TYPE mechanism = session_p->sign.mech.mechanism; local
431 CK_MECHANISM_TYPE mechanism = session_p->sign.mech.mechanism; local
[all...]
H A DsoftRSA.c240 CK_ULONG_PTR pulEncryptedLen, CK_MECHANISM_TYPE mechanism)
266 if (mechanism == CKM_RSA_PKCS) {
292 if (mechanism == CKM_RSA_PKCS) {
329 CK_ULONG_PTR pulDataLen, CK_MECHANISM_TYPE mechanism)
359 if (mechanism == CKM_RSA_X_509) {
372 if (mechanism == CKM_RSA_PKCS) {
430 switch (pMechanism->mechanism) {
432 digest_mech.mechanism = CKM_MD5;
436 digest_mech.mechanism = CKM_SHA_1;
442 digest_mech.mechanism
238 soft_rsa_encrypt_common(soft_session_t *session_p, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pEncrypted, CK_ULONG_PTR pulEncryptedLen, CK_MECHANISM_TYPE mechanism) argument
327 soft_rsa_decrypt_common(soft_session_t *session_p, CK_BYTE_PTR pEncrypted, CK_ULONG ulEncryptedLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen, CK_MECHANISM_TYPE mechanism) argument
523 soft_rsa_sign_common(soft_session_t *session_p, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSigned, CK_ULONG_PTR pulSignedLen, CK_MECHANISM_TYPE mechanism) argument
641 soft_rsa_verify_common(soft_session_t *session_p, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, CK_MECHANISM_TYPE mechanism) argument
974 soft_rsa_digest_sign_common(soft_session_t *session_p, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSigned, CK_ULONG_PTR pulSignedLen, CK_MECHANISM_TYPE mechanism, boolean_t Final) argument
1096 soft_rsa_digest_verify_common(soft_session_t *session_p, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSigned, CK_ULONG ulSignedLen, CK_MECHANISM_TYPE mechanism, boolean_t Final) argument
1196 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local
[all...]
H A DsoftMAC.c83 switch (pMechanism->mechanism) {
165 rv = mac_init_ctx(session_p, key_p, hmac_ctx, pMechanism->mechanism);
172 session_p->sign.mech.mechanism = pMechanism->mechanism;
175 session_p->verify.mech.mechanism = pMechanism->mechanism;
237 digest_mech.mechanism = CKM_MD5;
303 digest_mech.mechanism = CKM_SHA_1;
344 digest_mech.mechanism = CKM_SHA224;
385 digest_mech.mechanism
509 CK_MECHANISM_TYPE mechanism; local
638 CK_MECHANISM_TYPE mechanism; local
[all...]
/osnet-11/usr/src/common/crypto/ecc/
H A Dsecoidt.h83 unsigned long mechanism; member in struct:SECOidDataStr
/osnet-11/usr/src/lib/libgss/
H A Dg_inquire_names.c36 gss_inquire_names_for_mech(minor_status, mechanism, name_types)
39 const gss_OID mechanism;
63 * select the approprate underlying mechanism routine and
67 mech = __gss_get_mechanism(mechanism);
74 mechanism,
123 char *mechanism; local
141 mechanism = mech_list[i];
142 if (__gss_mech_to_oid(mechanism, &mechOid) == GSS_S_COMPLETE) {
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/
H A Dhmac_md5.c55 CK_MECHANISM mechanism; local
90 mechanism.mechanism = CKM_MD5;
91 mechanism.pParameter = NULL_PTR;
92 mechanism.ulParameterLen = 0;
94 if ((rv = C_DigestInit(krb_ctx_hSession(context), &mechanism)) != CKR_OK) {
H A Dk5_md5des.c56 CK_MECHANISM mechanism; local
100 mechanism.mechanism = CKM_MD5;
101 mechanism.pParameter = NULL_PTR;
102 mechanism.ulParameterLen = 0;
104 if ((rv = C_DigestInit(krb_ctx_hSession(context), &mechanism)) != CKR_OK) {
160 CK_MECHANISM mechanism; local
218 mechanism.mechanism = CKM_MD5;
219 mechanism
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpbkdf2.c58 CK_MECHANISM mechanism; local
66 mechanism.mechanism = CKM_PKCS5_PBKD2;
67 mechanism.pParameter = &params;
68 mechanism.ulParameterLen = sizeof (params);
114 rv = C_GenerateKey(krb_ctx_hSession(context), &mechanism, tmpl,
/osnet-11/usr/src/lib/libldap4/common/
H A Dsaslbind.c23 BerElement * ldap_build_sasl_bind_req( LDAP *ld, char *dn, char *mechanism, struct berval *creds, LDAPControl ** serverctrls) argument
35 * mechanism LDAPString,
52 if ( ber_printf( ber, "{it{ist{s", ++ld->ld_msgid, LDAP_REQ_BIND, ld->ld_version, dn, LDAP_AUTH_SASL, mechanism) == -1){
97 * dn, mechanism, cred, serverctrls, and clientctrls are supplied.
105 char *mechanism,
120 if (strcasecmp(mechanism, LDAP_SASL_SIMPLE) == 0){
131 if (strcasecmp(mechanism, LDAP_SASL_CRAM_MD5) == 0){
141 if (strcasecmp(mechanism, LDAP_SASL_EXTERNAL) == 0){
151 if (strcasecmp(mechanism, LDAP_SASL_X511_PROTECTED) == 0){
166 if (strcasecmp(mechanism, LDAP_SASL_X511_STRON
102 ldap_sasl_bind( LDAP *ld, char *dn, char *mechanism, struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls, int *msgidp) argument
265 ldap_sasl_bind_s( LDAP *ld, char *dn, char *mechanism, struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls, struct berval **servercredp) argument
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_kms/common/
H A DkmsAESCrypt.c108 session_p->encrypt.mech.mechanism = pMechanism->mechanism;
112 session_p->decrypt.mech.mechanism = pMechanism->mechanism;
184 * on the mechanism.
204 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism; local
211 if (mechanism == CKM_AES_CTR)
216 * for C_Encrypt function with the mechanism CKM_AES_ECB or
220 * mechanism CKM_AES_CBC_PA
486 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local
788 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism; local
915 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Drpcsec_gss_if.c155 char *mechanism, /* security mechanism */
163 return ((*calls.rpc_gss_seccreate)(clnt, principal, mechanism,
178 char *mechanism,
185 return ((*calls.rpc_gss_get_principal_name)(principal, mechanism,
198 rpc_gss_get_mech_info(char *mechanism, rpc_gss_service_t *service) argument
202 return ((*calls.rpc_gss_get_mech_info)(mechanism, service));
214 rpc_gss_is_installed(char *mechanism) argument
218 return ((*calls.rpc_gss_is_installed)(mechanism));
224 char *mechanism,
152 rpc_gss_seccreate( CLIENT *clnt, char *principal, char *mechanism, rpc_gss_service_t service_type, char *qop, rpc_gss_options_req_t *options_req, rpc_gss_options_ret_t *options_ret) argument
176 rpc_gss_get_principal_name( rpc_gss_principal_t *principal, char *mechanism, char *user_name, char *node, char *secdomain) argument
222 rpc_gss_set_svc_name( char *principal, char *mechanism, uint_t req_time, uint_t program, uint_t version) argument
[all...]
/osnet-11/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Keys.c37 * the framework, that the mechanism is not disabled for the slot
52 pkcs11_is_dismech(fast_slot, pMechanism->mechanism)) {
72 /* Make sure this is not a disabled mechanism */
73 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
92 * the framework, that the mechanism is not disabled for the slot
110 pkcs11_is_dismech(fast_slot, pMechanism->mechanism)) {
132 /* Make sure this is not a disabled mechanism */
133 if (pkcs11_is_dismech(slotid, pMechanism->mechanism)) {
153 * the framework, that the mechanism is not disabled for the slot
169 pkcs11_is_dismech(fast_slot, pMechanism->mechanism)) {
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dsign_mgr.c66 switch (mech->mechanism) {
171 if ((mech->mechanism == CKM_MD5_HMAC_GENERAL) &&
175 if ((mech->mechanism == CKM_SHA_1_HMAC_GENERAL) &&
213 ctx->mech.mechanism = mech->mechanism;
230 ctx->mech.mechanism = 0;
277 switch (ctx->mech.mechanism) {
321 switch (ctx->mech.mechanism) {
347 switch (ctx->mech.mechanism) {
385 switch (ctx->mech.mechanism) {
[all...]
H A Dverify_mgr.c70 switch (mech->mechanism) {
167 if ((mech->mechanism == CKM_MD5_HMAC_GENERAL) &&
171 if ((mech->mechanism == CKM_SHA_1_HMAC_GENERAL) &&
198 ctx->mech.mechanism = mech->mechanism;
215 ctx->mech.mechanism = 0;
255 switch (ctx->mech.mechanism) {
299 switch (ctx->mech.mechanism) {
324 switch (ctx->mech.mechanism) {
360 switch (ctx->mech.mechanism) {
[all...]
H A Ddig_mgr.c311 switch (mech->mechanism) {
340 ctx->mech.mechanism = mech->mechanism;
354 if (ctx->mech.mechanism == CKM_MD5) {
357 } else if (ctx->mech.mechanism == CKM_SHA_1) {
363 ctx->mech.mechanism = 0;
395 switch (ctx->mech.mechanism) {
428 switch (ctx->mech.mechanism) {
494 switch (ctx->mech.mechanism) {
H A Ddecr_mgr.c88 switch (mech->mechanism) {
125 ctx->mech.mechanism = mech->mechanism;
141 ctx->mech.mechanism = 0;
180 switch (ctx->mech.mechanism) {
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Dsaslbind.c30 * ldap_sasl_bind - authenticate to the ldap server. The dn, mechanism,
49 const char *mechanism,
70 * mechanism LDAPString,
83 simple = ( mechanism == LDAP_SASL_SIMPLE );
133 mechanism );
137 mechanism, cred->bv_val,
163 * The dn, mechanism, and credentials of the entry to which to bind are
178 const char *mechanism,
195 if ( ( err = ldap_sasl_bind( ld, dn, mechanism, cred, serverctrls,
46 ldap_sasl_bind( LDAP *ld, const char *dn, const char *mechanism, const struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls, int *msgidp ) argument
175 ldap_sasl_bind_s( LDAP *ld, const char *dn, const char *mechanism, const struct berval *cred, LDAPControl **serverctrls, LDAPControl **clientctrls, struct berval **servercredp ) argument

Completed in 90 milliseconds

123456