1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
13 LRW_MODE implementation, Retrieve the current IV, Tom St Denis
20 @param IV [out] The IV, must be 16 octets
21 @param len Length ... must be at least 16 :-)
22 @param lrw The LRW state to read
23 @return CRYPT_OK if successful
25 int lrw_getiv(unsigned char *IV, unsigned long *len, symmetric_LRW *lrw)
27 LTC_ARGCHK(IV != NULL);
28 LTC_ARGCHK(len != NULL);
29 LTC_ARGCHK(lrw != NULL);
32 return CRYPT_BUFFER_OVERFLOW;
35 XMEMCPY(IV, lrw->IV, 16);
41 /* ref: $Format:%D$ */
42 /* git commit: $Format:%H$ */
43 /* commit time: $Format:%ai$ */