krb5 commit [krb5-1.11]: Rename internal Camellia symbols
Tom Yu
tlyu at MIT.EDU
Wed May 15 08:21:16 EDT 2013
https://github.com/krb5/krb5/commit/99896102045ab627f6e9d52ced25b677ae97f4af
commit 99896102045ab627f6e9d52ced25b677ae97f4af
Author: Greg Hudson <ghudson at mit.edu>
Date: Mon May 13 22:59:35 2013 -0400
Rename internal Camellia symbols
Symbols from the NTT Camellia sources, used in the builtin crypto
provider, could conflict with symbols from other libraries such as
OpenSSL's libcrypto. Rename those like we rename the Gladman AES
symbols.
(cherry picked from commit 19c9cc879c6fdc9420d3d9e9fb3affbb692668b9)
ticket: 7626
version_fixed: 1.11.3
status: resolved
src/lib/crypto/builtin/camellia/camellia.h | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/lib/crypto/builtin/camellia/camellia.h b/src/lib/crypto/builtin/camellia/camellia.h
index 1e59a2e..d8a5326 100644
--- a/src/lib/crypto/builtin/camellia/camellia.h
+++ b/src/lib/crypto/builtin/camellia/camellia.h
@@ -48,6 +48,18 @@ typedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN];
typedef uint32_t u32;
typedef uint8_t u8;
+/* For the Kerberos 5 tree, hide the Camellia symbol names. */
+#define camellia_setup128 k5_camellia_setup128
+#define camellia_setup192 k5_camellia_setup192
+#define camellia_setup256 k5_camellia_setup256
+#define camellia_encrypt128 k5_camellia_encrypt128
+#define camellia_decrypt128 k5_camellia_decrypt128
+#define camellia_encrypt256 k5_camellia_encrypt256
+#define camellia_decrypt256 k5_camellia_decrypt256
+#define Camellia_Ekeygen k5_Camellia_Ekeygen
+#define Camellia_EncryptBlock k5_Camellia_EncryptBlock
+#define Camellia_DecryptBlock k5_Camellia_DecryptBlock
+
void camellia_setup128(const unsigned char *key, u32 *subkey);
void camellia_setup192(const unsigned char *key, u32 *subkey);
void camellia_setup256(const unsigned char *key, u32 *subkey);
More information about the cvs-krb5
mailing list