Print this page
first pass

@@ -79,12 +79,10 @@
 
         return (((len + pad - 1)/pad)*pad);
 }
 
 
-/* EXPORT DELETE START */
-
 /*
  * Des [en/de]crypt buffer, buf of length, len for each key provided using
  * an CBC initialization vector ivec.
  * If the mode is encrypt we will use the following pattern if the number
  * of keys is odd

@@ -146,21 +144,18 @@
                 memcpy(ivec, dvec.c, sizeof (des_block));
 
         return (stat);
 }
 
-/* EXPORT DELETE END */
 
-
 /*
  * DesN crypt packaged for use as a cipher entry
  */
 static OM_uint32
 __dh_desN_crypt(gss_buffer_t buf, dh_key_set_t keys, cipher_mode_t cipher_mode)
 {
         int stat = DESERR_BADPARAM;
-/* EXPORT DELETE START */
         int encrypt_flag = (cipher_mode == ENCIPHER);
         unsigned mode = (encrypt_flag ? DES_ENCRYPT : DES_DECRYPT) | DES_HW;
         des_block ivec;
 
         if (keys->dh_key_set_len < 1)

@@ -177,11 +172,10 @@
         memset(&ivec, 0, sizeof (ivec));
 
         /* Do the encryption/decryption */
         stat = __desN_crypt(keys->dh_key_set_val, keys->dh_key_set_len,
                             (char *)buf->value, buf->length, mode, ivec.c);
-/* EXPORT DELETE END */
 
         if (DES_FAILED(stat))
                 return (DH_CIPHER_FAILURE);
 
         return (DH_SUCCESS);

@@ -192,11 +186,10 @@
  */
 static OM_uint32
 __dh_des_crypt(gss_buffer_t buf, dh_key_set_t keys, cipher_mode_t cipher_mode)
 {
         int stat = DESERR_BADPARAM;
-/* EXPORT DELETE START */
         int encrypt_flag = (cipher_mode == ENCIPHER);
         unsigned mode = (encrypt_flag ? DES_ENCRYPT : DES_DECRYPT) | DES_HW;
         des_block ivec;
 
         if (keys->dh_key_set_len < 1)

@@ -204,11 +197,10 @@
 
         /*  Set the ivec to zeros and then cbc crypt the result */
         memset(&ivec, 0, sizeof (ivec));
         stat = cbc_crypt(keys->dh_key_set_val[0].c, (char *)buf->value,
                         buf->length, mode, ivec.c);
-/* EXPORT DELETE END */
 
         if (DES_FAILED(stat))
                 return (DH_CIPHER_FAILURE);
 
         return (DH_SUCCESS);