summaryrefslogtreecommitdiff
path: root/src/Blowfish.c
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2009-03-04 22:50:56 -0500
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-03-04 22:50:56 -0500
commit01f68f7471771f78285249b4865518487f044b9c (patch)
tree1e363230da91e53ede9545d417c0451dd590738c /src/Blowfish.c
parent2fef9d45362fa49bd7a1a6008eae487795ce76ae (diff)
downloadpycrypto-01f68f7471771f78285249b4865518487f044b9c.tar.gz
Reduce symbol table pollution by declaring most things "static".
Handy command: nm -g --extern-only `find . -name \*.so`
Diffstat (limited to 'src/Blowfish.c')
-rw-r--r--src/Blowfish.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blowfish.c b/src/Blowfish.c
index cfc41bb..c767626 100644
--- a/src/Blowfish.c
+++ b/src/Blowfish.c
@@ -128,7 +128,7 @@ static inline void decrypt(Blowfish_state *self, uint32_t *pxL, uint32_t *pxR)
*pxR = xR;
}
-void Blowfish_encrypt(Blowfish_state *self, const unsigned char *in, unsigned char *out)
+static void Blowfish_encrypt(Blowfish_state *self, const unsigned char *in, unsigned char *out)
{
uint32_t xL, xR;
@@ -149,7 +149,7 @@ void Blowfish_encrypt(Blowfish_state *self, const unsigned char *in, unsigned ch
word_to_bytes(xR, out+4);
}
-void Blowfish_decrypt(Blowfish_state *self, const unsigned char *in, unsigned char *out)
+static void Blowfish_decrypt(Blowfish_state *self, const unsigned char *in, unsigned char *out)
{
uint32_t xL, xR;
@@ -170,7 +170,7 @@ void Blowfish_decrypt(Blowfish_state *self, const unsigned char *in, unsigned ch
word_to_bytes(xR, out+4);
}
-void Blowfish_init(Blowfish_state *self, const unsigned char *key, int keylen)
+static void Blowfish_init(Blowfish_state *self, const unsigned char *key, int keylen)
{
uint32_t word;
int i;