Print this page
3882 remove xmod & friends

*** 79,90 **** 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 --- 79,88 ----
*** 146,166 **** 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) --- 144,161 ----
*** 177,187 **** 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); --- 172,181 ----
*** 192,202 **** */ 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) --- 186,195 ----
*** 204,214 **** /* 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); --- 197,206 ----