0
$\begingroup$

I would do some test for evaluating security in asymmetric algorithms such as RSA and ElGamal to evaluate which of both are safer.

The basic problem is that I need to test the security of some symmetric and asymmetric algorithms to evaluate their security and to know which algorithm is more secure and his strength against real-time attacks. In both type of algorithms I have made a table with their vulnerabilities, but I want to test their security with some specific test. Then, I need a test that allows me to conclude that algorithm is safer, for both symmetric and asymmetric algorithms.

For instance, in symmetric algorithms the test that you can use is the avalanche effect link, but in asymmetric algorithms I have not found anyone and I only know that the avalanche effect is not for this type of cryptography.

Any suggestions on the possible test?

$\endgroup$
2
  • $\begingroup$ Did you search for related Q&As on this site yet? I mean, this Q is pretty broad. Especially, since you haven’t told us which algos you mean. If it’s something self-made, you could simply respect Kerckhoffs' principle and make your cipher public… that way, others can check on the security of your cipher to either confirm it’s security (which builds public trust) or they show you what’s wrong with it by publishing a paper or two. Or, you could try to attack the algos yourself – which is what crypto people do. Or, you could clarify your question… $\endgroup$
    – e-sushi
    Commented Oct 7, 2016 at 22:30
  • $\begingroup$ Ok, I'm sorry but I had though that it was a very specific question. Maybe I had evaluated bad the question. Now, I have improved the description. Basically, I want to know about some test or method to compare the security of different asymmetric algorythms. $\endgroup$
    – CGG
    Commented Oct 8, 2016 at 14:22

2 Answers 2

4
$\begingroup$

If you're looking to test the parameters for an RSA or ElGamal implementation, well, that's fairly straightforward (assuming you can look at the innards of the implementation, and ask "are these primes drawn from a random distribution, do you get the RSA padding right, are you secure against the relevant side channel attacks, etc). You really do need to know your crypto, but it's not that hard.

On the other hand, if you've devised your own public key cryptosystem, well, that's much harder. Actually, symmetric cryptosystems aren't that much easier; the 'avalanche' test that you alluded to is a very weak test; a cipher can easily pass that with flying colors, and still be very weak.

In both cases, the real test is 'can a clever individual who has access to the ciphertext, possibly some plaintext, and (in the case of public key cryptosystems) the public key find an attack'. That's not an easy question to answer (or so you hope, if there is an easy answer, it's be 'yes, here's this attack').

With public key cryptosytems, the obvious place to start is the 'hard problem' they're based on; why precisely do we think it's hard. For RSA, well, it's the "RSA problem" (typically, people say factoring, however that's not proven to be true); for ElGamal, it's the Diffie-Hellman problem. In your case, you need to consider what problem makes it easy (with a public key) to perform in one direction, and hard (with a public key, but not the private) to perform in the other direction.

Issues with the hard problem aren't the only possible way a system can fail (consider RSA with no padding; the RSA problem remains hard, but we can find ways to break the system by taking advantage of the homomorphic properties of raw RSA); however it's the obvious place to start.

$\endgroup$
2
  • $\begingroup$ First, I have not explained enough. I do not devised my own public key cryptosystem, I am using the java's crypto library. The problem is that I need to test the security of some symmetric and asymmetric algorithms to evaluate their security and to know which algorithm of both type is more secure and his strength against real-time attacks. In both type of algorithms I have made a table with their vulnerabilities, but I want to test their security. I need a test that allows me to conclude that algorithm is safer, for both symmetric and asymmetric algorithms. $\endgroup$
    – CGG
    Commented Oct 8, 2016 at 14:13
  • $\begingroup$ In symmetric algorithms I tried with the avalanche effect, but no have conclusive results to see if one is better or worse, I think it is a weak test, as you say. Because of this, I ask you for your advice about which test I could do to test security in symmetric and asymmetric algorithms. $\endgroup$
    – CGG
    Commented Oct 8, 2016 at 14:13
2
$\begingroup$

Cycle length distributions and other pseudorandom characteristics of the encryption and decryption mappings come to mind. For example, $$f_e:Z_{pq}^{\ast}\rightarrow Z_{pq}^{\ast}$$ for the map $f_e:m\rightarrow m^e$ for RSA.

Other obvious tests and theoretical results have been focused on behaviour of certain bits of such mappings. Their behaviour under restrictions such as fixing a certain fraction of bits of $e$ and varying the rest, or restricting the bitsize of say $e$ to a fraction of the bitsize of $pq,$ and then investigating security. There are attacks on RSA under such restrictions, e.g., by Coppersmith.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.