diff options
Diffstat (limited to 'src/libtom/tomcrypt_des.c')
-rw-r--r-- | src/libtom/tomcrypt_des.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libtom/tomcrypt_des.c b/src/libtom/tomcrypt_des.c index 3cdc13f..d921ca5 100644 --- a/src/libtom/tomcrypt_des.c +++ b/src/libtom/tomcrypt_des.c @@ -6,16 +6,16 @@ * The library is free for all purposes without any express * guarantee it works. * - * Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.com + * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" /** @file des.c - DES code submitted by Dobes Vandermeer + LTC_DES code submitted by Dobes Vandermeer */ -#ifdef DES +#ifdef LTC_DES #define EN0 0 #define DE1 1 @@ -1519,7 +1519,7 @@ static void desfunc(ulong32 *block, const ulong32 *keys) #endif /** - Initialize the DES block cipher + Initialize the LTC_DES block cipher @param key The symmetric key you wish to pass @param keylen The key length in bytes @param num_rounds The number of rounds desired (0 for default) @@ -1546,7 +1546,7 @@ static int des_setup(const unsigned char *key, int keylen, int num_rounds, symme } /** - Initialize the 3DES-EDE block cipher + Initialize the 3LTC_DES-EDE block cipher @param key The symmetric key you wish to pass @param keylen The key length in bytes @param num_rounds The number of rounds desired (0 for default) @@ -1578,7 +1578,7 @@ static int des3_setup(const unsigned char *key, int keylen, int num_rounds, symm } /** - Encrypts a block of text with DES + Encrypts a block of text with LTC_DES @param pt The input plaintext (8 bytes) @param ct The output ciphertext (8 bytes) @param skey The key as scheduled @@ -1599,7 +1599,7 @@ static int des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric } /** - Decrypts a block of text with DES + Decrypts a block of text with LTC_DES @param ct The input ciphertext (8 bytes) @param pt The output plaintext (8 bytes) @param skey The key as scheduled @@ -1620,7 +1620,7 @@ static int des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric } /** - Encrypts a block of text with 3DES-EDE + Encrypts a block of text with 3LTC_DES-EDE @param pt The input plaintext (8 bytes) @param ct The output ciphertext (8 bytes) @param skey The key as scheduled @@ -1644,7 +1644,7 @@ static int des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetri } /** - Decrypts a block of text with 3DES-EDE + Decrypts a block of text with 3LTC_DES-EDE @param ct The input ciphertext (8 bytes) @param pt The output plaintext (8 bytes) @param skey The key as scheduled @@ -1667,7 +1667,7 @@ static int des3_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetri } /** - Performs a self-test of the DES block cipher + Performs a self-test of the LTC_DES block cipher @return CRYPT_OK if functional, CRYPT_NOP if self-test has been disabled */ static int des_test(void) @@ -1898,5 +1898,5 @@ static int des3_keysize(int *keysize) /* $Source: /cvs/libtom/libtomcrypt/src/ciphers/des.c,v $ */ -/* $Revision: 1.13 $ */ -/* $Date: 2006/11/08 23:01:06 $ */ +/* $Revision: 1.15 $ */ +/* $Date: 2007/05/12 14:20:27 $ */ |