Lines Matching refs:pMechanism
58 pMechanism, soft_object_t *key_p)
74 rv = soft_encrypt_init(session_p, pMechanism, key_p);
90 * pMechanism: pointer to CK_MECHANISM struct provided by application
106 soft_encrypt_init(soft_session_t *session_p, CK_MECHANISM_PTR pMechanism,
112 switch (pMechanism->mechanism) {
129 return (soft_des_crypt_init_common(session_p, pMechanism,
153 if ((pMechanism->pParameter == NULL) ||
154 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) {
158 rv = soft_des_crypt_init_common(session_p, pMechanism,
168 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter,
195 return (soft_aes_crypt_init_common(session_p, pMechanism,
207 if ((pMechanism->pParameter == NULL) ||
208 (pMechanism->ulParameterLen != AES_BLOCK_LEN)) {
212 rv = soft_aes_crypt_init_common(session_p, pMechanism,
222 (void) memcpy(soft_aes_ctx->ivec, pMechanism->pParameter,
251 if (pMechanism->pParameter == NULL ||
252 pMechanism->ulParameterLen != sizeof (CK_AES_CTR_PARAMS)) {
256 rv = soft_aes_crypt_init_common(session_p, pMechanism,
267 pMechanism->pParameter);
288 return (soft_arcfour_crypt_init(session_p, pMechanism, key_p,
298 return (soft_rsa_crypt_init_common(session_p, pMechanism,
308 if ((pMechanism->pParameter == NULL) ||
309 (pMechanism->ulParameterLen != BLOWFISH_BLOCK_LEN))
312 rv = soft_blowfish_crypt_init_common(session_p, pMechanism,
323 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter,