Lines Matching defs:csp
147 struct crypto_session_params csp;
185 memset(&csp, 0, sizeof(csp));
191 error = ah_init0(sav, xsp, &csp);
225 csp.csp_mode = CSP_MODE_AEAD;
227 csp.csp_flags |= CSP_F_SEPARATE_AAD;
231 csp.csp_mode = CSP_MODE_AEAD;
233 csp.csp_flags |= CSP_F_SEPARATE_AAD;
235 csp.csp_mode = CSP_MODE_ETA;
237 csp.csp_flags |= CSP_F_ESN;
239 csp.csp_mode = CSP_MODE_CIPHER;
242 csp.csp_cipher_alg = sav->tdb_encalgxform->type;
243 if (csp.csp_cipher_alg != CRYPTO_NULL_CBC) {
244 csp.csp_cipher_key = sav->key_enc->key_data;
245 csp.csp_cipher_klen = _KEYBITS(sav->key_enc) / 8 -
248 csp.csp_ivlen = txform->ivsize;
250 error = crypto_newsession(&sav->tdb_cryptoid, &csp, V_crypto_support);
280 const struct crypto_session_params *csp;
381 csp = crypto_get_params(crp->crp_session);
382 if ((csp->csp_flags & CSP_F_SEPARATE_AAD) &&
410 if (csp->csp_flags & CSP_F_ESN &&
711 const struct crypto_session_params *csp;
934 csp = crypto_get_params(crp->crp_session);
935 if (csp->csp_flags & CSP_F_SEPARATE_AAD &&
963 if (csp->csp_flags & CSP_F_ESN && sav->replay != NULL)