home *** CD-ROM | disk | FTP | other *** search
/ Der Mediaplex Sampler - Die 6 von Plex / 6_v_plex.zip / 6_v_plex / DISK5 / DOS_10 / PGP23ASR.ZIP / PGPCTB23.ZIP / IDEA.ZIP / README < prev    next >
Text File  |  1993-06-15  |  943b  |  23 lines

  1. This is some source code that does high-speed IDEA CFB encryption on
  2. an 80x86.  The functions are not complete, in that they don't handle
  3. blocks that are not a multiple of 8 bytes long, but it's a start, and
  4. is included here for anybody to experiment with.  It is as efficient
  5. as I could make it.  If USELODS is not set during assembly, a version
  6. that uses the minimum number of instructions possible is produced.
  7. USELODS, however, seems to be faster.  I have not tried it on a '486
  8. yet.
  9.  
  10. Test.c is a test driver that times the code.  For real use, you'd need
  11. to add key-unpacking code and code to handle odd-sized buffers.  The code
  12. here is designed to be the middle part in a loop for encrypting an
  13. arbitrary number of bytes:
  14.  
  15. xor leading odd bytes
  16. IDEA encrypt
  17. (xor 8 bytes and IDEA encrypt) as often as necessary
  18. xor trailing odd bytes
  19.  
  20. It will probably become part of PGP some day.
  21. -- 
  22.     -Colin <colin@nyx.cs.du.edu>
  23.