summaryrefslogtreecommitdiff
path: root/twofish.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2003-04-12 17:42:20 +0200
committerNiels Möller <nisse@lysator.liu.se>2003-04-12 17:42:20 +0200
commit4fd20960e0ed6712fa89e119bd8c639e303655e1 (patch)
tree853f119938cc410d329e5f33f38bfaa7aac3ed6d /twofish.h
parentb26c392549490d4d593fbdaa88cac0c3dcd3bfd8 (diff)
downloadnettle-4fd20960e0ed6712fa89e119bd8c639e303655e1.tar.gz
* 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
Diffstat (limited to 'twofish.h')
-rw-r--r--twofish.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/twofish.h b/twofish.h
index a33554c5..3d007d7a 100644
--- a/twofish.h
+++ b/twofish.h
@@ -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