Sets the IV for XTS mode.
#include "huaes.h"
int hu_AESXTSIVSet(size_t unitNo, sb_Uint32 blockIndex, size_t ivLen, unsigned char *iv, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
Data Unit Sequence Number to start.
Block index to start in a Data Unit. The value shall not be equal to or larger than 2^20.
The byte length of the IV. This value must be SB_AES_128_BLOCK_BYTES (=16).
The IV value.
A global context.
This function does not consider the size of a data unit. Therefore, if the block index supplied to this function exceeds the size of the data unit, it will be detected by the calls to hu_AESBegin(), hu_AESBeginV2() or hu_AESCtxReset().
Block index in a data unit starts at 0.
Block index is invalid.
ivLen is NULL.
The iv buffer length is invalid.