aboutsummaryrefslogtreecommitdiff
path: root/crypt/sha512.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypt/sha512.h')
-rw-r--r--crypt/sha512.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/crypt/sha512.h b/crypt/sha512.h
index 7b27aad2d2..4f8f9e9ea0 100644
--- a/crypt/sha512.h
+++ b/crypt/sha512.h
@@ -50,16 +50,22 @@ struct sha512_ctx
};
};
+#ifdef _ISOMAC
+#define attribute_hidden /* nothing */
+#endif
+
/* Initialize structure containing state of computation.
(FIPS 180-2: 5.3.3) */
-extern void __sha512_init_ctx (struct sha512_ctx *ctx) __THROW;
+extern void __sha512_init_ctx (struct sha512_ctx *ctx)
+ __THROW attribute_hidden;
/* 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 128. */
extern void __sha512_process_bytes (const void *buffer, size_t len,
- struct sha512_ctx *ctx) __THROW;
+ struct sha512_ctx *ctx)
+ __THROW attribute_hidden;
/* Process the remaining bytes in the buffer and put result from CTX
in first 64 bytes following RESBUF.
@@ -67,6 +73,6 @@ extern void __sha512_process_bytes (const void *buffer, size_t len,
IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 64 bits value. */
extern void *__sha512_finish_ctx (struct sha512_ctx *ctx, void *resbuf)
- __THROW;
+ __THROW attribute_hidden;
#endif /* sha512.h */