diff options
author | Damjan Marion <damarion@cisco.com> | 2019-03-25 15:54:40 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-29 12:04:35 +0000 |
commit | b4fff3a39715c3e405b92442026bfddc3be37b27 (patch) | |
tree | 7fa86a7ccd351adf22aaca060a482b04c90d45ac /src/vnet/ipsec/ipsec_sa.c | |
parent | d7603d97e046d59aba6864b208c181b39fc72b52 (diff) |
ipsec: esp-decrypt rework
Change-Id: Icf83c876d0880d1872b84e0a3d34be654b76149f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/ipsec/ipsec_sa.c')
-rw-r--r-- | src/vnet/ipsec/ipsec_sa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec_sa.c b/src/vnet/ipsec/ipsec_sa.c index eb21ecf81a4..9f2d8505c35 100644 --- a/src/vnet/ipsec/ipsec_sa.c +++ b/src/vnet/ipsec/ipsec_sa.c @@ -100,6 +100,7 @@ ipsec_sa_set_crypto_alg (ipsec_sa_t * sa, ipsec_crypto_alg_t crypto_alg) sa->crypto_block_size = im->crypto_algs[crypto_alg].block_size; sa->crypto_enc_op_type = im->crypto_algs[crypto_alg].enc_op_type; sa->crypto_dec_op_type = im->crypto_algs[crypto_alg].dec_op_type; + ASSERT (sa->crypto_iv_size <= ESP_MAX_IV_SIZE); ASSERT (sa->crypto_block_size <= ESP_MAX_BLOCK_SIZE); } |