Class HMacTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.jce.provider.test.HMacTest
-
- All Implemented Interfaces:
Test
public class HMacTest extends SimpleTest
HMAC tester
-
-
Constructor Summary
Constructors Constructor Description HMacTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
testHMac
public void testHMac(java.lang.String hmacName, byte[] output) throws java.lang.Exception
- Throws:
java.lang.Exception
-
testHMac
public void testHMac(java.lang.String hmacName, int defKeySize, byte[] output) throws java.lang.Exception
- Throws:
java.lang.Exception
-
performTest
public void performTest() throws java.lang.Exception
- Specified by:
performTest
in classSimpleTest
- Throws:
java.lang.Exception
-
testPBEWITHHMACSHAVariants
public void testPBEWITHHMACSHAVariants() throws java.lang.Exception
Test that BC has the same results as the SunJCA provider for PBEwithHMACSHA.Test courtesy of the Android project.
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceTest
- Specified by:
getName
in classSimpleTest
-
main
public static void main(java.lang.String[] args)
-
-