iv-gen: Fail getting shorter IV values than the used counter size
authorMartin Willi <martin@revosec.ch>
Fri, 17 Apr 2015 14:16:45 +0000 (16:16 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 1 Jun 2015 07:42:10 +0000 (09:42 +0200)
commitef31254d342d23cfbeb1b0030c9c6293545fca9d
tree0a37377c878af7b22a796b209eeb92cb743ff8b6
parentd0ed1079103334680b1b775b5217709cd26d6ab6
iv-gen: Fail getting shorter IV values than the used counter size

While no algorithm actually uses such short IVs, we add a check here to ensure
we won't return just the lower bits of the counter.
src/libstrongswan/crypto/iv/iv_gen_seq.c