aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-cp
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-03-29 13:47:54 +0100
committerDamjan Marion <damarion@cisco.com>2019-04-07 11:19:35 +0200
commit060bfb987a277624e5644de2fcbee1196c2c76e8 (patch)
tree2ca6ccf57c09c5e016f9613b0e0e75f8e49475eb /src/vnet/lisp-cp
parentdc43bcd8abef2cee4eebdc94d9a82c0194ba00fb (diff)
crypto: add support for AEAD and AES-GCM
Change-Id: Iff6f81a49b9cff5522fbb4914d47472423eac5db Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/lisp-cp')
-rw-r--r--src/vnet/lisp-cp/control.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/lisp-cp/control.c b/src/vnet/lisp-cp/control.c
index bce44288d08..340217c661e 100644
--- a/src/vnet/lisp-cp/control.c
+++ b/src/vnet/lisp-cp/control.c
@@ -2725,7 +2725,7 @@ build_map_register_record_list (lisp_cp_main_t * lcm)
return recs;
}
-static vnet_crypto_op_type_t
+static vnet_crypto_op_id_t
lisp_key_type_to_crypto_op (lisp_key_type_t key_id)
{
switch (key_id)
@@ -2755,9 +2755,9 @@ update_map_register_auth_data (map_register_hdr_t * map_reg_hdr,
op->key = key;
op->key_len = vec_len (key);
op->len = msg_len;
- op->dst = MREG_DATA (map_reg_hdr);
+ op->digest = MREG_DATA (map_reg_hdr);
op->src = (u8 *) map_reg_hdr;
- op->hmac_trunc_len = 0;
+ op->digest_len = 0;
op->iv = 0;
vnet_crypto_process_ops (lcm->vlib_main, op, 1);
@@ -3946,9 +3946,9 @@ is_auth_data_valid (map_notify_hdr_t * h, u32 msg_len,
op->key = key;
op->key_len = vec_len (key);
op->len = msg_len;
- op->dst = out;
+ op->digest = out;
op->src = (u8 *) h;
- op->hmac_trunc_len = 0;
+ op->digest_len = 0;
op->iv = 0;
vnet_crypto_process_ops (lcm->vlib_main, op, 1);