[Bug,4018] Unexpected IV causes IPsec API validation to fail.

Message ID 010001679849586b-35bec36a-05cd-4941-b02c-159691b22ea2-000000@email.amazonses.com
State New
Headers show
  • [Bug,4018] Unexpected IV causes IPsec API validation to fail.
Related show

Commit Message

bugzilla-daemon@bugs.linaro.org Dec. 10, 2018, 1:23 p.m.

--- Comment #3 from Janne Peltonen <janne.peltonen@nokia.com> ---
I am referring to all IPsec output tests. The test cases compare the output
packet produced by the IPsec implementation against the expected output packet
defined in the test vector. The packets match only if the IPsec implementation
chooses the same IV that is in the test vector as otherwise the encrypted bytes
are totally different.

You can see which test cases could fail with other implementations by changing
the IV generation a little, like this, and running make check:

You are receiving this mail because:
You are on the CC list for the bug.


--- a/platform/linux-generic/odp_ipsec.c
+++ b/platform/linux-generic/odp_ipsec.c
@@ -1032,6 +1032,7 @@  static int ipsec_out_iv(ipsec_state_t *state,
                        return -1;

+       state->iv[0] += 1;
        return 0;