comparison libtomcrypt/src/encauth/gcm/gcm_reset.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
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$ */