# Forcing developers of encryption algorithms to give the gov't a key?

**URL:** <https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520>\
**Category:** Factual Questions\
**Created:** [December 23, 2002, 11:42am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520 "2002-12-23T11:42:29Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [December 24, 2002, 1:50pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/21 "2002-12-24T13:50:44Z")

</div>

> [@](#):
>
> \*Originally posted by starfish \*  
> \*\*The British government tried to pass such a law around 1998. It basically required individuals, companies, etc to have a license to provide cryptographic services. If you don’t give them a key, you don’t get a license.
> 
> I don’t know if it ever passed, or what the final form it took. \*\*

As has already been said earlier in this thread, this makes no sense. The individual or company providing cryptographic services would not have the client’s key anyway. I am quite sure whatever the bill might have said it did not say what you say it said.

---

<div class="post-metadata">

**Author:** ![Urban\_Ranger](https://avatars.discourse-cdn.com/v4/letter/u/e9c0ed/32.png) [@Urban\_Ranger](https://boards.straightdope.com/u/Urban_Ranger)\
**Post date:** [December 24, 2002, 1:53pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/22 "2002-12-24T13:53:26Z")

</div>

> [@](#):
>
> \*Originally posted by Joe\_Cool \*  
> This event led to my method for estimating what kind of technology the government has. DES was released in 1976. NSA actually just shuffled around the values in the S-boxes, making it strong against differential cryptanalysis (and to this day, the best **known** attack against DES is to try every possible key). DC was introduced in the private sector in 1990. A difference of 14 years.

Not necessarily. It is entirely possible that NSA was shuffling the S-box values around so as not to leave any backdoors that might be created by IBM.

---

<div class="post-metadata">

**Author:** ![Urban\_Ranger](https://avatars.discourse-cdn.com/v4/letter/u/e9c0ed/32.png) [@Urban\_Ranger](https://boards.straightdope.com/u/Urban_Ranger)\
**Post date:** [December 24, 2002, 1:54pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/23 "2002-12-24T13:54:57Z")

</div>

> [@](#):
>
> \*Originally posted by Joe\_Cool \*  
> Oh, and on my previous post, I forgot to mention that with specialized custom-built hardware that costs under $200,000, the entire DES keyspace can be brute-forced in about 2 days. Less when you run more machines in parallel. For a few million bucks (pocket change to a large government), you can retreive a DES key in a couple hours.

Not for 128-bit keys.

---

<div class="post-metadata">

**Author:** ![Joe\_Cool](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Joe\_Cool](https://boards.straightdope.com/u/Joe_Cool)\
**Post date:** [December 24, 2002, 6:42pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/24 "2002-12-24T18:42:01Z")

</div>

> [@](#):
>
> \*Originally posted by Urban Ranger \*  
> \*\*Not for 128-bit keys. \*\*

But since DES uses 56-bit keys exclusively, 128-bit keys are irrelevant.

---

<div class="post-metadata">

**Author:** ![Joe\_Cool](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Joe\_Cool](https://boards.straightdope.com/u/Joe_Cool)\
**Post date:** [December 24, 2002, 7:25pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/25 "2002-12-24T19:25:55Z")

</div>

> [@](#):
>
> \*Originally posted by Urban Ranger \*  
> \*\*Not necessarily. It is entirely possible that NSA was shuffling the S-box values around so as not to leave any backdoors that might be created by IBM. \*\*

from [http://www.wikipedia.org/wiki/DES:](http://www.wikipedia.org/wiki/DES:)

> [@](#):
>
> When the cipher was first released, the design criteria for the S-boxes was not released. With the National Security Agency’s involvement in the design of the S-boxes, most security researchers were wary of DES. In 1990 with the independent discovery and open publication by Biham and Shamir of differential cryptanalysis, it turned out that at least some of the wariness was uncalled for. The primary design criteria for the S-boxes seems to have been (and has been claimed to have been by IBM personnel involved) to strengthen them against differential cryptanalysis. The secrecy behind the design criteria at the time appears to have been due to the fact that the technique was not known to the public at the time.

The [original research announcement](http://www.fitug.de/debate/9610/msg00159.html) by Eli Biham and Adi Shamir.

[More information](http://www.cs.wm.edu/~hallyn/des/) about DES

Information about the [EFF](http://www.eff.org/)’s custom-built, $250,000 [DES cracker](http://www.eff.org/descracker.html), which completed the [DES Challenge II](http://www.rsa.com/rsalabs) in under 3 days.

More info on DES from [IBM](http://www-106.ibm.com/developerworks/library/s-rijn.html)

---

<div class="post-metadata">

**Author:** ![micco](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@micco](https://boards.straightdope.com/u/micco)\
**Post date:** [December 24, 2002, 7:32pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/26 "2002-12-24T19:32:04Z")

</div>

> [@](#):
>
> \*Originally posted by Joe\_Cool \*  
> \*\*But since DES uses 56-bit keys exclusively, 128-bit keys are irrelevant. \*\*

Most real-world implementations of DES use triple-DES, which is an encrypt-decrypt-encrypt scheme using three keys and an effective key length of 112 bits. There are several variations on how to implement triple-DES/3DES/DES3, but I believe the encrypt/decrypt/encrypt with three different keys is the FIPS standard.

---

<div class="post-metadata">

**Author:** ![Joe\_Cool](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Joe\_Cool](https://boards.straightdope.com/u/Joe_Cool)\
**Post date:** [December 24, 2002, 8:53pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/27 "2002-12-24T20:53:23Z")

</div>

Sure, but if you’re going to do that, why not just use IDEA or AES? they’re both more secure and much faster.

😃

---

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [December 24, 2002, 9:09pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/28 "2002-12-24T21:09:21Z")

</div>

[Of course, DES isn’t the only way to go.](http://ciphersaber.gurus.com/)

Yeah, RC4 is a symmetric cipher, so you can’t do certain things with it. (It can’t be used as the basis for a PGP implementation, for example.) But it does provide good security as long as you keep the key secret. What’s more, the algorithm is simple enough people have memorized it. It can be shrunk into a few lines of \<insert favorite non-toy language here\> and used as a sig, thereby exporting it as a rider on Usenet and messageboard posts. (As has been mentioned, this is _no longer a legal issue._ But it was when these sigs were created.)

The site I linked to is an activist page that advocates even casual coders create their own RC4 implementations in whatever language they choose. (The site mentions a 16-line QBasic implementation.) Their viewpoint is that strong encryption is under attack by the governments of the world and the only way to reverse this is to make at least one algorithm so widespread it can’t be outlawed effectively.

---

<div class="post-metadata">

**Author:** ![micco](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@micco](https://boards.straightdope.com/u/micco)\
**Post date:** [December 24, 2002, 9:25pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/29 "2002-12-24T21:25:05Z")

</div>

> [@](#):
>
> \*Originally posted by Joe\_Cool \*  
> \*\*Sure, but if you’re going to do that, why not just use IDEA or AES? they’re both more secure and much faster. 😃 \*\*

DES is a US government standard, which meant it was the required algorithm in many government uses. In many cases, using IDEA or Blowfish or any other algorithm was not an option because the product had to conform to certain specs. There was a long period of time in which triple-DES was also an approved standard but AES didn’t even exist yet.

Of course, all of this is OT as far as the OP is concerned…

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [December 25, 2002, 2:23am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/30 "2002-12-25T02:23:16Z")

</div>

BTW, the mathematical basis of the PGP algorithm is trivial to describe to any mathematician in about 30 seconds and was known to Euler 300 years ago. It is slow, however, and I believe that PGP uses it only to encrypt the key for a different algorithm. But if you really cared you could use it for the whole message and anyone could write the program. My real belief is that the reason the US govt restricted the export was that they hoped they would thereby discourage **Americans** from using it.

---

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [December 25, 2002, 3:00am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/31 "2002-12-25T03:00:40Z")

</div>

Yes, PGP generates a random key and uses that key to encrypt the message and it then encrypts that key with the key or keys of the recipients and sends it all along. This has several advantages. One is that encryption is much faster and also that you can send the message to several recipients as you only encode the (short) key several times and not the entire message.

---

<div class="post-metadata">

**Author:** ![Urban\_Ranger](https://avatars.discourse-cdn.com/v4/letter/u/e9c0ed/32.png) [@Urban\_Ranger](https://boards.straightdope.com/u/Urban_Ranger)\
**Post date:** [December 25, 2002, 4:31am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/32 "2002-12-25T04:31:19Z")

</div>

> [@](#):
>
> \*Originally posted by Hari Seldon \*  
> It is slow, however, and I believe that PGP uses it only to encrypt the key for a different algorithm. But if you really cared you could use it for the whole message and anyone could write the program.

Yes, that’s IDEA. PGP uses the public key to encrypt a randomly generated session key for IDEA, and uses that key to encrypt your file.

---

<div class="post-metadata">

**Author:** ![kferr](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@kferr](https://boards.straightdope.com/u/kferr)\
**Post date:** [December 25, 2002, 10:49am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/33 "2002-12-25T10:49:50Z")

</div>

The proposed law that **starfish** mentioned in the RIP bill which stands for Regulation of Investigatory Powers. If I remember correctly what it boils down to is if the police have obtained your encyrpted e-mail (for example) via a legal wire-tap, then you are required to hand over the key used to encrypt it. Failure to do so can result in a fine and/or prison time.

---

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [December 25, 2002, 11:09am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/34 "2002-12-25T11:09:56Z")

</div>

> [@](#):
>
> \*Originally posted by Urban Ranger \*  
> \*\*Yes, that’s IDEA. PGP uses the public key to encrypt a randomly generated session key for IDEA, and uses that key to encrypt your file. \*\*

I believe you can choose IDEA or other algorithm in your setup.

---

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [December 25, 2002, 11:15am UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/35 "2002-12-25T11:15:24Z")

</div>

> [@](#):
>
> \*Originally posted by kferr \*  
> \*\*The proposed law that **starfish** mentioned in the RIP bill which stands for Regulation of Investigatory Powers. If I remember correctly what it boils down to is if the police have obtained your encyrpted e-mail (for example) via a legal wire-tap, then you are required to hand over the key used to encrypt it. Failure to do so can result in a fine and/or prison time. \*\*

Wouldn’t that be the key to _decrypt_ it? I know nothing about this law but common sense tells me the police would need a judicial warrant? In any case, now it begins to make more sense. Once you are being investigated and the police have a warrant then you are obligated to cooperate.

I believe we had a thread about this discussing whether that could be protected as self-incrimination. We went into all sorts of analogies and I do not remember if we reached any conclusion. Someone might want to do a search.

---

<div class="post-metadata">

**Author:** ![Urban\_Ranger](https://avatars.discourse-cdn.com/v4/letter/u/e9c0ed/32.png) [@Urban\_Ranger](https://boards.straightdope.com/u/Urban_Ranger)\
**Post date:** [December 25, 2002, 3:35pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/36 "2002-12-25T15:35:59Z")

</div>

> [@](#):
>
> \*Originally posted by sailor \*  
> I believe you can choose IDEA or other algorithm in your setup.

Dunno. See, I haven’t bothered to upgrade PGPi for awhile, so maybe that feature is available in the newer versions.

---

<div class="post-metadata">

**Author:** ![Urban\_Ranger](https://avatars.discourse-cdn.com/v4/letter/u/e9c0ed/32.png) [@Urban\_Ranger](https://boards.straightdope.com/u/Urban_Ranger)\
**Post date:** [December 25, 2002, 3:37pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/37 "2002-12-25T15:37:12Z")

</div>

> [@](#):
>
> \*Originally posted by sailor \*  
> Wouldn’t that be the key to _decrypt_ it?

It depends on whether the cipher is a single-key one or a public key one.

---

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [December 25, 2002, 5:54pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/38 "2002-12-25T17:54:59Z")

</div>

> [@](#):
>
> \*Originally posted by Urban Ranger \*  
> \*\*It depends on whether the cipher is a single-key one or a public key one. \*\*

Oh come off it. The police want the key to _decrypt_ the message. In one case it happens to be the same as the key used to encrypt and in the other one it is different. So what? The police want to decrypt. That’s what they want and that’s what they want the key for. They want the _decrypting key_ and they are not much concerned with whether the flavor is chocolate or strawberry.

Regarding PGP I am using V5.5 and it allows CAST, triple DES and IDEA. It will decode any of them and you can choose which one to use by default when you encrypt. I am using CAST and I imagine that’s the factory default. You can see this in PGP Preferences / advanced.

---

<div class="post-metadata">

**Author:** ![Tapioca\_Dextrin](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tapioca\_Dextrin](https://boards.straightdope.com/u/Tapioca_Dextrin)\
**Post date:** [December 25, 2002, 6:16pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/39 "2002-12-25T18:16:38Z")

</div>

Of course, if anyone can ever get [Quantum Crytography](http://www.mitre.org/pubs/edge/january_02/gilbert2.html) to work, then the whole question of government interference goes away, as it is completely unbreakable.

---

<div class="post-metadata">

**Author:** ![sailor](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sailor](https://boards.straightdope.com/u/sailor)\
**Post date:** [December 25, 2002, 6:24pm UTC](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520/40 "2002-12-25T18:24:14Z")

</div>

> [@](#):
>
> \*Originally posted by Tapioca Dextrin \*  
> \*\*Of course, if anyone can ever get [Quantum Crytography](http://www.mitre.org/pubs/edge/january_02/gilbert2.html) to work, then the whole question of government interference goes away, as it is completely unbreakable. \*\*

We have discussed this in past threads and i still believe there is much hype and exageration and confusion. until someone can better explain it to me I believe so-called “quantum cryptography” is not cryptography at all but a means of building a secure transmission channel which is a completely different thing.

[Previous page](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520.md?page=1)

[Next page](https://boards.straightdope.com/t/forcing-developers-of-encryption-algorithms-to-give-the-govt-a-key/144520.md?page=3)
