public class HMacTest extends SimpleTest
Constructor and Description |
---|
HMacTest() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static void |
main(java.lang.String[] args) |
void |
performTest() |
void |
testHMac(java.lang.String hmacName,
byte[] output) |
void |
testHMac(java.lang.String hmacName,
int defKeySize,
byte[] output) |
void |
testPBEWITHHMACSHAVariants()
Test that BC has the same results as the SunJCA provider for PBEwithHMACSHA.
|
public void testHMac(java.lang.String hmacName, byte[] output) throws java.lang.Exception
java.lang.Exception
public void testHMac(java.lang.String hmacName, int defKeySize, byte[] output) throws java.lang.Exception
java.lang.Exception
public void performTest() throws java.lang.Exception
performTest
in class SimpleTest
java.lang.Exception
public void testPBEWITHHMACSHAVariants() throws java.lang.Exception
Test courtesy of the Android project.
java.lang.Exception
public java.lang.String getName()
getName
in interface Test
getName
in class SimpleTest
public static void main(java.lang.String[] args)