aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/cavium/cryptocteon/cryptocteon.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/mips/cavium/cryptocteon/cryptocteon.c')
-rw-r--r--sys/mips/cavium/cryptocteon/cryptocteon.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/mips/cavium/cryptocteon/cryptocteon.c b/sys/mips/cavium/cryptocteon/cryptocteon.c
index 56030979f24e..2fe2e9f29c63 100644
--- a/sys/mips/cavium/cryptocteon/cryptocteon.c
+++ b/sys/mips/cavium/cryptocteon/cryptocteon.c
@@ -121,14 +121,6 @@ cryptocteon_cipher_supported(const struct crypto_session_params *csp)
{
switch (csp->csp_cipher_alg) {
- case CRYPTO_DES_CBC:
- case CRYPTO_3DES_CBC:
- if (csp->csp_ivlen != 8)
- return (false);
- if (csp->csp_cipher_klen != 8 &&
- csp->csp_cipher_klen != 24)
- return (false);
- break;
case CRYPTO_AES_CBC:
if (csp->csp_ivlen != 16)
return (false);
@@ -229,11 +221,6 @@ cryptocteon_newsession(device_t dev, crypto_session_t cses,
break;
case CSP_MODE_CIPHER:
switch (csp->csp_cipher_alg) {
- case CRYPTO_DES_CBC:
- case CRYPTO_3DES_CBC:
- ocd->octo_encrypt = octo_des_cbc_encrypt;
- ocd->octo_decrypt = octo_des_cbc_decrypt;
- break;
case CRYPTO_AES_CBC:
ocd->octo_encrypt = octo_aes_cbc_encrypt;
ocd->octo_decrypt = octo_aes_cbc_decrypt;
@@ -242,19 +229,6 @@ cryptocteon_newsession(device_t dev, crypto_session_t cses,
break;
case CSP_MODE_ETA:
switch (csp->csp_cipher_alg) {
- case CRYPTO_DES_CBC:
- case CRYPTO_3DES_CBC:
- switch (csp->csp_auth_alg) {
- case CRYPTO_MD5_HMAC:
- ocd->octo_encrypt = octo_des_cbc_md5_encrypt;
- ocd->octo_decrypt = octo_des_cbc_md5_decrypt;
- break;
- case CRYPTO_SHA1_HMAC:
- ocd->octo_encrypt = octo_des_cbc_sha1_encrypt;
- ocd->octo_decrypt = octo_des_cbc_sha1_encrypt;
- break;
- }
- break;
case CRYPTO_AES_CBC:
switch (csp->csp_auth_alg) {
case CRYPTO_MD5_HMAC: