libmd: stop exporting Transform() symbols

They're not documented in libmd and we don't have any consumers.  It's
problematic to keep them exported, as we don't currently export their
implementations. Make them all private.

PR:		280784 (exp-run)
Reviewed by:	fuz
Differential Revision:	https://reviews.freebsd.org/D34503
This commit is contained in:
Kyle Evans 2022-03-08 12:05:24 -06:00
parent fd3ced1507
commit 81de655acd
12 changed files with 3 additions and 47 deletions

View File

@ -17,7 +17,6 @@ FBSD_1.7 {
MD5FileChunk;
MD5Final;
MD5Init;
MD5Transform;
MD5Update;
RIPEMD160_Data;
RIPEMD160_End;
@ -27,7 +26,6 @@ FBSD_1.7 {
RIPEMD160_FileChunk;
RIPEMD160_Final;
RIPEMD160_Init;
RIPEMD160_Transform;
RIPEMD160_Update;
RMD160_version;
SHA1_Data;
@ -38,7 +36,6 @@ FBSD_1.7 {
SHA1_FileChunk;
SHA1_Final;
SHA1_Init;
SHA1_Transform;
SHA1_Update;
SHA1_version;
SHA224_Data;
@ -58,7 +55,6 @@ FBSD_1.7 {
SHA256_FileChunk;
SHA256_Final;
SHA256_Init;
SHA256_Transform;
SHA256_Update;
SHA384_Data;
SHA384_End;
@ -95,7 +91,6 @@ FBSD_1.7 {
SHA512_FileChunk;
SHA512_Final;
SHA512_Init;
SHA512_Transform;
SHA512_Update;
SHA_Data;
SHA_End;
@ -151,7 +146,6 @@ FBSDprivate_1.0 {
_libmd_MD5FileChunk;
_libmd_MD5Final;
_libmd_MD5Init;
_libmd_MD5Transform;
_libmd_MD5Update;
_libmd_RIPEMD160_Data;
_libmd_RIPEMD160_End;
@ -161,7 +155,6 @@ FBSDprivate_1.0 {
_libmd_RIPEMD160_FileChunk;
_libmd_RIPEMD160_Final;
_libmd_RIPEMD160_Init;
_libmd_RIPEMD160_Transform;
_libmd_RIPEMD160_Update;
_libmd_RMD160_version;
_libmd_SHA1_Data;
@ -172,7 +165,6 @@ FBSDprivate_1.0 {
_libmd_SHA1_FileChunk;
_libmd_SHA1_Final;
_libmd_SHA1_Init;
_libmd_SHA1_Transform;
_libmd_SHA1_Update;
_libmd_SHA1_version;
_libmd_SHA224_Data;
@ -192,7 +184,6 @@ FBSDprivate_1.0 {
_libmd_SHA256_FileChunk;
_libmd_SHA256_Final;
_libmd_SHA256_Init;
_libmd_SHA256_Transform;
_libmd_SHA256_Update;
_libmd_SHA384_Data;
_libmd_SHA384_End;
@ -229,7 +220,6 @@ FBSDprivate_1.0 {
_libmd_SHA512_FileChunk;
_libmd_SHA512_Final;
_libmd_SHA512_Init;
_libmd_SHA512_Transform;
_libmd_SHA512_Update;
_libmd_SHA_Data;
_libmd_SHA_End;
@ -239,7 +229,6 @@ FBSDprivate_1.0 {
_libmd_SHA_FileChunk;
_libmd_SHA_Final;
_libmd_SHA_Init;
_libmd_SHA_Transform;
_libmd_SHA_Update;
_libmd_SHA_version;
_libmd_SKEIN1024_Data;

View File

@ -110,9 +110,6 @@ __BEGIN_DECLS
#define RIPEMD160_Data _libmd_RIPEMD160_Data
#endif
#ifndef RIPEMD160_Transform
#define RIPEMD160_Transform _libmd_RIPEMD160_Transform
#endif
#ifndef RMD160_version
#define RMD160_version _libmd_RMD160_version
#endif

View File

@ -226,7 +226,7 @@ void RIPEMD160_Update(RIPEMD160_CTX *c, const void *in, size_t len)
}
}
void RIPEMD160_Transform(RIPEMD160_CTX *c, unsigned char *b)
static void RIPEMD160_Transform(RIPEMD160_CTX *c, unsigned char *b)
{
u_int32_t p[16];
#if BYTE_ORDER != LITTLE_ENDIAN
@ -540,8 +540,6 @@ __weak_reference(_libmd_RIPEMD160_Init, RIPEMD160_Init);
__weak_reference(_libmd_RIPEMD160_Update, RIPEMD160_Update);
#undef RIPEMD160_Final
__weak_reference(_libmd_RIPEMD160_Final, RIPEMD160_Final);
#undef RIPEMD160_Transform
__weak_reference(_libmd_RIPEMD160_Transform, RIPEMD160_Transform);
#undef RMD160_version
__weak_reference(_libmd_RMD160_version, RMD160_version);
#endif

View File

@ -107,9 +107,6 @@ __BEGIN_DECLS
#define SHA_Data _libmd_SHA_Data
#endif
#ifndef SHA_Transform
#define SHA_Transform _libmd_SHA_Transform
#endif
#ifndef SHA_version
#define SHA_version _libmd_SHA_version
#endif
@ -145,9 +142,6 @@ __BEGIN_DECLS
#define SHA1_Data _libmd_SHA1_Data
#endif
#ifndef SHA1_Transform
#define SHA1_Transform _libmd_SHA1_Transform
#endif
#ifndef SHA1_version
#define SHA1_version _libmd_SHA1_version
#endif

View File

@ -242,7 +242,7 @@ void SHA_Update(SHA_CTX *c, const void *in, size_t len)
p[sw]=l;
}
void SHA_Transform(SHA_CTX *c, unsigned char *b)
static void SHA_Transform(SHA_CTX *c, unsigned char *b)
{
u_int32_t p[16];
#if BYTE_ORDER == LITTLE_ENDIAN

View File

@ -270,7 +270,7 @@ SHA1_Update(SHA_CTX *c, const void *in, size_t len)
p[sw]=l;
}
void SHA1_Transform(SHA_CTX *c, unsigned char *b)
static void SHA1_Transform(SHA_CTX *c, unsigned char *b)
{
u_int32_t p[16];
#if BYTE_ORDER != BIG_ENDIAN
@ -483,8 +483,6 @@ __weak_reference(_libmd_SHA_Init, SHA_Init);
__weak_reference(_libmd_SHA_Update, SHA_Update);
#undef SHA_Final
__weak_reference(_libmd_SHA_Final, SHA_Final);
#undef SHA_Transform
__weak_reference(_libmd_SHA_Transform, SHA_Transform);
#undef SHA_version
__weak_reference(_libmd_SHA_version, SHA_version);
#undef SHA1_Init
@ -493,8 +491,6 @@ __weak_reference(_libmd_SHA1_Init, SHA1_Init);
__weak_reference(_libmd_SHA1_Update, SHA1_Update);
#undef SHA1_Final
__weak_reference(_libmd_SHA1_Final, SHA1_Final);
#undef SHA1_Transform
__weak_reference(_libmd_SHA1_Transform, SHA1_Transform);
#undef SHA1_version
__weak_reference(_libmd_SHA1_version, SHA1_version);
#endif

View File

@ -73,9 +73,6 @@ __BEGIN_DECLS
#define SHA256_Data _libmd_SHA256_Data
#endif
#ifndef SHA256_Transform
#define SHA256_Transform _libmd_SHA256_Transform
#endif
#ifndef SHA256_version
#define SHA256_version _libmd_SHA256_version
#endif

View File

@ -391,8 +391,6 @@ __weak_reference(_libmd_SHA256_Init, SHA256_Init);
__weak_reference(_libmd_SHA256_Update, SHA256_Update);
#undef SHA256_Final
__weak_reference(_libmd_SHA256_Final, SHA256_Final);
#undef SHA256_Transform
__weak_reference(_libmd_SHA256_Transform, SHA256_Transform);
#undef SHA224_Init
__weak_reference(_libmd_SHA224_Init, SHA224_Init);

View File

@ -72,9 +72,6 @@ __BEGIN_DECLS
#define SHA512_Data _libmd_SHA512_Data
#endif
#ifndef SHA512_Transform
#define SHA512_Transform _libmd_SHA512_Transform
#endif
#ifndef SHA512_version
#define SHA512_version _libmd_SHA512_version
#endif

View File

@ -511,8 +511,6 @@ __weak_reference(_libmd_SHA512_Init, SHA512_Init);
__weak_reference(_libmd_SHA512_Update, SHA512_Update);
#undef SHA512_Final
__weak_reference(_libmd_SHA512_Final, SHA512_Final);
#undef SHA512_Transform
__weak_reference(_libmd_SHA512_Transform, SHA512_Transform);
#undef SHA512_224_Init
__weak_reference(_libmd_SHA512_224_Init, SHA512_224_Init);

View File

@ -69,9 +69,6 @@ __BEGIN_DECLS
#define SHA512_224_Data _libmd_SHA512_224_Data
#endif
#ifndef SHA512_224_Transform
#define SHA512_224_Transform _libmd_SHA512_224_Transform
#endif
#ifndef SHA512_224_version
#define SHA512_224_version _libmd_SHA512_224_version
#endif
@ -104,9 +101,6 @@ __BEGIN_DECLS
#define SHA512_256_Data _libmd_SHA512_256_Data
#endif
#ifndef SHA512_256_Transform
#define SHA512_256_Transform _libmd_SHA512_256_Transform
#endif
#ifndef SHA512_256_version
#define SHA512_256_version _libmd_SHA512_256_version
#endif

View File

@ -338,6 +338,4 @@ __weak_reference(_libmd_MD5Init, MD5Init);
__weak_reference(_libmd_MD5Update, MD5Update);
#undef MD5Final
__weak_reference(_libmd_MD5Final, MD5Final);
#undef MD5Transform
__weak_reference(_libmd_MD5Transform, MD5Transform);
#endif