All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.test.TestElGamal
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----cryptix.util.test.BaseTest
|
+----cryptix.test.TestElGamal
- public class TestElGamal
- extends BaseTest
This object tests the RawElGamal* and *_ElGamal_PKCS1 classes, by
generating 6 keypairs with varying strength (384- to 1024-bit in 128-bit
increments). It then tests each newly created keypair by:
- signing a fixed string with the private key and verifying the
obtained signature with the public one.
- checking that a slightly-modified signature will not pass verification.
- encrypting a random string, decrypting it, and checking that the
result matches the original.
Note: we should really test against fixed conformance data, to ensure
interoperability with other implementations. Randomised tests are useful but
not sufficient.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.7 $
- Author:
- David Hopwood, Raif S. Naffah
-
TestElGamal()
-
-
engineTest()
- This method should be overridden by test subclasses, to perform the
actual testing.
-
main(String[])
-
TestElGamal
public TestElGamal()
main
public static void main(String args[])
engineTest
protected void engineTest() throws Exception
- This method should be overridden by test subclasses, to perform the
actual testing.
- Overrides:
- engineTest in class BaseTest
All Packages Class Hierarchy This Package Previous Next Index