Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/nlm/dev/sec/nlmsec.c
Show First 20 Lines • Show All 385 Lines • ▼ Show 20 Lines | xlp_sec_auth_supported(const struct crypto_session_params *csp) | ||||
return (true); | return (true); | ||||
} | } | ||||
static bool | static bool | ||||
xlp_sec_cipher_supported(const struct crypto_session_params *csp) | xlp_sec_cipher_supported(const struct crypto_session_params *csp) | ||||
{ | { | ||||
switch (csp->csp_cipher_alg) { | switch (csp->csp_cipher_alg) { | ||||
case CRYPTO_DES_CBC: | |||||
case CRYPTO_3DES_CBC: | |||||
if (csp->csp_ivlen != XLP_SEC_DES_IV_LENGTH) | |||||
return (false); | |||||
break; | |||||
case CRYPTO_AES_CBC: | case CRYPTO_AES_CBC: | ||||
if (csp->csp_ivlen != XLP_SEC_AES_IV_LENGTH) | if (csp->csp_ivlen != XLP_SEC_AES_IV_LENGTH) | ||||
return (false); | return (false); | ||||
break; | break; | ||||
default: | default: | ||||
return (false); | return (false); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines |