Elsewhere someone stated that he couldn't publish his crypto software on the Internet, because US Export Regulations require approval, if the key size is greater than 56 bits. I know that several decades ago there were such extremely rigorous restrictions. Could anyone kindly check whether that indeed remains so even today?
First of all, this is not legal advice. However, I've been in the unfortunate position where I've had to deal with this legal nightmare. The new agreement which regulates export of cryptography internationally is called the Wassenaar Arrangement. If your product is what is called a mass market product, i.e available for purchase to the general public without restriction, you can ignore any export restrictions. You can also skip this if your software is open source and available for free for everyone. There's more exclusions such as if your only use is in DRM , if the input to the cryptographic algorithms can no be changed.
If you restrict your sales to a select subset of customers or if your product is exclusionary in some attribute, e.g price is too high to be considered mass market, you need to contact your local government body responsible for Wassenaar compliance.
The section you would be interested in is DUAL-USE LIST - CATEGORY 5 – PART 2 – "INFORMATION SECURITY".
If you feel you might fall under this arrangement it's best to follow the following rules:
- If your encryption is based on a symmetric algorithm, keep the key size at 56 bits or less. (e.g AES, DES, Blowfish...)
- If your encryption is based on the difficulty of factoring integers, keep the key size at 512 bits or less. (e.g RSA)
- If your encryption is based on the difficulty of computing discrete logarithms in a multiplicative group of a finite field, keep the size at 512 bits or less. (e.g Diffie Hellman over Z/pZ)
- If your encryption is based on discrete logarithms in a group other mentioned previously, keep the size at 112 bits or less. (e.g Diffie-Hellman over an eliptic curve)
If you do not follow these rules you will come under control of the government body responsible for Wassenaar compliance. Which is extremely likely to become a huge bureaucratic burden on your organization as export controls are extremely poorly set up to deal with things like software where you may have many thousands of customers. It is best to avoid it unless cryptography is an integral part of your product. Most companies and individuals are unaffected by the arrangement as it tries to be narrow enough to only capture the companies which trade with foreign governments.
If your system does any sort of cryptoanalytic work it's generally considered even more sensitive and your odds of being in export controlled territory increases.
The Wikipedia section referenced by @Thomas says:
Furthermore, encryption registration with the BIS is required for the export of "mass market encryption commodities, software and components with encryption exceeding 64 bits [...]
Furthermore the commerce control list published by BIS states the following (p. 1):
You must submit a classification request or encryption registration to BIS for mass market encryption commodities and software eligible for the Cryptography Note employing a key length greater than 64 bits for the symmetric algorithm (or, for commodities and software not implementing any symmetric algorithms, employing a key length greater than 768 bits for asymmetric algorithms or greater than 128 bits for elliptic curve algorithms) [...]
so the answer to your question is no. Still programmers and researchers publish papers and code online all the time without BIS permission.
Taking the advice of @rath, I asked EFF with the question formulated in my comment to his post with the addition whether the US scientists doing online crypto publications could, at time points arbitrarily chosen by the authority, be accused of violation of the Export Regulations, or if it is juridically fully ensured that this could never happen. I have just obtained form EFF's Legal Intake Coordinator the following rather disappointing (though in some sense also rather interesting) answer:
Thank you for contacting the Electronic Frontier Foundation (EFF).
I'm sorry, but your question requires detailed legal analysis, and we're not able to provide individual legal advice. I recommend using the search interface, on the upper right-hand corner of every page in our website, to see what information you can find on our website. I feel confident that you'll find some helpful information.
Another resource you may find helpful is your local bar association: they usually provide low cost consultations at a very reasonable price.