iv-gen: Ensure external sequential IVs are actually sequential

We allow gaps in IVs, but ensure that an IV is never used more than once.
This commit is contained in:
Martin Willi
2015-06-01 09:42:10 +02:00
committed by Andreas Steffen
parent 823a8a9b46
commit d0ed107910
2 changed files with 23 additions and 0 deletions
+3
View File
@@ -25,6 +25,9 @@
/**
* Create an IV generator that generates sequential IVs (counter).
*
* The passed external IV must be larger than the one passed to any previous
* call.
*
* @return IV generator
*/
iv_gen_t *iv_gen_seq_create();