summaryrefslogtreecommitdiff
path: root/src/libtom/tomcrypt_cipher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtom/tomcrypt_cipher.h')
-rw-r--r--src/libtom/tomcrypt_cipher.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/libtom/tomcrypt_cipher.h b/src/libtom/tomcrypt_cipher.h
index bd740bf..a4b3dcf 100644
--- a/src/libtom/tomcrypt_cipher.h
+++ b/src/libtom/tomcrypt_cipher.h
@@ -328,7 +328,7 @@ typedef struct {
/** cipher descriptor table, last entry has "name == NULL" to mark the end of table */
-extern struct ltc_cipher_descriptor {
+static struct ltc_cipher_descriptor {
/** name of cipher */
char *name;
/** internal ID */
@@ -660,19 +660,19 @@ extern const struct ltc_cipher_descriptor twofish_desc;
#endif
#ifdef LTC_DES
-int des_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey);
-int des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey);
-int des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey);
-int des_test(void);
-void des_done(symmetric_key *skey);
-int des_keysize(int *keysize);
-int des3_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey);
-int des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey);
-int des3_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey);
-int des3_test(void);
-void des3_done(symmetric_key *skey);
-int des3_keysize(int *keysize);
-extern const struct ltc_cipher_descriptor des_desc, des3_desc;
+static int des_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey);
+static int des_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey);
+static int des_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey);
+static int des_test(void);
+static void des_done(symmetric_key *skey);
+static int des_keysize(int *keysize);
+static int des3_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey);
+static int des3_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey);
+static int des3_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey);
+static int des3_test(void);
+static void des3_done(symmetric_key *skey);
+static int des3_keysize(int *keysize);
+static const struct ltc_cipher_descriptor des_desc, des3_desc;
#endif
#ifdef LTC_CAST5