From 14b804898a5e5b9ec5029d3466621178b85af925 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Wed, 5 Feb 2020 19:36:21 +0000 Subject: ipsec: remove dead code Type: style Change-Id: Ifda9597bf4aee89cf1dfd287429a2772fed8f535 Signed-off-by: Filip Tehlar --- src/vnet/ipsec/esp.h | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src') diff --git a/src/vnet/ipsec/esp.h b/src/vnet/ipsec/esp.h index 2ab7299d7c8..b1736453b93 100644 --- a/src/vnet/ipsec/esp.h +++ b/src/vnet/ipsec/esp.h @@ -105,35 +105,6 @@ esp_seq_advance (ipsec_sa_t * sa) return 0; } - -always_inline unsigned int -hmac_calc (vlib_main_t * vm, ipsec_sa_t * sa, u8 * data, int data_len, - u8 * signature) -{ - vnet_crypto_op_t _op, *op = &_op; - - if (PREDICT_FALSE (sa->integ_op_id == 0)) - return 0; - - vnet_crypto_op_init (op, sa->integ_op_id); - op->key_index = sa->integ_key_index; - op->src = data; - op->len = data_len; - op->digest = signature; - op->digest_len = sa->integ_icv_size; - - if (ipsec_sa_is_set_USE_ESN (sa)) - { - u32 seq_hi = clib_host_to_net_u32 (sa->seq_hi); - - op->len += 4; - clib_memcpy (data + data_len, &seq_hi, 4); - } - - vnet_crypto_process_ops (vm, op, 1); - return sa->integ_icv_size; -} - always_inline void esp_aad_fill (vnet_crypto_op_t * op, const esp_header_t * esp, const ipsec_sa_t * sa) -- cgit 1.2.3-korg