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,
115 switch (pMechanism->mechanism) {
134 rv = soft_des_crypt_init_common(session_p, pMechanism,
159 if (pMechanism->mechanism == CKM_DES_ECB) {
194 if ((pMechanism->pParameter == NULL) ||
195 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) {
199 rv = soft_des_crypt_init_common(session_p, pMechanism,
209 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter,
226 if (pMechanism->mechanism == CKM_DES_CBC) {
231 } else if (pMechanism->mechanism == CKM_DES3_CBC) {
247 rv = soft_aes_crypt_init_common(session_p, pMechanism,
307 if ((pMechanism->pParameter == NULL) ||
308 (pMechanism->ulParameterLen != AES_BLOCK_LEN)) {
312 rv = soft_aes_crypt_init_common(session_p, pMechanism,
322 (void) memcpy(soft_aes_ctx->ivec, pMechanism->pParameter,
339 if (pMechanism->mechanism != CKM_AES_CBC_PAD) {
358 if (pMechanism->pParameter == NULL ||
359 pMechanism->ulParameterLen != sizeof (CK_AES_CTR_PARAMS)) {
363 rv = soft_aes_crypt_init_common(session_p, pMechanism,
374 pMechanism->pParameter);
400 return (soft_arcfour_crypt_init(session_p, pMechanism, key_p,
410 return (soft_rsa_crypt_init_common(session_p, pMechanism,
420 if ((pMechanism->pParameter == NULL) ||
421 (pMechanism->ulParameterLen != BLOWFISH_BLOCK_LEN))
424 rv = soft_blowfish_crypt_init_common(session_p, pMechanism,
435 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter,