summaryrefslogtreecommitdiff
path: root/lib/md5.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-02-23 13:15:15 +0100
committerBruno Haible <bruno@clisp.org>2020-02-23 13:15:15 +0100
commit94ff8af6bf3399c077cb907e56424d61fdea79d4 (patch)
tree2e1dcfa6d8e861b9be74fd80b9f31cb195d5e0cf /lib/md5.h
parent1fa14c798c517aae775149ebcbe5577a73515dfc (diff)
downloadgnulib-94ff8af6bf3399c077cb907e56424d61fdea79d4.tar.gz
crypto/md5-buffer: Use 'restrict'.
* lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use 'restrict'. * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
Diffstat (limited to 'lib/md5.h')
-rw-r--r--lib/md5.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/md5.h b/lib/md5.h
index 9e0c0fb3fc..0c8b929745 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -105,13 +105,15 @@ extern void __md5_process_bytes (const void *buffer, size_t len,
in first 16 bytes following RESBUF. 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 *__md5_finish_ctx (struct md5_ctx *ctx, void *resbuf) __THROW;
+extern void *__md5_finish_ctx (struct md5_ctx *ctx, void *restrict resbuf)
+ __THROW;
/* Put result from CTX in first 16 bytes following RESBUF. 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 *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW;
+extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *restrict resbuf)
+ __THROW;
/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
@@ -119,7 +121,7 @@ extern void *__md5_read_ctx (const struct md5_ctx *ctx, void *resbuf) __THROW;
output yields to the wanted ASCII representation of the message
digest. */
extern void *__md5_buffer (const char *buffer, size_t len,
- void *resblock) __THROW;
+ void *restrict resblock) __THROW;
# endif
/* Compute MD5 message digest for bytes read from STREAM.