Lines Matching defs:csp
205 const struct crypto_session_params *csp)
211 if ((csp->csp_flags & ~(SUPPORTED_SES)) != 0)
214 switch (csp->csp_mode) {
216 switch (csp->csp_cipher_alg) {
220 if (csp->csp_ivlen != AES_GCM_IV_LEN)
222 if (csp->csp_auth_mlen != 0 &&
223 csp->csp_auth_mlen != GMAC_DIGEST_LEN)
225 switch (csp->csp_cipher_klen * 8) {
239 switch (csp->csp_cipher_alg) {
241 if (csp->csp_ivlen != AES_BLOCK_LEN)
243 switch (csp->csp_cipher_klen * 8) {
253 if (csp->csp_ivlen != AES_XTS_IV_LEN)
255 switch (csp->csp_cipher_klen * 8) {
275 const struct crypto_session_params *csp, const uint8_t *key, int keylen)
281 if (csp->csp_cipher_alg == CRYPTO_AES_XTS)
303 if ((csp->csp_cipher_alg == CRYPTO_AES_XTS) ||
304 (csp->csp_cipher_alg == CRYPTO_AES_CBC))
308 if (csp->csp_cipher_alg == CRYPTO_AES_XTS)
311 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) {
329 const struct crypto_session_params *csp)
343 error = armv8_crypto_cipher_setup(ses, csp, csp->csp_cipher_key,
344 csp->csp_cipher_klen);
383 const struct crypto_session_params *csp;
393 csp = crypto_get_params(crp->crp_session);
407 if (csp->csp_cipher_alg == CRYPTO_AES_NIST_GCM_16) {
450 armv8_crypto_cipher_setup(ses, csp, crp->crp_cipher_key,
451 csp->csp_cipher_klen);
457 switch (csp->csp_cipher_alg) {