summaryrefslogtreecommitdiff
path: root/cipher/camellia-glue.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-05-02 09:46:53 +0000
committerWerner Koch <wk@gnupg.org>2007-05-02 09:46:53 +0000
commit074dd6d81470a16795bc571c066aa32ef2a0a588 (patch)
treefbe651c56ec0f8945cd478542a07389317cde232 /cipher/camellia-glue.c
parent1a9086a608dd11312d53c1232816561cf187f0c4 (diff)
downloadlibgcrypt-074dd6d81470a16795bc571c066aa32ef2a0a588.tar.gz
More info from GCRYCTL_PRINT_CONFIG.
Put Camellia symbols into our namespace.
Diffstat (limited to 'cipher/camellia-glue.c')
-rw-r--r--cipher/camellia-glue.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/cipher/camellia-glue.c b/cipher/camellia-glue.c
index bc0710d6..d50f9ccb 100644
--- a/cipher/camellia-glue.c
+++ b/cipher/camellia-glue.c
@@ -22,7 +22,25 @@
/* I put all the libgcrypt-specific stuff in this file to keep the
camellia.c/camellia.h files exactly as provided by NTT. If they
update their code, this should make it easier to bring the changes
- in. - dshaw */
+ in. - dshaw
+
+ There is one small change which needs to be done: Include the
+ following code at the top of camellia.h: */
+#if 0
+/* Need to redefine the external symbols to keep the libgcrypt name
+ space clean. */
+#define Camellia_Ekeygen _gcry_Camellia_Ekeygen
+#define Camellia_EncryptBlock _gcry_Camellia_EncryptBlock
+#define Camellia_DecryptBlock _gcry_Camellia_DecryptBlock
+#define camellia_decrypt128 _gcry_camellia_decrypt128
+#define camellia_decrypt256 _gcry_camellia_decrypt256
+#define camellia_encrypt128 _gcry_camellia_encrypt128
+#define camellia_encrypt256 _gcry_camellia_encrypt256
+#define camellia_setup128 _gcry_camellia_setup128
+#define camellia_setup192 _gcry_camellia_setup192
+#define camellia_setup256 _gcry_camellia_setup256
+#endif /* Code sample. */
+
#include <config.h>
#include "types.h"