Use krb5int_ prefix for internal "provider" structures
authorKen Raeburn <raeburn@mit.edu>
Fri, 9 Mar 2001 09:42:19 +0000 (09:42 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 9 Mar 2001 09:42:19 +0000 (09:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13066 dc483132-0cff-0310-8789-dd5450dbe970

20 files changed:
src/lib/crypto/ChangeLog
src/lib/crypto/cksumtypes.c
src/lib/crypto/enc_provider/ChangeLog
src/lib/crypto/enc_provider/des.c
src/lib/crypto/enc_provider/des3.c
src/lib/crypto/enc_provider/enc_provider.h
src/lib/crypto/etypes.c
src/lib/crypto/hash_provider/ChangeLog
src/lib/crypto/hash_provider/hash_crc32.c
src/lib/crypto/hash_provider/hash_md4.c
src/lib/crypto/hash_provider/hash_md5.c
src/lib/crypto/hash_provider/hash_provider.h
src/lib/crypto/hash_provider/hash_sha1.c
src/lib/crypto/keyhash_provider/ChangeLog
src/lib/crypto/keyhash_provider/descbc.c
src/lib/crypto/keyhash_provider/k5_md4des.c
src/lib/crypto/keyhash_provider/k5_md5des.c
src/lib/crypto/keyhash_provider/keyhash_provider.h
src/lib/crypto/keyhash_provider/t_cksum.c
src/lib/crypto/prng.c

index adb000d74a5f8c0c32e240473cb077f2c6197f2f..bb8bedb8d0887525ada023aeb886569f32400978 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-09  Ken Raeburn  <raeburn@mit.edu>
+
+       * cksumtypes.c, etypes.c, prng.c: Use krb5int_ prefix for internal
+       "provider" structures.
+
 2001-03-05  Ken Raeburn  <raeburn@mit.edu>
 
        * prng.c: Clean up some comments.
index ee5bc6101421bc45dc37d9d0242914a1874a4433..5b36657a742544adba8429b1dc4cdc55530332d4 100644 (file)
@@ -33,44 +33,44 @@ const struct krb5_cksumtypes krb5_cksumtypes_list[] = {
     { CKSUMTYPE_CRC32, KRB5_CKSUMFLAG_NOT_COLL_PROOF,
       "crc32", "CRC-32",
       0, NULL,
-      &krb5_hash_crc32 },
+      &krb5int_hash_crc32 },
 
     { CKSUMTYPE_RSA_MD4, 0,
       "md4", "RSA-MD4",
       0, NULL,
-      &krb5_hash_md4 },
+      &krb5int_hash_md4 },
     { CKSUMTYPE_RSA_MD4_DES, 0,
       "md4-des", "RSA-MD4 with DES cbc mode",
-      ENCTYPE_DES_CBC_CRC, &krb5_keyhash_md4des,
+      ENCTYPE_DES_CBC_CRC, &krb5int_keyhash_md4des,
       NULL },
 
     { CKSUMTYPE_DESCBC, 0,
       "des-cbc", "DES cbc mode",
-      ENCTYPE_DES_CBC_CRC, &krb5_keyhash_descbc,
+      ENCTYPE_DES_CBC_CRC, &krb5int_keyhash_descbc,
       NULL },
 
     { CKSUMTYPE_RSA_MD5, 0,
       "md5", "RSA-MD5",
       0, NULL,
-      &krb5_hash_md5 },
+      &krb5int_hash_md5 },
     { CKSUMTYPE_RSA_MD5_DES, 0,
       "md5-des", "RSA-MD5 with DES cbc mode",
-      ENCTYPE_DES_CBC_CRC, &krb5_keyhash_md5des,
+      ENCTYPE_DES_CBC_CRC, &krb5int_keyhash_md5des,
       NULL },
 
     { CKSUMTYPE_NIST_SHA, 0,
       "sha", "NIST-SHA",
       0, NULL,
-      &krb5_hash_sha1 },
+      &krb5int_hash_sha1 },
 
     { CKSUMTYPE_HMAC_SHA1_DES3, KRB5_CKSUMFLAG_DERIVE,
       "hmac-sha1-des3", "HMAC-SHA1 DES3 key",
       0, NULL,
-      &krb5_hash_sha1 },
+      &krb5int_hash_sha1 },
     { CKSUMTYPE_HMAC_SHA1_DES3, KRB5_CKSUMFLAG_DERIVE,
       "hmac-sha1-des3-kd", "HMAC-SHA1 DES3 key", /* alias */
       0, NULL,
-      &krb5_hash_sha1 },
+      &krb5int_hash_sha1 },
 };
 
 const int krb5_cksumtypes_length =
