| 1 |
From 86d419f9989613a0f046ca1613b005efac942095 Mon Sep 17 00:00:00 2001 |
| 2 |
From: tobtoht <[email protected]> |
| 3 |
Date: Tue, 28 Nov 2023 01:00:38 +0100 |
| 4 |
Subject: [PATCH] fix blake2b symbol naming |
| 5 |
|
| 6 |
--- |
| 7 |
.../crypto_generichash/blake2b/ref/blake2.h | 16 ++++++++++++++++ |
| 8 |
1 file changed, 16 insertions(+) |
| 9 |
|
| 10 |
diff --git a/src/libsodium/crypto_generichash/blake2b/ref/blake2.h b/src/libsodium/crypto_generichash/blake2b/ref/blake2.h |
| 11 |
index edfc99a2..eff55b4d 100644 |
| 12 |
--- a/src/libsodium/crypto_generichash/blake2b/ref/blake2.h |
| 13 |
+++ b/src/libsodium/crypto_generichash/blake2b/ref/blake2.h |
| 14 |
@@ -23,6 +23,22 @@ |
| 15 |
#include "crypto_generichash_blake2b.h" |
| 16 |
#include "export.h" |
| 17 |
|
| 18 |
+#define blake2b _sodium_blake2b |
| 19 |
+#define blake2b_compress_avx2 _sodium_blake2b_compress_avx2 |
| 20 |
+#define blake2b_compress_ref _sodium_blake2b_compress_ref |
| 21 |
+#define blake2b_compress_sse41 _sodium_blake2b_compress_sse41 |
| 22 |
+#define blake2b_compress_ssse3 _sodium_blake2b_compress_ssse3 |
| 23 |
+#define blake2b_final _sodium_blake2b_final |
| 24 |
+#define blake2b_init _sodium_blake2b_init |
| 25 |
+#define blake2b_init_key _sodium_blake2b_init_key |
| 26 |
+#define blake2b_init_key_salt_personal _sodium_blake2b_init_key_salt_personal |
| 27 |
+#define blake2b_init_param _sodium_blake2b_init_param |
| 28 |
+#define blake2b_init_salt_personal _sodium_blake2b_init_salt_personal |
| 29 |
+#define blake2b_long _sodium_blake2b_long |
| 30 |
+#define blake2b_pick_best_implementation _sodium_blake2b_pick_best_implementation |
| 31 |
+#define blake2b_salt_personal _sodium_blake2b_salt_personal |
| 32 |
+#define blake2b_update _sodium_blake2b_update |
| 33 |
+ |
| 34 |
enum blake2b_constant { |
| 35 |
BLAKE2B_BLOCKBYTES = 128, |
| 36 |
BLAKE2B_OUTBYTES = 64, |
| 37 |
-- |
| 38 |
2.43.0 |
| 39 |
|