Loading net/ipv4/ah4.c +3 −2 Original line number Diff line number Diff line #define pr_fmt(fmt) "IPsec: " fmt #include <crypto/algapi.h> #include <crypto/hash.h> #include <linux/err.h> #include <linux/module.h> Loading Loading @@ -277,7 +278,7 @@ static void ah_input_done(struct crypto_async_request *base, int err) auth_data = ah_tmp_auth(work_iph, ihl); icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out; Loading Loading @@ -413,7 +414,7 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb) goto out_free; } err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out_free; Loading net/ipv6/ah6.c +3 −2 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #define pr_fmt(fmt) "IPv6: " fmt #include <crypto/algapi.h> #include <crypto/hash.h> #include <linux/module.h> #include <linux/slab.h> Loading Loading @@ -481,7 +482,7 @@ static void ah6_input_done(struct crypto_async_request *base, int err) auth_data = ah_tmp_auth(work_iph, hdr_len); icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out; Loading Loading @@ -627,7 +628,7 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb) goto out_free; } err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out_free; Loading Loading
net/ipv4/ah4.c +3 −2 Original line number Diff line number Diff line #define pr_fmt(fmt) "IPsec: " fmt #include <crypto/algapi.h> #include <crypto/hash.h> #include <linux/err.h> #include <linux/module.h> Loading Loading @@ -277,7 +278,7 @@ static void ah_input_done(struct crypto_async_request *base, int err) auth_data = ah_tmp_auth(work_iph, ihl); icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out; Loading Loading @@ -413,7 +414,7 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb) goto out_free; } err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG: 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out_free; Loading
net/ipv6/ah6.c +3 −2 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ #define pr_fmt(fmt) "IPv6: " fmt #include <crypto/algapi.h> #include <crypto/hash.h> #include <linux/module.h> #include <linux/slab.h> Loading Loading @@ -481,7 +482,7 @@ static void ah6_input_done(struct crypto_async_request *base, int err) auth_data = ah_tmp_auth(work_iph, hdr_len); icv = ah_tmp_icv(ahp->ahash, auth_data, ahp->icv_trunc_len); err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out; Loading Loading @@ -627,7 +628,7 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb) goto out_free; } err = memcmp(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; err = crypto_memneq(icv, auth_data, ahp->icv_trunc_len) ? -EBADMSG : 0; if (err) goto out_free; Loading