index 6b504648edd0ba4837cbe1a795dade58c9bae8ba..67678779aa3c0bfc4b166eac6077954eebb501db 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-09  Ken Raeburn  <raeburn@mit.edu>
+
+       * des.c, des3.c, enc_provider.h: Use krb5int_ prefix for internal
+       "provider" structures.
+
 2001-03-05  Ken Raeburn  <raeburn@mit.edu>
 
        * des.c, des3.c: Use const instead of krb5_const.
index 3560a06b1dabc2c614c3de53b78d1f1ef8d0c53b..983bc47b7a28f8e90aedaeb82eca67306640e95e 100644 (file)
@@ -118,7 +118,7 @@ k5_des_make_key(const krb5_data *randombits, krb5_keyblock *key)
     return(0);
 }
 
-const struct krb5_enc_provider krb5_enc_des = {
+const struct krb5_enc_provider krb5int_enc_des = {
     k5_des_block_size,
     k5_des_keysize,
     k5_des_encrypt,
index 9631be395fa895745ccab50e6418c0cef2519585..48ee99ee9f48161e7fd2b09d020944d86ddea540 100644 (file)
@@ -126,7 +126,7 @@ k5_des3_make_key(const krb5_data *randombits, krb5_keyblock *key)
     return(0);
 }
 
-const struct krb5_enc_provider krb5_enc_des3 = {
+const struct krb5_enc_provider krb5int_enc_des3 = {
     k5_des3_block_size,
     k5_des3_keysize,
     k5_des3_encrypt,
index c71bdbd4498118aea7b123e745142869a4d245ce..ac95b58ae390aeb22fb11256e0166902e7a45d1c 100644 (file)
@@ -26,5 +26,5 @@
 
 #include "k5-int.h"
 
-extern const struct krb5_enc_provider krb5_enc_des;
-extern const struct krb5_enc_provider krb5_enc_des3;
+extern const struct krb5_enc_provider krb5int_enc_des;
+extern const struct krb5_enc_provider krb5int_enc_des3;
index 8a03766c7646286a236a2897a865ed286a458244..7aa316186b5e260e2e40f01d7c65fe520e4cf8fa 100644 (file)
 const struct krb5_keytypes krb5_enctypes_list[] = {
     { ENCTYPE_DES_CBC_CRC,
       "des-cbc-crc", "DES cbc mode with CRC-32",
-      &krb5_enc_des, &krb5_hash_crc32,
+      &krb5int_enc_des, &krb5int_hash_crc32,
       krb5_old_encrypt_length, krb5_old_encrypt, krb5_old_decrypt,
       krb5_des_string_to_key },
     { ENCTYPE_DES_CBC_MD4,
       "des-cbc-md4", "DES cbc mode with RSA-MD4",
-      &krb5_enc_des, &krb5_hash_md4,
+      &krb5int_enc_des, &krb5int_hash_md4,
       krb5_old_encrypt_length, krb5_old_encrypt, krb5_old_decrypt,
       krb5_des_string_to_key },
     { ENCTYPE_DES_CBC_MD5,
       "des-cbc-md5", "DES cbc mode with RSA-MD5",
-      &krb5_enc_des, &krb5_hash_md5,
+      &krb5int_enc_des, &krb5int_hash_md5,
       krb5_old_encrypt_length, krb5_old_encrypt, krb5_old_decrypt,
       krb5_des_string_to_key },
     { ENCTYPE_DES_CBC_MD5,
       "des", "DES cbc mode with RSA-MD5", /* alias */
-      &krb5_enc_des, &krb5_hash_md5,
+      &krb5int_enc_des, &krb5int_hash_md5,
       krb5_old_encrypt_length, krb5_old_encrypt, krb5_old_decrypt,
       krb5_des_string_to_key },
 
     { ENCTYPE_DES_CBC_RAW,
       "des-cbc-raw", "DES cbc mode raw",
-      &krb5_enc_des, NULL,
+      &krb5int_enc_des, NULL,
       krb5_raw_encrypt_length, krb5_raw_encrypt, krb5_raw_decrypt,
       krb5_des_string_to_key },
     { ENCTYPE_DES3_CBC_RAW,
       "des3-cbc-raw", "Triple DES cbc mode raw",
-      &krb5_enc_des3, NULL,
+      &krb5int_enc_des3, NULL,
       krb5_raw_encrypt_length, krb5_raw_encrypt, krb5_raw_decrypt,
       krb5_dk_string_to_key },
 
     { ENCTYPE_DES3_CBC_SHA1,
       "des3-cbc-sha1", "Triple DES cbc mode with HMAC/sha1",
-      &krb5_enc_des3, &krb5_hash_sha1,
+      &krb5int_enc_des3, &krb5int_hash_sha1,
       krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
       krb5_dk_string_to_key },
     { ENCTYPE_DES3_CBC_SHA1,   /* alias */
       "des3-hmac-sha1", "Triple DES cbc mode with HMAC/sha1",
-      &krb5_enc_des3, &krb5_hash_sha1,
+      &krb5int_enc_des3, &krb5int_hash_sha1,
       krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
       krb5_dk_string_to_key },
     { ENCTYPE_DES3_CBC_SHA1,   /* alias */
       "des3-cbc-sha1-kd", "Triple DES cbc mode with HMAC/sha1",
-      &krb5_enc_des3, &krb5_hash_sha1,
+      &krb5int_enc_des3, &krb5int_hash_sha1,
       krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
       krb5_dk_string_to_key },
 
     { ENCTYPE_DES_HMAC_SHA1,
       "des-hmac-sha1", "DES with HMAC/sha1",
-      &krb5_enc_des, &krb5_hash_sha1,
+      &krb5int_enc_des, &krb5int_hash_sha1,
       krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
       krb5_dk_string_to_key },
 #ifdef ATHENA_DES3_KLUDGE
@@ -100,7 +100,7 @@ const struct krb5_keytypes krb5_enctypes_list[] = {
     { ENCTYPE_LOCAL_DES3_HMAC_SHA1,
       "des3-marc-hmac-sha1",
       "Triple DES with HMAC/sha1 and 32-bit length code",
-      &krb5_enc_des3, &krb5_hash_sha1,
+      &krb5int_enc_des3, &krb5int_hash_sha1,
       krb5_marc_dk_encrypt_length, krb5_marc_dk_encrypt, krb5_marc_dk_decrypt,
       krb5_dk_string_to_key },
 #endif
index 9669a725b0368e297024cc8a89f887d6a316a98d..99e1a5d419a438a0ede375167fd5555f430e46cc 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-09  Ken Raeburn  <raeburn@mit.edu>
+
+       * hash_crc32.c, hash_md4.c, hash_md5.c, hash_provider.h,
+       hash_sha1.c: Use krb5int_ prefix for internal "provider"
+       structures.
+
 2001-03-05  Ken Raeburn  <raeburn@mit.edu>
 
        * hash_crc32.c, hash_md4.c, hash_md5.c, hash_sha1.c: Use const
index 1d8e28ec860bb12d195234a974e882b034f9a649..7c06fa3a6bd7bc954f8de828e5948f8bccfdbfc3 100644 (file)
@@ -64,7 +64,7 @@ k5_crc32_hash(unsigned int icount, const krb5_data *input,
     return(0);
 }
 
-const struct krb5_hash_provider krb5_hash_crc32 = {
+const struct krb5_hash_provider krb5int_hash_crc32 = {
     k5_crc32_hash_size,
     k5_crc32_block_size,
     k5_crc32_hash
index 2a3f2782668e25be74329103a906954c3e58be1c..529e900d607b0e1494e754602d5289a7f16cb6eb 100644 (file)
@@ -60,7 +60,7 @@ k5_md4_hash(unsigned int icount, const krb5_data *input,
     return(0);
 }
 
-const struct krb5_hash_provider krb5_hash_md4 = {
+const struct krb5_hash_provider krb5int_hash_md4 = {
     k5_md4_hash_size,
     k5_md4_block_size,
     k5_md4_hash
index e3375d08d203442762645182f50b965e34618ec4..72df9dcf6a704ca62d9b444fd05df2d7a380ff46 100644 (file)
@@ -60,7 +60,7 @@ k5_md5_hash(unsigned int icount, const krb5_data *input,
     return(0);
 }
 
-const struct krb5_hash_provider krb5_hash_md5 = {
+const struct krb5_hash_provider krb5int_hash_md5 = {
     k5_md5_hash_size,
     k5_md5_block_size,
     k5_md5_hash
index edf7b9d944405feeee655704dd74e30e3a7b2b5c..4fa46097dbf2326cbbfa9a778d703c046b63f560 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "k5-int.h"
 
-extern const struct krb5_hash_provider krb5_hash_crc32;
-extern const struct krb5_hash_provider krb5_hash_md4;
-extern const struct krb5_hash_provider krb5_hash_md5;
-extern const struct krb5_hash_provider krb5_hash_sha1;
+extern const struct krb5_hash_provider krb5int_hash_crc32;
+extern const struct krb5_hash_provider krb5int_hash_md4;
+extern const struct krb5_hash_provider krb5int_hash_md5;
+extern const struct krb5_hash_provider krb5int_hash_sha1;
index ad3765fc1fef40fb052d098cef35fc64c1effd3f..8b7166c209bffa0bc0893061d84f5ae2cf33f41e 100644 (file)
@@ -65,7 +65,7 @@ k5_sha1_hash(unsigned int icount, const krb5_data *input,
     return(0);
 }
 
-const struct krb5_hash_provider krb5_hash_sha1 = {
+const struct krb5_hash_provider krb5int_hash_sha1 = {
     k5_sha1_hash_size,
     k5_sha1_block_size,
     k5_sha1_hash
index 3860fe446d27342d999d72d831934945d11668e1..3463f822d4993b3ced25c8a2cb1ec9e306a2da49 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-09  Ken Raeburn  <raeburn@mit.edu>
+
+       * descbc.c, k5_md4des.c, k5_md5des.c, keyhash_provider.h,
+       t_cksum.c: Use krb5int_ prefix for internal "provider"
+       structures.
+
 2001-03-05  Ken Raeburn  <raeburn@mit.edu>
 
        * descbc.c, k5_md4des.c, k5_md5des.c: Use const instead of
index b1dfc4651624d78bd1bf2c5661b3e1a3625f423f..0394779e600defa256181b01c401c2c18f296eb5 100644 (file)
@@ -71,7 +71,7 @@ k5_descbc_hash(const krb5_keyblock *key, const krb5_data *ivec,
     return(0);
 }
 
-const struct krb5_keyhash_provider krb5_keyhash_descbc = {
+const struct krb5_keyhash_provider krb5int_keyhash_descbc = {
     k5_descbc_hash_size,
     k5_descbc_hash,
     NULL
index b91b472aca9c33b0d2ef0ae85b1906dc70f25fc5..6d5b77f1aa641c2ef044732ba4ab014b15db3f0b 100644 (file)
@@ -191,7 +191,7 @@ k5_md4des_verify(const krb5_keyblock *key, const krb5_data *ivec,
     return(0);
 }
 
-const struct krb5_keyhash_provider krb5_keyhash_md4des = {
+const struct krb5_keyhash_provider krb5int_keyhash_md4des = {
     k5_md4des_hash_size,
     k5_md4des_hash,
     k5_md4des_verify
index e628a12627d4aa0b379666f022abe82a93203bf8..c395a7011cefc04f22f63c656ca321d106b7bc5e 100644 (file)
@@ -189,7 +189,7 @@ k5_md5des_verify(const krb5_keyblock *key, const krb5_data *ivec,
     return(0);
 }
 
-const struct krb5_keyhash_provider krb5_keyhash_md5des = {
+const struct krb5_keyhash_provider krb5int_keyhash_md5des = {
     k5_md5des_hash_size,
     k5_md5des_hash,
     k5_md5des_verify
index 6ccdde8cbaddb21e414e15b06d1f05eeaca875a7..1393500883caab3e3a2c91743f12ea2870549374 100644 (file)
@@ -26,6 +26,6 @@
 
 #include "k5-int.h"
 
-extern const struct krb5_keyhash_provider krb5_keyhash_descbc;
-extern const struct krb5_keyhash_provider krb5_keyhash_md4des;
-extern const struct krb5_keyhash_provider krb5_keyhash_md5des;
+extern const struct krb5_keyhash_provider krb5int_keyhash_descbc;
+extern const struct krb5_keyhash_provider krb5int_keyhash_md4des;
+extern const struct krb5_keyhash_provider krb5int_keyhash_md5des;
index 9ef58a0898ce71fd9b2ba5a7c65b72e3a9918579..ce9ef23bba94b6d0b031691d820f3692ffb4f8d6 100644 (file)
 #define MD4_K5BETA_COMPAT
 
 #if    MD == 4
-extern struct krb5_keyhash_provider krb5_keyhash_md4des;
-#define khp krb5_keyhash_md4des
+extern struct krb5_keyhash_provider krb5int_keyhash_md4des;
+#define khp krb5int_keyhash_md4des
 #endif
 
 #if    MD == 5
-extern struct krb5_keyhash_provider krb5_keyhash_md5des;
-#define khp krb5_keyhash_md5des
+extern struct krb5_keyhash_provider krb5int_keyhash_md5des;
+#define khp krb5int_keyhash_md5des
 #endif
 
 static void
index ebad1fe90fc3b18120816d0d3264bf5ecc25a729..aec6781da6f45d32d51e4b5171b9a8d3f546ab31 100644 (file)
@@ -37,7 +37,7 @@
    output.  The output is fed back as new seed data, as described
    above.  */
 
-static const struct krb5_enc_provider *const enc = &krb5_enc_des3;
+static const struct krb5_enc_provider *const enc = &krb5int_enc_des3;
 
 /* XXX state.  Should it be in krb5_context? */