diff --git a/lib/freetiger/C/tiger.c b/lib/freetiger/C/tiger.c index 72f624b..f0b738e 100644 --- a/lib/freetiger/C/tiger.c +++ b/lib/freetiger/C/tiger.c @@ -4,7 +4,7 @@ * available on the official Tiger algorithm page. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * the algorithm authorsip notice, this list of conditions and the following * disclaimer. @@ -15,7 +15,7 @@ * derived from this software without specific prior written permission. * 4. If this license is not appropriate for you please write me at * klondike ( a t ) klondike ( d o t ) es to negotiate another license. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO @@ -619,7 +619,7 @@ for (j = 0; j < 3; j++) {\ uc(res2+j)[7-k] = swp2;\ }\ } - + #else #define endianvars #define endianvars_2 @@ -637,7 +637,7 @@ void tiger(const char *str, t_word length, t_res res) res[0]=0x0123456789ABCDEFULL; res[1]=0xFEDCBA9876543210ULL; res[2]=0xF096A5B4C3B2E187ULL; - + while(strr,salt,128); pres->n = 0; pres->hs = length; - + while(passwordh, 24); //Reorder the result so it is shown in propper endian fixresendian; - + //Append any remaining psalt character i=128 - pres->n; memcpy(tmp,pres->r+pres->n,i); while (i != 64 && salt != end) { uc(tmp)[i++] = *salt++; } - + if ( i == 64) { #ifdef USE_BIG_ENDIAN for (j = 0; j < 8; j++) { @@ -1274,7 +1274,7 @@ void tigerp2(const t_pres *pres, const char *salt, t_word length, t_res res) memset(uc(tmp)+i,0,(size_t)((8-i)&7)); i+=(8-i)&7; //Reorder the block so it uses propper endianism now - //TODO: recode this so it copies the data and sets it in big endian + //TODO: recode this so it copies the data and sets it in big endian #ifdef USE_BIG_ENDIAN for (j = 0; j < i; j+=8) { for (k = 0; k < 4; k++) { @@ -1294,4 +1294,4 @@ void tigerp2(const t_pres *pres, const char *salt, t_word length, t_res res) tiger_block(tmp, res); //Finally we reorder the result so it is shown in little endian fixresendian; -} \ No newline at end of file +} diff --git a/lib/freetiger/C/tiger.h b/lib/freetiger/C/tiger.h index dffa9e8..510eee5 100644 --- a/lib/freetiger/C/tiger.h +++ b/lib/freetiger/C/tiger.h @@ -4,7 +4,7 @@ * available on the official Tiger algorithm page. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * + * * 1. Redistributions of source code must retain the above copyright notice, * the algorithm authorsip notice, this list of conditions and the following * disclaimer. @@ -15,7 +15,7 @@ * derived from this software without specific prior written permission. * 4. If this license is not appropriate for you please write me at * klondike ( a t ) klondike ( d o t ) es to negotiate another license. - * + * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO