summaryrefslogtreecommitdiff
path: root/sha3-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-30 15:03:20 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-30 15:03:20 +0100
commite053691063525b81fef0021666996cb5a2287582 (patch)
treee4d1f2022efaca95ef0e1d5d5611c408d45f23d2 /sha3-internal.h
parent07350a3ff76cc2c61058315b00f6748160cf5704 (diff)
downloadnettle-e053691063525b81fef0021666996cb5a2287582.tar.gz
Delete name mangling of internal sha3 symbols
Diffstat (limited to 'sha3-internal.h')
-rw-r--r--sha3-internal.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/sha3-internal.h b/sha3-internal.h
index 8054cb76..9b01231a 100644
--- a/sha3-internal.h
+++ b/sha3-internal.h
@@ -36,28 +36,25 @@
#include "nettle-types.h"
-#define _sha3_update _nettle_sha3_update
-#define _sha3_pad _nettle_sha3_pad
-
#define SHA3_HASH_MAGIC 6
#define SHA3_SHAKE_MAGIC 0x1f
unsigned
-_sha3_update (struct sha3_state *state,
- unsigned block_size, uint8_t *block,
- unsigned pos,
- size_t length, const uint8_t *data);
+_nettle_sha3_update (struct sha3_state *state,
+ unsigned block_size, uint8_t *block,
+ unsigned pos,
+ size_t length, const uint8_t *data);
void
-_sha3_pad (struct sha3_state *state,
- unsigned block_size, uint8_t *block, unsigned pos, uint8_t magic);
+_nettle_sha3_pad (struct sha3_state *state,
+ unsigned block_size, uint8_t *block, unsigned pos, uint8_t magic);
#define _sha3_pad_hash(state, block_size, block, pos) \
- _sha3_pad (state, block_size, block, pos, SHA3_HASH_MAGIC)
+ _nettle_sha3_pad (state, block_size, block, pos, SHA3_HASH_MAGIC)
#define _sha3_pad_shake(state, block_size, block, pos) \
- _sha3_pad (state, block_size, block, pos, SHA3_SHAKE_MAGIC)
+ _nettle_sha3_pad (state, block_size, block, pos, SHA3_SHAKE_MAGIC)
#endif