jxta.security.impl.test
Class TestRSA
java.lang.Object
|
+--jxta.security.impl.test.TestRSA
- public class TestRSA
- extends java.lang.Object
Method Summary |
static boolean |
areEqual(byte[] a,
byte[] b)
|
static void |
doit(byte[] data,
boolean isText)
|
static byte[] |
doPrivate(byte[] data,
boolean encrypt)
Do private key algorithm |
static byte[] |
doPublic(byte[] data,
boolean encrypt)
Do public key algorithm |
static void |
main(java.lang.String[] argv)
|
static void |
reportResults(byte[] Z,
byte[] data,
boolean isText)
|
static void |
resetTimers()
|
static void |
timingOutput(boolean keyTimed)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TestRSA
public TestRSA()
main
public static void main(java.lang.String[] argv)
timingOutput
public static void timingOutput(boolean keyTimed)
resetTimers
public static void resetTimers()
doPublic
public static byte[] doPublic(byte[] data,
boolean encrypt)
throws jxta.security.exceptions.CryptoException
- Do public key algorithm
doPrivate
public static byte[] doPrivate(byte[] data,
boolean encrypt)
throws jxta.security.exceptions.CryptoException
- Do private key algorithm
doit
public static void doit(byte[] data,
boolean isText)
throws jxta.security.exceptions.CryptoException
reportResults
public static void reportResults(byte[] Z,
byte[] data,
boolean isText)
areEqual
public static boolean areEqual(byte[] a,
byte[] b)