diff options
author | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2009-03-04 22:50:56 -0500 |
---|---|---|
committer | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2009-03-04 22:50:56 -0500 |
commit | 01f68f7471771f78285249b4865518487f044b9c (patch) | |
tree | 1e363230da91e53ede9545d417c0451dd590738c /src/SHA256.c | |
parent | 2fef9d45362fa49bd7a1a6008eae487795ce76ae (diff) | |
download | pycrypto-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/SHA256.c')
-rw-r--r-- | src/SHA256.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SHA256.c b/src/SHA256.c index 73414d2..49008ea 100644 --- a/src/SHA256.c +++ b/src/SHA256.c @@ -99,7 +99,7 @@ static void sha_compress(hash_state * md) } /* init the SHA state */ -void sha_init(hash_state * md) +static void sha_init(hash_state * md) { md->curlen = md->length_upper = md->length_lower = 0; md->state[0] = 0x6A09E667UL; @@ -112,7 +112,7 @@ void sha_init(hash_state * md) md->state[7] = 0x5BE0CD19UL; } -void sha_process(hash_state * md, unsigned char *buf, int len) +static void sha_process(hash_state * md, unsigned char *buf, int len) { while (len--) { /* copy byte */ @@ -132,7 +132,7 @@ void sha_process(hash_state * md, unsigned char *buf, int len) } } -void sha_done(hash_state * md, unsigned char *hash) +static void sha_done(hash_state * md, unsigned char *hash) { int i; U32 orig_length; |