diff options
author | cem <cem@FreeBSD.org> | 2016-05-26 19:29:29 +0000 |
---|---|---|
committer | cem <cem@FreeBSD.org> | 2016-05-26 19:29:29 +0000 |
commit | 444253bba579f26af746a0fbf42b89b8f44298a0 (patch) | |
tree | a3f8dd317ab9b8bf2071cc3dc88766e3294342a7 /sys/sys/md4.h | |
parent | 6aac4cff86e423c72bc1e352d3435843185b5977 (diff) | |
download | FreeBSD-src-444253bba579f26af746a0fbf42b89b8f44298a0.zip FreeBSD-src-444253bba579f26af746a0fbf42b89b8f44298a0.tar.gz |
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 'sys/sys/md4.h')
-rw-r--r-- | sys/sys/md4.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/sys/md4.h b/sys/sys/md4.h index 5ad9e99..e77eabb 100644 --- a/sys/sys/md4.h +++ b/sys/sys/md4.h @@ -39,10 +39,7 @@ __BEGIN_DECLS void MD4Init(MD4_CTX *); void MD4Update(MD4_CTX *, const unsigned char *, unsigned int); void MD4Pad(MD4_CTX *); -void MD4Final(unsigned char [16], MD4_CTX *); -char * MD4End(MD4_CTX *, char *); -char * MD4File(const char *, char *); -char * MD4Data(const unsigned char *, unsigned int, char *); +void MD4Final(unsigned char [static 16], MD4_CTX *); __END_DECLS #endif /* _MD4_H_ */ |