|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.util.test.SimpleTest org.bouncycastle.jce.provider.test.ECNRTest
public class ECNRTest
Field Summary | |
---|---|
(package private) byte[] |
k1
|
(package private) byte[] |
k2
|
(package private) java.security.SecureRandom |
random
|
Constructor Summary | |
---|---|
ECNRTest()
|
Method Summary | |
---|---|
private void |
checkSignature(int size,
ECPrivateKeySpec priKey,
ECPublicKeySpec pubKey,
java.security.Signature sgr,
java.security.SecureRandom k,
byte[] message,
java.math.BigInteger r,
java.math.BigInteger s)
|
protected java.math.BigInteger[] |
derDecode(byte[] encoding)
|
java.lang.String |
getName()
|
static void |
main(java.lang.String[] args)
|
void |
performTest()
|
private void |
testECNR192bitPrime()
X9.62 - 1998, Page 104-105, ECDSA over the field Fp an example with 192 bit prime |
private void |
testECNR239bitPrime()
X9.62 - 1998, J.3.2, Page 155, ECDSA over the field Fp an example with 239 bit prime |
private void |
testECNR521bitPrime()
SEC 2: Recommended Elliptic Curve Domain Parameters - September 2000, Page 17-19, Recommended 521-bit Elliptic Curve Domain Parameters over Fp an ECC example with a 521 bit prime and a 512 bit hash |
Methods inherited from class org.bouncycastle.util.test.SimpleTest |
---|
areEqual, fail, fail, fail, perform, runTest, runTest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
byte[] k1
byte[] k2
java.security.SecureRandom random
Constructor Detail |
---|
public ECNRTest()
Method Detail |
---|
private void testECNR239bitPrime() throws java.lang.Exception
java.lang.Exception
private void testECNR192bitPrime() throws java.lang.Exception
java.lang.Exception
private void testECNR521bitPrime() throws java.lang.Exception
java.lang.Exception
private void checkSignature(int size, ECPrivateKeySpec priKey, ECPublicKeySpec pubKey, java.security.Signature sgr, java.security.SecureRandom k, byte[] message, java.math.BigInteger r, java.math.BigInteger s) throws java.lang.Exception
java.lang.Exception
protected java.math.BigInteger[] derDecode(byte[] encoding) throws java.io.IOException
java.io.IOException
public java.lang.String getName()
getName
in interface Test
getName
in class SimpleTest
public void performTest() throws java.lang.Exception
performTest
in class SimpleTest
java.lang.Exception
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |