5

I know that Elgamal algorithms have fallen out of fashion, and they are not included in any widespread cryptographic standard nowadays. However, they are still present in several popular crypto libraries (bouncy castle, botan, cryptopp, etc). One disturbing thing I found is that such libraries have no or very limited test vectors for Elgamal.

Do test vectors exist at all for Elgamal? What is a good reference? I especially refer to encryption and signing algorithms over $Z_p$.

2 Answers2

3

There seem to be no standardized ElGamal test vectors available in the public domain. However, there are some ElGamal test vectors generated with libgcrypt 1.5.0 available in this fork of the pycrypto project.

rphv
  • 278
  • 3
  • 11
1

I've created my own set of ElGamal test vectors of varying number of bits. I can't guarantee that they are correct, except that they pass my own implementation.

https://gist.github.com/devinrsmith/58926b3d62ccfe9818057f94d2c7189c

dsmith
  • 11
  • 2