summaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/esp.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2020-02-05 19:36:21 +0000
committerDamjan Marion <dmarion@me.com>2020-02-10 11:57:00 +0000
commit14b804898a5e5b9ec5029d3466621178b85af925 (patch)
treef327498d4e74b232616823f5b31016b9934316a9 /src/vnet/ipsec/esp.h
parenta877cf9f3980f9721246887f67b22b6591cb873f (diff)
ipsec: remove dead code
Type: style Change-Id: Ifda9597bf4aee89cf1dfd287429a2772fed8f535 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/esp.h')
-rw-r--r--src/vnet/ipsec/esp.h29
1 files changed, 0 insertions, 29 deletions
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)