org.bouncycastle.jce.provider.test
Class ECDSA5Test
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.jce.provider.test.ECDSA5Test
- All Implemented Interfaces:
- Test
public class ECDSA5Test
- extends SimpleTest
Field Summary |
(package private) byte[] |
k1
|
(package private) byte[] |
k2
|
(package private) java.security.SecureRandom |
random
|
Method Summary |
private void |
decodeTest()
|
protected java.math.BigInteger[] |
derDecode(byte[] encoding)
|
java.lang.String |
getName()
|
static void |
main(java.lang.String[] args)
|
void |
performTest()
|
private void |
testECDSA239bitBinary()
X9.62 - 1998,
J.2.1, Page 100, ECDSA over the field F2m
an example with 191 bit binary field |
private void |
testECDSA239bitPrime()
X9.62 - 1998,
J.3.2, Page 155, ECDSA over the field Fp
an example with 239 bit prime |
private void |
testGeneration()
|
private void |
testKeyFactory(java.security.interfaces.ECPublicKey pub,
java.security.interfaces.ECPrivateKey priv)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
k1
byte[] k1
k2
byte[] k2
random
java.security.SecureRandom random
ECDSA5Test
public ECDSA5Test()
decodeTest
private void decodeTest()
testECDSA239bitPrime
private void testECDSA239bitPrime()
throws java.lang.Exception
- X9.62 - 1998,
J.3.2, Page 155, ECDSA over the field Fp
an example with 239 bit prime
- Throws:
java.lang.Exception
testECDSA239bitBinary
private void testECDSA239bitBinary()
throws java.lang.Exception
- X9.62 - 1998,
J.2.1, Page 100, ECDSA over the field F2m
an example with 191 bit binary field
- Throws:
java.lang.Exception
testGeneration
private void testGeneration()
throws java.lang.Exception
- Throws:
java.lang.Exception
testKeyFactory
private void testKeyFactory(java.security.interfaces.ECPublicKey pub,
java.security.interfaces.ECPrivateKey priv)
throws java.lang.Exception
- Throws:
java.lang.Exception
derDecode
protected java.math.BigInteger[] derDecode(byte[] encoding)
throws java.io.IOException
- Throws:
java.io.IOException
getName
public java.lang.String getName()
- Specified by:
getName
in interface Test
- Specified by:
getName
in class SimpleTest
performTest
public void performTest()
throws java.lang.Exception
- Specified by:
performTest
in class SimpleTest
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)