comparison libtomcrypt/src/encauth/gcm/gcm_reset.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 9
12 /** 10 /**
13 @file gcm_reset.c 11 @file gcm_reset.c
14 GCM implementation, reset a used state so it can accept IV data, by Tom St Denis 12 GCM implementation, reset a used state so it can accept IV data, by Tom St Denis
31 gcm->mode = LTC_GCM_MODE_IV; 29 gcm->mode = LTC_GCM_MODE_IV;
32 gcm->ivmode = 0; 30 gcm->ivmode = 0;
33 gcm->buflen = 0; 31 gcm->buflen = 0;
34 gcm->totlen = 0; 32 gcm->totlen = 0;
35 gcm->pttotlen = 0; 33 gcm->pttotlen = 0;
36 34
37 return CRYPT_OK; 35 return CRYPT_OK;
38 } 36 }
39 37
40 #endif 38 #endif
41 39
42 /* $Source$ */ 40 /* ref: $Format:%D$ */
43 /* $Revision$ */ 41 /* git commit: $Format:%H$ */
44 /* $Date$ */ 42 /* commit time: $Format:%ai$ */