summaryrefslogtreecommitdiff
path: root/serpent.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 /serpent.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 'serpent.h')
-rw-r--r--serpent.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/serpent.h b/serpent.h
index ae8afeb7..79cad0ef 100644
--- a/serpent.h
+++ b/serpent.h
@@ -33,6 +33,11 @@
#include <inttypes.h>
+/* Name mangling */
+#define serpent_set_key nettle_serpent_set_key
+#define serpent_encrypt nettle_serpent_encrypt
+#define serpent_decrypt nettle_serpent_decrypt
+
#define SERPENT_BLOCK_SIZE 16
/* Other key lengths are possible, but the design of Serpent makes