comparison libtomcrypt/src/modes/ctr/ctr_getiv.c @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 6dba84798cd5
children
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
3 * LibTomCrypt is a library that provides various cryptographic 3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 *
9 * Tom St Denis, [email protected], http://libtom.org
10 */ 8 */
11 #include "tomcrypt.h" 9 #include "tomcrypt.h"
12 10
13 /** 11 /**
14 @file ctr_getiv.c 12 @file ctr_getiv.c
16 */ 14 */
17 15
18 #ifdef LTC_CTR_MODE 16 #ifdef LTC_CTR_MODE
19 17
20 /** 18 /**
21 Get the current initial vector 19 Get the current initialization vector
22 @param IV [out] The destination of the initial vector 20 @param IV [out] The destination of the initialization vector
23 @param len [in/out] The max size and resulting size of the initial vector 21 @param len [in/out] The max size and resulting size of the initialization vector
24 @param ctr The CTR state 22 @param ctr The CTR state
25 @return CRYPT_OK if successful 23 @return CRYPT_OK if successful
26 */ 24 */
27 int ctr_getiv(unsigned char *IV, unsigned long *len, symmetric_CTR *ctr) 25 int ctr_getiv(unsigned char *IV, unsigned long *len, symmetric_CTR *ctr)
28 { 26 {
39 return CRYPT_OK; 37 return CRYPT_OK;
40 } 38 }
41 39
42 #endif 40 #endif
43 41
44 /* $Source$ */ 42 /* ref: $Format:%D$ */
45 /* $Revision$ */ 43 /* git commit: $Format:%H$ */
46 /* $Date$ */ 44 /* commit time: $Format:%ai$ */