@@ -92,6 +92,11 @@ extern "C" {
void blake2_init_accel(void);
+ /* Export optimized versions to silent -Wmissing-prototypes warnings. */
+ void blake2b_compress_avx2( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] );
+ void blake2b_compress_sse2( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] );
+ void blake2b_compress_sse41( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] );
+
#if defined(__cplusplus)
}
#endif
@@ -220,10 +220,6 @@ static void blake2b_compress_ref( blake2b_state *S, const uint8_t block[BLAKE2B_
#undef G
#undef ROUND
-void blake2b_compress_sse2( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] );
-void blake2b_compress_sse41( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] );
-void blake2b_compress_avx2( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] );
-
static void (*blake2b_compress)( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] ) = blake2b_compress_ref;
void blake2_init_accel(void)
This is to avoid -Wmissing-prototypes warnings. Signed-off-by: Qu Wenruo <wqu@suse.com> --- crypto/blake2.h | 5 +++++ crypto/blake2b-ref.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-)