home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / cryptography-faq / part07 < prev    next >
Encoding:
Text File  |  1995-07-25  |  3.8 KB  |  90 lines

  1. Subject: Cryptography FAQ (07/10: Digital Signatures)
  2. Newsgroups: sci.crypt,talk.politics.crypto,sci.answers,news.answers,talk.answers
  3. From: crypt-comments@math.ncsu.edu
  4. Date: 22 Nov 1994 05:55:00 GMT
  5.  
  6. Archive-name: cryptography-faq/part07
  7. Last-modified: 93/10/10
  8.  
  9. This is the seventh of ten parts of the sci.crypt FAQ. The parts are
  10. mostly independent, but you should read the first part before the rest.
  11. We don't have the time to send out missing parts by mail, so don't ask.
  12. Notes such as ``[KAH67]'' refer to the reference list in the last part.
  13.  
  14. The sections of this FAQ are available via anonymous FTP to rtfm.mit.edu 
  15. as /pub/usenet/news.answers/cryptography-faq/part[xx]. The Cryptography 
  16. FAQ is posted to the newsgroups sci.crypt, talk.politics.crypto, 
  17. sci.answers, and news.answers every 21 days.
  18.  
  19.  
  20.  
  21. Contents:
  22.  
  23. 7.1. What is a one-way hash function?
  24. 7.2. What is the difference between public, private, secret, shared, etc.?
  25. 7.3. What are MD4 and MD5?
  26. 7.4. What is Snefru?
  27.  
  28.  
  29. 7.1. What is a one-way hash function?
  30.  
  31.   A typical one-way hash function takes a variable-length message and
  32.   produces a fixed-length hash. Given the hash it is computationally
  33.   impossible to find a message with that hash; in fact one can't
  34.   determine any usable information about a message with that hash, not
  35.   even a single bit. For some one-way hash functions it's also
  36.   computationally impossible to determine two messages which produce the
  37.   same hash.
  38.  
  39.   A one-way hash function can be private or public, just like an
  40.   encryption function. Here's one application of a public one-way hash
  41.   function, like MD5 or Snefru. Most public-key signature systems are
  42.   relatively slow. To sign a long message may take longer than the user
  43.   is willing to wait. Solution: Compute the one-way hash of the message,
  44.   and sign the hash, which is short. Now anyone who wants to verify the
  45.   signature can do the same thing.
  46.  
  47.   Another name for one-way hash function is message digest function.
  48.  
  49. 7.2. What is the difference between public, private, secret, shared, etc.?
  50.  
  51.   There is a horrendous mishmash of terminology in the literature for a
  52.   very small set of concepts. Here are the concepts: (1) When an
  53.   algorithm depends on a key which isn't published, we call it a private
  54.   algorithm; otherwise we call it a public algorithm. (2) We have
  55.   encryption functions E and decryption functions D, so that D(E(M)) = M
  56.   for any message M. (3) We also have hashing functions H and
  57.   verification functions V, such that V(M,X) = 1 if and only if X = H(M).
  58.  
  59.   A public-key cryptosystem has public encryption and private
  60.   decryption. Checksums, such as the application mentioned in the
  61.   previous question, have public hashing and public verification.
  62.   Digital signature functions have private hashing and public
  63.   verification: only one person can produce the hash for a message,
  64.   but everyone can verify that the hash is correct.
  65.  
  66.   Obviously, when an algorithm depends on a private key, it's meant to
  67.   be unusable by anyone who doesn't have the key. There's no real
  68.   difference between a ``shared'' key and a private key: a shared key
  69.   isn't published, so it's private. If you encrypt data for a friend
  70.   rather than ``for your eyes only'', are you suddenly doing
  71.   ``shared-key encryption'' rather than private-key encryption? No.
  72.  
  73. 7.3. What are MD4 and MD5?
  74.  
  75.   MD4 and MD5 are message digest functions developed by Ron Rivest.
  76.   Definitions appear in RFC 1320 and RFC 1321 (see part 10). Code is
  77.   available from [FTPMD].
  78.  
  79.   Note that a transcription error was found in the original MD5 draft
  80.   RFC. The corrected algorithm should be called MD5a, though some
  81.   people refer to it as MD5.
  82.  
  83. 7.4. What is Snefru?
  84.  
  85.   Snefru is a family of message digest functions developed by Ralph
  86.   Merkle. Snefru-8 is an 8-round function, the newest in the family.
  87.   Definitions appear in Merkle's paper [ME91a]. Code is available from
  88.   [FTPSF].
  89.  
  90.