|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--de.bb.security.SelfTest
Provide self test function for all classes in this package ! NOT YET FINISHED !
| Constructor Summary | |
SelfTest()
|
|
| Method Summary | |
protected static byte[] |
calcMessageHash(java.security.MessageDigest md,
int hlen,
byte[] secret,
long seqNum,
int typ,
byte[] b)
|
protected static byte[] |
calcMessageHash(MessageDigest md,
int hlen,
byte[] secret,
long seqNum,
int typ,
byte[] b)
|
static boolean |
equals(byte[] a,
byte[] b)
Compares one byte array with another byte array |
static boolean |
equals(byte[] a,
int aOff,
byte[] b,
int bOff,
int len)
Compares one segment of a byte array with another segment if a byte array |
static void |
main(java.lang.String[] args)
|
static boolean |
selftest()
Run all defined tests for this package. |
static boolean |
testDES()
Run a test for DES |
static boolean |
testDES2()
Run a test for DES2 |
static boolean |
testDES3()
Run a test for DES3 |
static boolean |
testMD5()
Run a test for MD5 |
static boolean |
testRC2()
Run a Test for RC2 |
static boolean |
testRMD160()
Run a test for RipeMD160 |
static byte[] |
toHex(java.lang.String s)
|
static java.lang.String |
toString(byte[] b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SelfTest()
| Method Detail |
public static void main(java.lang.String[] args)
public static boolean selftest()
public static byte[] toHex(java.lang.String s)
public static java.lang.String toString(byte[] b)
public static boolean testDES()
public static boolean testDES2()
public static boolean testDES3()
public static boolean testRMD160()
public static boolean testMD5()
protected static final byte[] calcMessageHash(java.security.MessageDigest md,
int hlen,
byte[] secret,
long seqNum,
int typ,
byte[] b)
throws java.lang.Exception
protected static final byte[] calcMessageHash(MessageDigest md,
int hlen,
byte[] secret,
long seqNum,
int typ,
byte[] b)
throws java.lang.Exception
public static boolean testRC2()
public static final boolean equals(byte[] a,
int aOff,
byte[] b,
int bOff,
int len)
a - first byte arrayaOff - offset into first byte arrayb - second byte arraybOff - offset into second byte arraylen - length of the compared segments
public static final boolean equals(byte[] a,
byte[] b)
a - first byte arrayb - second byte array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||