add LTC prefix to most macros

This commit is contained in:
Steffen Jaeckel
2014-07-17 10:49:05 +02:00
parent 3c76dcdd29
commit 155a54ba40
24 changed files with 74 additions and 74 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ int lrw_process(const unsigned char *pt, unsigned char *ct, unsigned long len, i
{
unsigned char prod[16];
int x, err;
#ifdef LRW_TABLES
#ifdef LTC_LRW_TABLES
int y;
#endif
@@ -55,7 +55,7 @@ int lrw_process(const unsigned char *pt, unsigned char *ct, unsigned long len, i
}
/* update pad */
#ifdef LRW_TABLES
#ifdef LTC_LRW_TABLES
/* for each byte changed we undo it's affect on the pad then add the new product */
for (; x < 16; x++) {
#ifdef LTC_FAST
+2 -2
View File
@@ -27,7 +27,7 @@
int lrw_setiv(const unsigned char *IV, unsigned long len, symmetric_LRW *lrw)
{
int err;
#ifdef LRW_TABLES
#ifdef LTC_LRW_TABLES
unsigned char T[16];
int x, y;
#endif
@@ -51,7 +51,7 @@ int lrw_setiv(const unsigned char *IV, unsigned long len, symmetric_LRW *lrw)
return CRYPT_OK;
}
#ifdef LRW_TABLES
#ifdef LTC_LRW_TABLES
XMEMCPY(T, &lrw->PC[0][IV[0]][0], 16);
for (x = 1; x < 16; x++) {
#ifdef LTC_FAST
+2 -2
View File
@@ -36,7 +36,7 @@ int lrw_start( int cipher,
symmetric_LRW *lrw)
{
int err;
#ifdef LRW_TABLES
#ifdef LTC_LRW_TABLES
unsigned char B[16];
int x, y, z, t;
#endif
@@ -69,7 +69,7 @@ int lrw_start( int cipher,
/* copy the IV and tweak */
XMEMCPY(lrw->tweak, tweak, 16);
#ifdef LRW_TABLES
#ifdef LTC_LRW_TABLES
/* setup tables */
/* generate the first table as it has no shifting (from which we make the other tables) */
zeromem(B, 16);