change names to mit_des_*
authorJohn Kohl <jtkohl@mit.edu>
Thu, 10 May 1990 20:38:13 +0000 (20:38 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 10 May 1990 20:38:13 +0000 (20:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@832 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/cbc_cksum.c
src/lib/crypto/des/cs_entry.c
src/lib/crypto/des/enc_dec.c
src/lib/crypto/des/fin_rndkey.c
src/lib/crypto/des/finish_key.c
src/lib/crypto/des/init_rkey.c
src/lib/crypto/des/process_ky.c
src/lib/crypto/des/random_key.c
src/lib/crypto/des/string2key.c

index 206a9f6e2be62a9568f727555392cbf3b9992f9b..655cf35624b59024fe00795b1e6338f732032a71 100644 (file)
@@ -45,11 +45,11 @@ extern int des_key_sched();
 
        returns: errors
 */
-krb5_error_code des_cbc_checksum(DECLARG(krb5_pointer, in),
-                                DECLARG(size_t, in_length),
-                                DECLARG(krb5_pointer, key),
-                                DECLARG(size_t, key_size),
-                                DECLARG(krb5_checksum *, cksum))
+krb5_error_code mit_des_cbc_checksum(DECLARG(krb5_pointer, in),
+                                    DECLARG(size_t, in_length),
+                                    DECLARG(krb5_pointer, key),
+                                    DECLARG(size_t, key_size),
+                                    DECLARG(krb5_checksum *, cksum))
 OLDDECLARG(krb5_pointer, in)
 OLDDECLARG(size_t, in_length)
 OLDDECLARG(krb5_pointer, key)
index a6862f5865b111674ae5db134bfa1fec645962b3..00a820b7d4b964da2737d86fabcf76c62c90f8d5 100644 (file)
@@ -5,56 +5,54 @@
  * Copyright 1990 by the Massachusetts Institute of Technology.
  *
  * For copying and distribution information, please see the file
- * <krb5/mit-copyright.h>.
+ * <krb5/copyright.h>.
  *
- * Wrapper for the V4 libdes for use with kerberos V5.
+ * DES encryption interface file
  */
 
 #if !defined(lint) && !defined(SABER)
-static char des_cs_ent_c[] =
+static char rcsid_des_cs_ent_c[] =
 "$Id$";
 #endif /* !lint & !SABER */
 
 #include <krb5/copyright.h>
 
-#include <sys/errno.h>
-
 #include <krb5/krb5.h>
 #include <krb5/des.h>
-#include <krb5/ext-proto.h>
 
-extern krb5_error_code encrypt_func PROTOTYPE((const krb5_pointer,
-                                               krb5_pointer,
-                                               const size_t,
-                                               krb5_encrypt_block *,
-                                              krb5_pointer));
-extern krb5_error_code decrypt_func PROTOTYPE((const krb5_pointer,
-                                               krb5_pointer,
-                                               const size_t,
-                                               krb5_encrypt_block *,
-                                              krb5_pointer));
-extern krb5_error_code process_key PROTOTYPE((krb5_encrypt_block *,
-                                              const krb5_keyblock *));
-extern krb5_error_code finish_key PROTOTYPE((krb5_encrypt_block *));
-extern krb5_error_code string_to_key PROTOTYPE((const krb5_keytype, 
-                                               krb5_keyblock *,
-                                                const krb5_data *,
-                                                const krb5_principal));
-extern krb5_error_code init_random_key PROTOTYPE((const krb5_keyblock *,
-                                                 krb5_pointer *));
-extern krb5_error_code finish_random_key PROTOTYPE((krb5_pointer *));
-extern krb5_error_code random_key PROTOTYPE((krb5_pointer,
-                                            krb5_keyblock **));
+extern krb5_error_code mit_des_encrypt_func PROTOTYPE((const krb5_pointer,
+                                                      krb5_pointer,
+                                                      const size_t,
+                                                      krb5_encrypt_block *,
+                                                      krb5_pointer));
+extern krb5_error_code mit_des_decrypt_func PROTOTYPE((const krb5_pointer,
+                                                      krb5_pointer,
+                                                      const size_t,
+                                                      krb5_encrypt_block *,
+                                                      krb5_pointer));
+extern krb5_error_code mit_des_process_key PROTOTYPE((krb5_encrypt_block *,
+                                                     const krb5_keyblock *));
+extern krb5_error_code mit_des_finish_key PROTOTYPE((krb5_encrypt_block *));
+extern krb5_error_code mit_des_string_to_key PROTOTYPE((const krb5_keytype, 
+                                                       krb5_keyblock *,
+                                                       const krb5_data *,
+                                                       const krb5_principal));
+extern krb5_error_code mit_des_init_random_key
+    PROTOTYPE((const krb5_keyblock *,
+              krb5_pointer *));
+extern krb5_error_code mit_des_finish_random_key PROTOTYPE((krb5_pointer *));
+extern krb5_error_code mit_des_random_key PROTOTYPE((krb5_pointer,
+                                                    krb5_keyblock **));
 
 krb5_cryptosystem_entry mit_des_cryptosystem_entry = {
-    encrypt_func,
-    decrypt_func, 
-    process_key,
-    finish_key,
-    string_to_key,
-    init_random_key,
-    finish_random_key ,
-    random_key,
+    mit_des_encrypt_func,
+    mit_des_decrypt_func, 
+    mit_des_process_key,
+    mit_des_finish_key,
+    mit_des_string_to_key,
+    mit_des_init_random_key,
+    mit_des_finish_random_key,
+    mit_des_random_key,
     sizeof(des_cblock),
     0,
     sizeof(des_cblock),
@@ -66,11 +64,11 @@ krb5_cs_table_entry krb5_des_cst_entry = {
     &mit_des_cryptosystem_entry,
     0
     };
-extern krb5_error_code des_cbc_checksum PROTOTYPE ((krb5_pointer ,
-                                                   size_t ,
-                                                   krb5_pointer ,
-                                                   size_t ,
-                                                   krb5_checksum * ));
+extern krb5_error_code mit_des_cbc_checksum PROTOTYPE ((krb5_pointer ,
+                                                       size_t ,
+                                                       krb5_pointer ,
+                                                       size_t ,
+                                                       krb5_checksum * ));
 
 
 krb5_checksum_entry des_cbc_cksumtable_entry = {
index b7fa7722c04a6a00bce23b7266188d4139654351..1fd47b151835b3e44ed23f9babc4455a15c606c2 100644 (file)
@@ -56,11 +56,11 @@ extern int des_debug_print();
        
        returns: errors
 */
-krb5_error_code encrypt_func(DECLARG(krb5_pointer, in),
-                                   DECLARG(krb5_pointer, out),
-                                   DECLARG(size_t, size),
-                                   DECLARG(krb5_encrypt_block *, key),
-                                   DECLARG(krb5_pointer, ivec))
+krb5_error_code mit_des_encrypt_func(DECLARG(krb5_pointer, in),
+                                    DECLARG(krb5_pointer, out),
+                                    DECLARG(size_t, size),
+                                    DECLARG(krb5_encrypt_block *, key),
+                                    DECLARG(krb5_pointer, ivec))
 OLDDECLARG(krb5_pointer, in)
 OLDDECLARG(krb5_pointer, out)
 OLDDECLARG(size_t, size)
@@ -97,11 +97,11 @@ OLDDECLARG(krb5_pointer, ivec)
        returns: errors
 
  */
-krb5_error_code decrypt_func(DECLARG(krb5_pointer, in),
-                                   DECLARG(krb5_pointer, out),
-                                   DECLARG(size_t, size),
-                                   DECLARG(krb5_encrypt_block *, key),
-                                   DECLARG(krb5_pointer, ivec))
+krb5_error_code mit_des_decrypt_func(DECLARG(krb5_pointer, in),
+                                    DECLARG(krb5_pointer, out),
+                                    DECLARG(size_t, size),
+                                    DECLARG(krb5_encrypt_block *, key),
+                                    DECLARG(krb5_pointer, ivec))
 OLDDECLARG(krb5_pointer, in)
 OLDDECLARG(krb5_pointer, out)
 OLDDECLARG(size_t, size)
index 1c21884a344071eea4d942c8ff88ff6f224d7637..28dfe9e6ea4ede716b49fa7b8dde5e58b9ab95dd 100644 (file)
@@ -26,7 +26,7 @@ static char des_fnr_key_c[] =
         free any resources held by "seed" and assigned by init_random_key()
  */
 
-krb5_error_code finish_random_key (DECLARG(krb5_pointer *, seed))
+krb5_error_code mit_des_finish_random_key (DECLARG(krb5_pointer *, seed))
 OLDDECLARG(krb5_pointer *, seed)
 {
     bzero( (char *)*seed, sizeof(des_random_key_seed) );
index 7a5ec8135e585ed99400aecef0daacef39c27f79..bbaa820103ee54269e9ac0e08123c62d19183e45 100644 (file)
@@ -30,7 +30,7 @@ static char des_fin_key_c[] =
        returns: errors
  */
 
-krb5_error_code finish_key (DECLARG(krb5_encrypt_block *,eblock))
+krb5_error_code mit_des_finish_key (DECLARG(krb5_encrypt_block *,eblock))
 OLDDECLARG(krb5_encrypt_block *,eblock)
 {
     bzero((char *)eblock->priv, sizeof(des_key_schedule));
index c311cbd98b1a0174bf56b292a13dbe4e54353a8b..21324cf0362227b4b9b6e6d4108108dc202fc2ca 100644 (file)
@@ -33,8 +33,8 @@ extern void des_init_random_number_generator();
         sequence information.
  */
 
-krb5_error_code init_random_key (DECLARG(krb5_keyblock *,seedblock),
-                                       DECLARG(krb5_pointer *,seed))
+krb5_error_code mit_des_init_random_key (DECLARG(krb5_keyblock *,seedblock),
+                                        DECLARG(krb5_pointer *,seed))
 OLDDECLARG(krb5_keyblock *,seedblock)
 OLDDECLARG(krb5_pointer *,seed)
 {
index be62bebec8f52a7edc3c03ed9dcc71883f0b439b..51a2087a140048365e69675d05ccb6255d648609 100644 (file)
@@ -38,8 +38,8 @@ extern int des_key_sched();
         returns: errors
  */
 
-krb5_error_code process_key (DECLARG(krb5_encrypt_block *, eblock),
-                                   DECLARG(krb5_keyblock *,keyblock))
+krb5_error_code mit_des_process_key (DECLARG(krb5_encrypt_block *, eblock),
+                                    DECLARG(krb5_keyblock *,keyblock))
 OLDDECLARG(krb5_encrypt_block *, eblock)
 OLDDECLARG(krb5_keyblock *,keyblock)
 {
index 5fd40751484d95a6dfa252c5d2d4bccb5621b562..76d76d7395a53983b6d367a928a9a3bf925d5b66 100644 (file)
@@ -29,8 +29,8 @@ extern int des_new_random_key();
         filling in the keyblock address in *keyblock
  */
 
-krb5_error_code random_key (DECLARG(krb5_pointer, seed),
-                                  DECLARG(krb5_keyblock **, keyblock))
+krb5_error_code mit_des_random_key (DECLARG(krb5_pointer, seed),
+                                   DECLARG(krb5_keyblock **, keyblock))
 OLDDECLARG(krb5_pointer, seed)
 OLDDECLARG(krb5_keyblock **, keyblock)
 {
index 729c5d475559f2d2ca7aeeb17b16451b3f794081..48d6daeb5972001e8af5e039c49f4c2a509d4f74 100644 (file)
@@ -51,10 +51,10 @@ extern void des_cbc_cksum();
        returns: errors
  */
 
-krb5_error_code string_to_key (DECLARG(krb5_keytype, keytype),
-                                     DECLARG(krb5_keyblock *,keyblock),
-                                     DECLARG(krb5_data *,data),
-                                     DECLARG(krb5_principal, princ))
+krb5_error_code mit_des_string_to_key (DECLARG(krb5_keytype, keytype),
+                                      DECLARG(krb5_keyblock *,keyblock),
+                                      DECLARG(krb5_data *,data),
+                                      DECLARG(krb5_principal, princ))
 OLDDECLARG(krb5_keytype, keytype)
 OLDDECLARG(krb5_keyblock *,keyblock)
 OLDDECLARG(krb5_data *,data)