/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/ |
H A D | hash_md5.c | 46 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 D | hash_sha1.c | 42 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));
|
H A D | hash_ef_generic.c | 13 CK_MECHANISM *mechanism, 22 if ((rv = C_DigestInit(krb_ctx_hSession(context), mechanism)) != 12 k5_ef_hash(krb5_context context, CK_MECHANISM *mechanism, unsigned int icount, krb5_const krb5_data *input, krb5_data *output) argument
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/ |
H A D | d3_cbc.c | 41 CK_MECHANISM mechanism; local 61 mechanism.mechanism = algos.enc_algo; 62 mechanism.pParameter = (void*)ivec; 64 mechanism.ulParameterLen = sizeof(mit_des_cblock); 66 mechanism.ulParameterLen = 0; 69 rv = C_EncryptInit(krb_ctx_hSession(context), &mechanism, key->hKey); 71 rv = C_DecryptInit(krb_ctx_hSession(context), &mechanism, key->hKey);
|
H A D | f_cbc.c | 44 CK_MECHANISM mechanism; local 64 mechanism.mechanism = algos.enc_algo; 65 mechanism.pParameter = ivec; 67 mechanism.ulParameterLen = MIT_DES_BLOCK_LENGTH; 69 mechanism.ulParameterLen = 0; 72 rv = C_EncryptInit(krb_ctx_hSession(context), &mechanism, key->hKey); 74 rv = C_DecryptInit(krb_ctx_hSession(context), &mechanism, key->hKey);
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelEmulate.c | 41 is_hmac(CK_MECHANISM_TYPE mechanism) argument 43 switch (mechanism) {
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystore.h | 49 uint64_t mechanism; member in struct:ks_obj_hdr
|
H A D | softSignUtil.c | 51 * sign init routine based on the mechanism. 59 switch (pMechanism->mechanism) { 125 * sign routine based on the mechanism. 134 CK_MECHANISM_TYPE mechanism = session_p->sign.mech.mechanism; local 137 switch (mechanism) { 194 pSignature, pulSignatureLen, mechanism)); 203 pSignature, pulSignatureLen, mechanism, B_FALSE)); 241 * sign update routine based on the mechanism. 248 CK_MECHANISM_TYPE mechanism local 315 CK_MECHANISM_TYPE mechanism = session_p->sign.mech.mechanism; local 421 CK_MECHANISM_TYPE mechanism = session_p->sign.mech.mechanism; local [all...] |
H A D | softVerifyUtil.c | 52 * verify init routine based on the mechanism. 60 switch (pMechanism->mechanism) { 126 * verify routine based on the mechanism. 135 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local 138 switch (mechanism) { 205 pSignature, ulSignatureLen, mechanism)); 214 ulDataLen, pSignature, ulSignatureLen, mechanism, B_FALSE)); 252 * verify update routine based on the mechanism. 259 CK_MECHANISM_TYPE mechanism local 326 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local 443 CK_MECHANISM_TYPE mechanism = session_p->verify.mech.mechanism; local [all...] |
H A D | softDecryptUtil.c | 71 * decrypt init routine based on the mechanism. 76 * CKR_MECHANISM_PARAM_INVALID: invalid parameters in mechanism 77 * CKR_MECHANISM_INVALID: invalid mechanism type 79 * with the specified mechanism 88 switch (pMechanism->mechanism) { 346 * on the mechanism. 357 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local 359 switch (mechanism) { 418 ulEncryptedLen, pData, pulDataLen, mechanism)); 477 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local 526 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local [all...] |
H A D | softAESCrypt.c | 67 session_p->encrypt.mech.mechanism = pMechanism->mechanism; 71 session_p->decrypt.mech.mechanism = pMechanism->mechanism; 144 * on the mechanism. 164 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism; local 171 if (mechanism == CKM_AES_CTR) 176 * for C_Encrypt function with the mechanism CKM_AES_ECB or 180 * mechanism CKM_AES_CBC_PA 502 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local [all...] |
H A D | softDESCrypt.c | 75 session_p->encrypt.mech.mechanism = pMechanism->mechanism; 79 session_p->decrypt.mech.mechanism = pMechanism->mechanism; 166 * on the mechanism. 185 CK_MECHANISM_TYPE mechanism = session_p->encrypt.mech.mechanism; local 193 pad_mechanism = (mechanism == CKM_DES_CBC_PAD || 194 mechanism == CKM_DES3_CBC_PAD); 197 * for C_Encrypt function with the mechanism CKM_DE 501 CK_MECHANISM_TYPE mechanism = session_p->decrypt.mech.mechanism; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/ |
H A D | hmac_md5.c | 56 CK_MECHANISM mechanism; local 91 mechanism.mechanism = CKM_MD5; 92 mechanism.pParameter = NULL_PTR; 93 mechanism.ulParameterLen = 0; 95 if ((rv = C_DigestInit(krb_ctx_hSession(context), &mechanism)) != CKR_OK) {
|
H A D | k5_md5des.c | 58 CK_MECHANISM mechanism; local 99 mechanism.mechanism = CKM_MD5; 100 mechanism.pParameter = NULL_PTR; 101 mechanism.ulParameterLen = 0; 103 if ((rv = C_DigestInit(krb_ctx_hSession(context), &mechanism)) != CKR_OK) { 167 CK_MECHANISM mechanism; local 225 mechanism.mechanism = CKM_MD5; 226 mechanism [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 58 CK_MECHANISM mechanism; local 66 mechanism.mechanism = CKM_PKCS5_PBKD2; 67 mechanism.pParameter = ¶ms; 68 mechanism.ulParameterLen = sizeof (params); 114 rv = C_GenerateKey(krb_ctx_hSession(context), &mechanism, tmpl,
|
/illumos-gate/usr/src/lib/libgss/ |
H A D | g_inquire_names.c | 36 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); 75 mechanism, 124 char *mechanism; local 142 mechanism = mech_list[i]; 143 if (__gss_mech_to_oid(mechanism, &mechOid) == GSS_S_COMPLETE) {
|
/illumos-gate/usr/src/common/crypto/ecc/ |
H A D | secoidt.h | 83 unsigned long mechanism; member in struct:SECOidDataStr
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | crypt.c | 62 CK_MECHANISM mechanism; local 90 * the mechanism we plan on using. 92 mechanism.mechanism = CKM_DES_ECB; 93 mechanism.pParameter = NULL; 94 mechanism.ulParameterLen = 0; 95 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); 105 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, 172 CK_MECHANISM mechanism; local [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | saslbind.c | 30 * 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
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | encrypt.c | 114 CK_MECHANISM mechanism; local
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_crypt.c | 85 CK_MECHANISM mechanism; local 90 mechanism.mechanism = CKM_MD5_HMAC; 91 mechanism.pParameter = 0; 92 mechanism.ulParameterLen = 0; 93 rv = SUNW_C_GetMechSession(mechanism.mechanism, &hSession); 98 rv = SUNW_C_KeyToObject(hSession, mechanism.mechanism, 106 rv = C_SignInit(hSession, &mechanism, hKe 138 CK_MECHANISM mechanism; local 250 CK_MECHANISM mechanism; local [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | arcfour_provider.c | 83 CK_MECHANISM mechanism; local 134 mechanism.mechanism = algos.enc_algo; 135 mechanism.pParameter = NULL; 136 mechanism.ulParameterLen = 0; 138 rv = C_DecryptInit(session, &mechanism, *kptr); 199 CK_MECHANISM mechanism; local 236 mechanism.mechanism = algos.enc_algo; 237 mechanism [all...] |
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_dsa.c | 52 int dca_dsainit(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, 382 dca_dsainit(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, argument 403 reqp->dr_ctx.ctx_cm_type = mechanism->cm_type; 543 crypto_session_id_t session_id, crypto_mechanism_t *mechanism, 553 rv = dca_dsainit(&ctx, mechanism, key, kmflag, mode); 542 dca_dsaatomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *data, crypto_data_t *sig, int kmflag, crypto_req_handle_t req, int mode) argument
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | metaMechManager.c | 35 * Each element in the array represents a particular mechanism type. The 36 * array is sorted by type, so that searching by mechanism can be done 37 * quickly. Each element also contains the mechanism data for each slot. 155 * Also, it may not be allowed based on the mechanism policy. 202 * Get list of all slots supporting the specified mechanism. 206 * specified mechanism. The "num_supporting_slots" field 208 * many slots are found to support the mechanism. 271 * Updates a mechanism in the mechlist. If the mechanism is not 272 * listed, all providers will be queried. If the mechanism 605 find_mech_index(CK_MECHANISM_TYPE mechanism, unsigned long *index) argument 646 meta_mechManager_slot_supports_mech(CK_MECHANISM_TYPE mechanism, CK_ULONG slotnum, boolean_t *supports, mechinfo_t **slot_info, boolean_t force_update, CK_MECHANISM_INFO *mech_info) argument [all...] |
H A D | pkcs11SUNWExtensions.c | 193 * mechanism. 250 /* find slot with matching mechanism */ 254 /* found mechanism */ 260 /* no matching mechanism found */ 274 * mechanism from the rawkey data. 298 * Check to make sure mechanism type is not for asymmetric key 322 /* get the key type for this mechanism */ 338 /* set the attribute type flag on object based on mechanism */ 384 CK_MECHANISM mechanism; local 448 mechanism [all...] |