summaryrefslogtreecommitdiffstats
path: root/cpukit/include/sha512.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2016-05-26 19:29:29 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-09-08 16:14:56 +0200
commit3a22e5d30f49090d95ebff0e157b19522a38be35 (patch)
tree8d76d7e97bfdb251821e89688794391ede575b16 /cpukit/include/sha512.h
parentReplace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c (diff)
downloadrtems-3a22e5d30f49090d95ebff0e157b19522a38be35.tar.bz2
crypto routines: Hint minimum buffer sizes to the compiler
Use the C99 'static' keyword to hint to the compiler IVs and output digest sizes. The keyword informs the compiler of the minimum valid size for a given array. Obviously not every pointer can be validated (i.e., the compiler can produce false negative but not false positive reports). No functional change. No ABI change. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to '')
-rw-r--r--cpukit/include/sha512.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/sha512.h b/cpukit/include/sha512.h
index 1964562160..de7d19abb3 100644
--- a/cpukit/include/sha512.h
+++ b/cpukit/include/sha512.h
@@ -47,7 +47,7 @@ __BEGIN_DECLS
void SHA512_Init(SHA512_CTX *);
void SHA512_Update(SHA512_CTX *, const void *, size_t);
-void SHA512_Final(unsigned char [SHA512_DIGEST_LENGTH], SHA512_CTX *);
+void SHA512_Final(unsigned char [static SHA512_DIGEST_LENGTH], SHA512_CTX *);
#ifndef _KERNEL
char *SHA512_End(SHA512_CTX *, char *);
char *SHA512_Data(const void *, unsigned int, char *);