Home | History | Annotate | Download | only in gcm

Lines Matching full:gcm

14    GCM implementation, reset a used state so it can accept IV data, by Tom St Denis
21 Reset a GCM state to as if you just called gcm_init(). This saves the initialization time.
22 @param gcm The GCM state to reset
25 int gcm_reset(gcm_state *gcm)
27 LTC_ARGCHK(gcm != NULL);
29 zeromem(gcm->buf, sizeof(gcm->buf));
30 zeromem(gcm->X, sizeof(gcm->X));
31 gcm->mode = GCM_MODE_IV;
32 gcm->ivmode = 0;
33 gcm->buflen = 0;
34 gcm->totlen = 0;
35 gcm->pttotlen = 0;
42 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/gcm/gcm_reset.c,v $ */