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,
88 switch (pMechanism->mechanism) {
107 return (soft_des_crypt_init_common(session_p, pMechanism,
130 if ((pMechanism->pParameter == NULL) ||
131 (pMechanism->ulParameterLen != DES_BLOCK_LEN)) {
135 rv = soft_des_crypt_init_common(session_p, pMechanism,
145 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter,
173 return (soft_aes_crypt_init_common(session_p, pMechanism,
185 if ((pMechanism->pParameter == NULL) ||
186 (pMechanism->ulParameterLen != AES_BLOCK_LEN)) {
190 rv = soft_aes_crypt_init_common(session_p, pMechanism,
201 (void) memcpy(soft_aes_ctx->ivec, pMechanism->pParameter,
231 if (pMechanism->pParameter == NULL ||
232 pMechanism->ulParameterLen != sizeof (CK_AES_CTR_PARAMS)) {
236 rv = soft_aes_crypt_init_common(session_p, pMechanism,
247 pMechanism->pParameter);
269 if ((pMechanism->pParameter == NULL) ||
270 (pMechanism->ulParameterLen != BLOWFISH_BLOCK_LEN))
273 rv = soft_blowfish_crypt_init_common(session_p, pMechanism,
285 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter,
313 return (soft_arcfour_crypt_init(session_p, pMechanism, key_p,
323 return (soft_rsa_crypt_init_common(session_p, pMechanism,