home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xntp3.zip / lib / authdes.c.expo < prev    next >
Text File  |  1992-09-11  |  1KB  |  41 lines

  1. /*
  2.  * authdes.c -  dummy encryption routines for destinations outside the USA.
  3.  *
  4.  * Sorry, folks; I hate this, too. Send me your e-mail address in an
  5.  * envelope bearing a US postmark and I'll send you the decryption key
  6.  * for the des program normally distributed with Unix in the USA. Outside
  7.  * the USA you are on your own; however, you should be able quickly to
  8.  * obtain the source from lots of places, homegrown or otherwise.
  9.  *
  10.  * to decrypt the des routine, mumble the following:
  11.  *
  12.  * des -d -k key authdes.c.des authdes.c
  13.  *
  14.  * , where key is as above, and rebuild. To restore the distribution
  15.  * to its exportable state, copy this file to authdes.c . 
  16.  */
  17. #include <sys/types.h>
  18.  
  19. /*
  20.  * This routine is normally called to compute the key schedule.
  21.  */
  22. void
  23. DESauth_subkeys(key, encryptkeys, decryptkeys)
  24.     u_long *key;
  25.     u_char *encryptkeys;
  26.     u_char *decryptkeys;
  27. {
  28. };
  29.  
  30. /*
  31.  * This routine is normally called to encrypt and decrypt the data. This
  32.  * is done in-place using the Digital Encryption Standard (DES) Cipher-
  33.  * Block Chaining (CBC) method as described in the NTP specification.
  34.  */
  35. void
  36. DESauth_des(data, subkeys)
  37.     u_long *data;
  38.     u_char *subkeys;
  39. {
  40. };
  41.