Lines Matching refs:pMechanism
66 * pMechanism: pointer to CK_MECHANISM struct provided by application
82 soft_decrypt_init(soft_session_t *session_p, CK_MECHANISM_PTR pMechanism,
91 switch (pMechanism->mechanism) {
111 rv = soft_des_crypt_init_common(session_p, pMechanism,
136 if (pMechanism->mechanism == CKM_DES_ECB) {
170 if ((pMechanism->pParameter == NULL) ||
171 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) {
175 rv = soft_des_crypt_init_common(session_p, pMechanism,
185 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter,
203 if (pMechanism->mechanism == CKM_DES_CBC) {
208 } else if (pMechanism->mechanism == CKM_DES3_CBC) {
223 rv = soft_aes_crypt_init_common(session_p, pMechanism,
283 if ((pMechanism->pParameter == NULL) ||
284 (pMechanism->ulParameterLen != AES_BLOCK_LEN)) {
288 rv = soft_aes_crypt_init_common(session_p, pMechanism,
299 (void) memcpy(soft_aes_ctx->ivec, pMechanism->pParameter,
317 if (pMechanism->mechanism != CKM_AES_CBC_PAD) {
337 if (pMechanism->pParameter == NULL ||
338 pMechanism->ulParameterLen != sizeof (CK_AES_CTR_PARAMS)) {
342 rv = soft_aes_crypt_init_common(session_p, pMechanism,
353 pMechanism->pParameter);
380 if ((pMechanism->pParameter == NULL) ||
381 (pMechanism->ulParameterLen != BLOWFISH_BLOCK_LEN))
384 rv = soft_blowfish_crypt_init_common(session_p, pMechanism,
396 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter,
424 return (soft_arcfour_crypt_init(session_p, pMechanism, key_p,
434 return (soft_rsa_crypt_init_common(session_p, pMechanism,