tfe: endian fixes and code optimization
[tfcrypt.git] / tfe.h
diff --git a/tfe.h b/tfe.h
index f5793b1afd8fcd4836f1384f2975b33dddae57e3..e402260fb3d7fbd675d2103235e9dcd0e7f0d1d2 100644 (file)
--- a/tfe.h
+++ b/tfe.h
@@ -6,8 +6,8 @@
 struct tfe_stream {
        TF_UNIT_TYPE key[TF_NR_KEY_UNITS];
        TF_UNIT_TYPE iv[TF_NR_BLOCK_UNITS];
-       TF_BYTE_TYPE carry_block[TF_BLOCK_SIZE];
-       size_t carry_bytes;
+       TF_BYTE_TYPE tmp[TF_BLOCK_SIZE];
+       size_t tidx;
 };
 
 void tfe_init(struct tfe_stream *tfe, const void *key);