summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/whrlpool
diff options
context:
space:
mode:
authorjoshua <>2024-03-30 03:45:47 +0000
committerjoshua <>2024-03-30 03:45:47 +0000
commit749da716a5f8e626b96252d65eb6e5a3b2773684 (patch)
tree9d13ffd3765f4a4541a21bbae4630aa740fb2003 /src/lib/libcrypto/whrlpool
parentb5ce249dbbfcfe685b5a70cfe75b5e46cc457942 (diff)
downloadopenbsd-749da716a5f8e626b96252d65eb6e5a3b2773684.tar.gz
openbsd-749da716a5f8e626b96252d65eb6e5a3b2773684.tar.bz2
openbsd-749da716a5f8e626b96252d65eb6e5a3b2773684.zip
Hide symbols in whrlpool
ok tb
Diffstat (limited to 'src/lib/libcrypto/whrlpool')
-rw-r--r--src/lib/libcrypto/whrlpool/whirlpool.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/whrlpool/whirlpool.c b/src/lib/libcrypto/whrlpool/whirlpool.c
index 217c5a919b..e1e0f7a899 100644
--- a/src/lib/libcrypto/whrlpool/whirlpool.c
+++ b/src/lib/libcrypto/whrlpool/whirlpool.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: whirlpool.c,v 1.1 2024/03/29 02:41:49 jsing Exp $ */ 1/* $OpenBSD: whirlpool.c,v 1.2 2024/03/30 03:45:47 joshua Exp $ */
2/** 2/**
3 * The Whirlpool hashing function. 3 * The Whirlpool hashing function.
4 * 4 *
@@ -650,6 +650,7 @@ WHIRLPOOL_Init(WHIRLPOOL_CTX *c)
650 memset (c, 0, sizeof(*c)); 650 memset (c, 0, sizeof(*c));
651 return (1); 651 return (1);
652} 652}
653LCRYPTO_ALIAS(WHIRLPOOL_Init);
653 654
654int 655int
655WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes) 656WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes)
@@ -671,6 +672,7 @@ WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *_inp, size_t bytes)
671 672
672 return (1); 673 return (1);
673} 674}
675LCRYPTO_ALIAS(WHIRLPOOL_Update);
674 676
675void 677void
676WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, size_t bits) 678WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *_inp, size_t bits)
@@ -796,6 +798,7 @@ reconsider:
796 } 798 }
797 } 799 }
798} 800}
801LCRYPTO_ALIAS(WHIRLPOOL_BitUpdate);
799 802
800int 803int
801WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c) 804WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c)
@@ -837,6 +840,7 @@ WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c)
837 } 840 }
838 return (0); 841 return (0);
839} 842}
843LCRYPTO_ALIAS(WHIRLPOOL_Final);
840 844
841unsigned char * 845unsigned char *
842WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md) 846WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md)
@@ -851,3 +855,4 @@ WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md)
851 WHIRLPOOL_Final(md, &ctx); 855 WHIRLPOOL_Final(md, &ctx);
852 return (md); 856 return (md);
853} 857}
858LCRYPTO_ALIAS(WHIRLPOOL);