Commit 4fd20960 authored by Niels Möller's avatar Niels Möller
Browse files

* New name mangling, to reduce the risk of link collisions. All

functions (except memxor) now use a nettle_ or _nettle prefix when
seen by the linker. For most functions, the header file that declares
a function also use #define to provide a shorter more readable name
without the prefix.

Rev: src/nettle/aes-internal.h:1.9
Rev: src/nettle/aes.h:1.6
Rev: src/nettle/arcfour.h:1.4
Rev: src/nettle/base16.h:1.2
Rev: src/nettle/base64.h:1.12
Rev: src/nettle/blowfish.h:1.8
Rev: src/nettle/cast128.h:1.4
Rev: src/nettle/cbc.h:1.4
Rev: src/nettle/des.h:1.8
Rev: src/nettle/dsa.h:1.7
Rev: src/nettle/hmac.h:1.5
Rev: src/nettle/knuth-lfib.h:1.2
Rev: src/nettle/md5-compat.h:1.2
Rev: src/nettle/md5.h:1.6
Rev: src/nettle/pgp.h:1.2
Rev: src/nettle/pkcs1.h:1.2
Rev: src/nettle/rsa-compat.h:1.3
Rev: src/nettle/rsa.h:1.22
Rev: src/nettle/serpent.h:1.6
Rev: src/nettle/sexp.h:1.15
Rev: src/nettle/sha.h:1.3
Rev: src/nettle/twofish.h:1.5
Rev: src/nettle/yarrow.h:1.10
parent b26c3925
......@@ -28,6 +28,14 @@
#include <inttypes.h>
/* Name mangling */
#define sha1_init nettle_sha1_init
#define sha1_update nettle_sha1_update
#define sha1_digest nettle_sha1_digest
#define sha256_init nettle_sha256_init
#define sha256_update nettle_sha256_update
#define sha256_digest nettle_sha256_digest
/* SHA1 */
#define SHA1_DIGEST_SIZE 20
......
......@@ -34,6 +34,11 @@
#include <inttypes.h>
/* Name mangling */
#define twofish_set_key nettle_twofish_set_key
#define twofish_encrypt nettle_twofish_encrypt
#define twofish_decrypt nettle_twofish_decrypt
#define TWOFISH_BLOCK_SIZE 16
/* Variable key size between 128 and 256 bits. But the only valid
......
......@@ -29,6 +29,17 @@
#include "aes.h"
#include "sha.h"
/* Name mangling */
#define yarrow256_init nettle_yarrow256_init
#define yarrow256_seed nettle_yarrow256_seed
#define yarrow256_update nettle_yarrow256_update
#define yarrow256_random nettle_yarrow256_random
#define yarrow256_is_seeded nettle_yarrow256_is_seeded
#define yarrow256_needed_sources nettle_yarrow256_needed_sources
#define yarrow256_force_reseed nettle_yarrow256_force_reseed
#define yarrow_key_event_init nettle_yarrow_key_event_init
#define yarrow_key_event_estimate nettle_yarrow_key_event_estimate
enum yarrow_pool_id { YARROW_FAST = 0, YARROW_SLOW = 1 };
struct yarrow_source
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment