diff options
author | Werner Koch <wk@gnupg.org> | 2003-10-27 13:08:05 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2003-10-27 13:08:05 +0000 |
commit | cc0fe4e847c7855e90b9af730f1ce092bb35993f (patch) | |
tree | e6d82f503cf6b493e4486b508ea5e763d8eefbac /cipher/sha512.c | |
parent | 5733ae5616a765660408683ec6dca22c912e11ae (diff) | |
download | libgcrypt-cc0fe4e847c7855e90b9af730f1ce092bb35993f.tar.gz |
* configure.ac: Give a hint on where libgpg-error is available.
Reformatted long lines. Don't include gcrypt-defs.h.
* ac.c (ac_key_identifiers): Made static.
* random.c (getfnc_gather_random,getfnc_fast_random_poll): Move
prototypes to ..
* rand-internal.h: .. here
* random.c (getfnc_gather_random): Include rndw32 gatherer.
* rndunix.c, rndw32.c, rndegd.c: Include them here.
* rndlinux.c (_gcry_rndlinux_gather_random): Prepend the _gcry_
prefix. Changed all callers.
* rndegd.c (_gcry_rndegd_gather_random): Likewise.
(_gcry_rndegd_connect_socket): Likewise.
* rndunix.c (_gcry_rndunix_gather_random): Likewise.
(waitpid): Made static.
* rndw32.c: Removed the old and unused winseed.dll cruft.
(_gcry_rndw32_gather_random_fast): Renamed from
gather_random_fast.
(_gcry_rndw32_gather_random): Renamed from gather_random. Note,
that the changes 2003-04-08 somehow got lost.
* sha512.c (sha512_init, sha384_init): Made static.
* cipher.c (do_ctr_decrypt): Removed "return" from this void
function.
* gcrypt.h (gcry_pk_testkey): Doc fix.
* libgcrypt.def: Manually wrote this file.
* build-def: This file should not be used anymore.
Diffstat (limited to 'cipher/sha512.c')
-rw-r--r-- | cipher/sha512.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cipher/sha512.c b/cipher/sha512.c index cdb6c392..cc33b805 100644 --- a/cipher/sha512.c +++ b/cipher/sha512.c @@ -63,7 +63,7 @@ typedef struct int count; } SHA512_CONTEXT; -void +static void sha512_init (void *context) { SHA512_CONTEXT *hd = (SHA512_CONTEXT *) context; @@ -81,7 +81,7 @@ sha512_init (void *context) hd->count = 0; } -void +static void sha384_init (void *context) { SHA512_CONTEXT *hd = (SHA512_CONTEXT *) context; @@ -373,7 +373,7 @@ static gcry_md_oid_spec_t oid_spec_sha512[] = { NULL } }; -gcry_md_spec_t digest_spec_sha512 = { +gcry_md_spec_t _gcry_digest_spec_sha512 = { "SHA512", sha512_asn, DIM (sha512_asn), oid_spec_sha512, 64, sha512_init, sha512_write, sha512_final, sha512_read, sizeof (SHA512_CONTEXT), @@ -392,7 +392,7 @@ static gcry_md_oid_spec_t oid_spec_sha384[] = { NULL }, }; -gcry_md_spec_t digest_spec_sha384 = { +gcry_md_spec_t _gcry_digest_spec_sha384 = { "SHA384", sha384_asn, DIM (sha384_asn), oid_spec_sha384, 48, sha384_init, sha512_write, sha512_final, sha512_read, sizeof (SHA512_CONTEXT), |