home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / sci / crypt / 3793 < prev    next >
Encoding:
Text File  |  1992-10-15  |  3.7 KB  |  80 lines

  1. Newsgroups: sci.crypt
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bcars267!keith
  3. From: keith@bnr.ca (Keith W. Campbell)
  4. Subject: Re: DES Encryption/ Encrypting more than once.
  5. Message-ID: <1992Oct15.125830.25539@bnr.ca>
  6. Sender: keith@bnr.ca
  7. Nntp-Posting-Host: bcars15
  8. Organization: Bell-Northern Research, Ontario, Canada
  9. References: <wa6JsB7w165w@works.uucp> <1992Oct13.174505.24230@b11.b11.ingr.com>
  10. Date: Thu, 15 Oct 1992 12:58:30 GMT
  11. Lines: 67
  12.  
  13. In article <1992Oct13.174505.24230@b11.b11.ingr.com> craig@jido.b11.ingr.com
  14. writes:
  15. >In article <wa6JsB7w165w@works.uucp> ferret@works.uucp (Dave Ferret) writes:
  16. >   Just a sidenote to 'Hackers' words...
  17. >
  18. >   There are also encryption algorithms that when used to encrypt the 
  19. >   plaintext over and over and over, will yield the un-encrypted text. (Ie: 
  20. >   Its a circular encryption -- Sorry, I don't know the correct term here)
  21.  
  22. Any permutation of a finite set has this property.  Repeatedly applying the
  23. transformation will eventually lead to a point already visited (because the
  24. set is finite). That repeated point must be the original point (because we
  25. are talking about a permutation).
  26.  
  27. Any usable encryption which transforms plaintext into ciphertext of the same
  28. length must be a permutation if recovery of the plaintext is to be possible.
  29.  
  30. This means that DES, IDEA, FEAL, Khufu and most other ciphers you can think
  31. of have this property.
  32.  
  33. It is only a problem if the cycle length is very short.  A cycle length of
  34. one means that the plaintext and ciphertext are the same.  If the cycle
  35. length is two, an attacker who can arrange to have a chosen text encrypted
  36. may discover the plaintext by having the ciphertext re-encrypted.
  37.  
  38. For DES these short cycles are very rare and such keys are easy to avoid.
  39. DES and other good ciphers which may be considered to be random mappings
  40. have average cycle lengths of sqrt(pi*n/8) steps where n is the number of
  41. possible plaintexts.
  42.  
  43. For DES, n=2^64 so the average cycle length is about 0.627*2^32.
  44. So in practice, the cycles of an
  45. encryption algorithm are not problematic.
  46.  
  47. >Cyclic, as in subgroup. The question is often phrased, "Is DES a
  48. >group?" (under composition of encryption). Last I read (Crypto '90?),
  49. >it was strongly suspected but not conclusively proven to contain no
  50. >cycles* (recall that a finite group must contain at least one cycle).
  51. >A common suggestion for using DES as a superencipherment for itself is
  52. >E_k1(D_k2(E_k1(P))), where E_k1 = encrypt with key k1, etc.  If
  53. >encrypting twice with the same key were a lot stronger than encrypting
  54. >once, then no doubt the algorithm would just do that (bearing
  55. >performance limits in mind, of course).
  56.  
  57. This is a different question:  Given two keys k1,k2 is it always possible
  58. to find a third key k3 such that E(k2,E(k1,x)) = E(k2,x) for all x?
  59. The reference you cite (which I co-authored) proves that the answer is no.
  60.  
  61. >-- Craig Presson
  62. >* - here's a reference I haven't read yet, that should be definitive:
  63. >@inproceedings{campbell,
  64. >  author = "Campbell, K.W. and Wiener, M.J.", 
  65. >  year = 1993,
  66. >  title = "Proof that {DES} is not a group",
  67. >  booktitle = "Advances in Cryptology --- Crypto '92",
  68. >  publisher = "Springer-Verlag",
  69. >  address = "New York",
  70. >  note = "To appear"}
  71. >Note to me: call & see if this is out yet.
  72.  
  73. Actually, the title is "{DES} is not a group" I understand that we
  74. shouldn't expect it to be published until at least March 1993.
  75. Hopefully, Springer-Verlag will prove me wrong.
  76. -- 
  77. Keith W. Campbell                                Bell-Northern Research
  78.                       P.O. Box 3511, Station C, Ottawa, Canada, K1Y 4H7
  79. e-mail:    keith@bnr.ca                          voice:  (613) 765-4564
  80.