diff mbox series

[API-NEXT,v2,1/3] linux-gen: ipsec: stop supporting DES operation

Message ID 1514401208-30010-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v2,1/3] linux-gen: ipsec: stop supporting DES operation | expand

Commit Message

Github ODP bot Dec. 27, 2017, 7 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


RFC 7321 (and RFC 8221) mark single-key DES as 'MUST NOT' be
implemented. Single-key DES is being phased out of ODP, so drop its
support.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 374 (lumag:no-des)
 ** https://github.com/Linaro/odp/pull/374
 ** Patch: https://github.com/Linaro/odp/pull/374.patch
 ** Base sha: a7b46491ca049998dc38b0a5b29213a407931523
 ** Merge commit sha: 681726cebb6b8b580b1180f1c97eb29176d20b8c
 **/
 platform/linux-generic/odp_ipsec_sad.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/platform/linux-generic/odp_ipsec_sad.c b/platform/linux-generic/odp_ipsec_sad.c
index 845a73dea..8d0141bd4 100644
--- a/platform/linux-generic/odp_ipsec_sad.c
+++ b/platform/linux-generic/odp_ipsec_sad.c
@@ -196,7 +196,6 @@  uint32_t _odp_ipsec_cipher_iv_len(odp_cipher_alg_t cipher)
 	switch (cipher) {
 	case ODP_CIPHER_ALG_NULL:
 		return 0;
-	case ODP_CIPHER_ALG_DES:
 	case ODP_CIPHER_ALG_3DES_CBC:
 		return 8;
 #if ODP_DEPRECATED_API
@@ -366,7 +365,6 @@  odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param)
 		ipsec_sa->esp_iv_len = 0;
 		ipsec_sa->esp_block_len = 1;
 		break;
-	case ODP_CIPHER_ALG_DES:
 	case ODP_CIPHER_ALG_3DES_CBC:
 		ipsec_sa->esp_iv_len = 8;
 		ipsec_sa->esp_block_len = 8;