Lines Matching refs:lrw
21 Initialize the LRW context
28 @param lrw [out] The LRW state
36 symmetric_LRW *lrw)
47 LTC_ARGCHK(lrw != NULL);
64 if ((err = cipher_descriptor[cipher].setup(key, keylen, num_rounds, &lrw->key)) != CRYPT_OK) {
67 lrw->cipher = cipher;
70 XMEMCPY(lrw->tweak, tweak, 16);
78 gcm_gf_mult(tweak, B, &lrw->PC[0][y][0]);
85 t = lrw->PC[x-1][y][15];
87 lrw->PC[x][y][z] = lrw->PC[x-1][y][z-1];
89 lrw->PC[x][y][0] = gcm_shift_table[t<<1];
90 lrw->PC[x][y][1] ^= gcm_shift_table[(t<<1)+1];
96 return lrw_setiv(IV, 16, lrw);
101 /* $Source: /cvs/libtom/libtomcrypt/src/modes/lrw/lrw_start.c,v $ */