Hot answers tagged attacks
4
If there is no padding, then you can try the following:
You can run an exhaustive search on the possible plaintexts. No padding means no randomness; encryption is deterministic, so you can "try" plaintexts and see if one matches the encrypted value when encrypted.
Without padding, encryption of m is me mod n: the message m is interpreted as an integer, ...
2
It depends.
It depends on a lot of things. For example a generator of 2 is great for encryption, but makes for awful signatures. If you use a generator of 2, then no. Your signatures will get broken. Then the encryption will.
Elgamal signatures are pretty controversial. They're tetchy to get right (see above) and there are many things you can get wrong. ...
Only top voted, non community-wiki answers of a minimum length are eligible