summaryrefslogtreecommitdiff
path: root/lib/sha1.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-09 18:16:21 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-09 18:16:21 +0000
commit4573c9e81c131a3c8e6504502252c5acb9a43314 (patch)
treef5580721d74b3253649390516509d14cb18d443b /lib/sha1.h
parent81b4c13eb585bfe851e25424e525f9020187af57 (diff)
downloadcoreutils-4573c9e81c131a3c8e6504502252c5acb9a43314.tar.xz
Finish renaming sha -> sha1.
Diffstat (limited to 'lib/sha1.h')
-rw-r--r--lib/sha1.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sha1.h b/lib/sha1.h
index caca96ebd..fe470d401 100644
--- a/lib/sha1.h
+++ b/lib/sha1.h
@@ -23,7 +23,7 @@
# include "md5.h"
/* Structure to save state of computation between the single steps. */
-struct sha_ctx
+struct sha1_ctx
{
md5_uint32 A;
md5_uint32 B;
@@ -38,21 +38,21 @@ struct sha_ctx
/* Initialize structure containing state of computation. */
-extern void sha_init_ctx (struct sha_ctx *ctx);
+extern void sha1_init_ctx (struct sha1_ctx *ctx);
/* Starting with the result of former calls of this function (or the
initialization function update the context for the next LEN bytes
starting at BUFFER.
It is necessary that LEN is a multiple of 64!!! */
-extern void sha_process_block (const void *buffer, size_t len,
- struct sha_ctx *ctx);
+extern void sha1_process_block (const void *buffer, size_t len,
+ struct sha1_ctx *ctx);
/* Starting with the result of former calls of this function (or the
initialization function update the context for the next LEN bytes
starting at BUFFER.
It is NOT required that LEN is a multiple of 64. */
-extern void sha_process_bytes (const void *buffer, size_t len,
- struct sha_ctx *ctx);
+extern void sha1_process_bytes (const void *buffer, size_t len,
+ struct sha1_ctx *ctx);
/* Process the remaining bytes in the buffer and put result from CTX
in first 20 bytes following RESBUF. The result is always in little
@@ -61,7 +61,7 @@ extern void sha_process_bytes (const void *buffer, size_t len,
IMPORTANT: On some systems it is required that RESBUF be correctly
aligned for a 32 bits value. */
-extern void *sha_finish_ctx (struct sha_ctx *ctx, void *resbuf);
+extern void *sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf);
/* Put result from CTX in first 20 bytes following RESBUF. The result is
@@ -70,18 +70,18 @@ extern void *sha_finish_ctx (struct sha_ctx *ctx, void *resbuf);
IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 32 bits value. */
-extern void *sha_read_ctx (const struct sha_ctx *ctx, void *resbuf);
+extern void *sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf);
/* Compute SHA1 message digest for bytes read from STREAM. The
resulting message digest number will be written into the 20 bytes
beginning at RESBLOCK. */
-extern int sha_stream (FILE *stream, void *resblock);
+extern int sha1_stream (FILE *stream, void *resblock);
/* Compute SHA1 message digest for LEN bytes beginning at BUFFER. The
result is always in little endian byte order, so that a byte-wise
output yields to the wanted ASCII representation of the message
digest. */
-extern void *sha_buffer (const char *buffer, size_t len, void *resblock);
+extern void *sha1_buffer (const char *buffer, size_t len, void *resblock);
#endif