org.bouncycastle.jce.provider.test
Class ECEncodingTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.jce.provider.test.ECEncodingTest
- All Implemented Interfaces:
- Test
public class ECEncodingTest
- extends SimpleTest
Field Summary |
private java.math.BigInteger |
a
|
private java.math.BigInteger |
b
|
private byte[] |
enc
Base point G (with point compression) |
private byte[] |
hexa
|
private byte[] |
hexb
|
private int |
k1
f = 010000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000807 |
private int |
k2
|
private int |
k3
|
private int |
m
J.4.7 An Example with m = 304 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m
private int m
- J.4.7 An Example with m = 304
k1
private int k1
- f = 010000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000807
k2
private int k2
k3
private int k3
hexa
private byte[] hexa
hexb
private byte[] hexb
a
private java.math.BigInteger a
b
private java.math.BigInteger b
enc
private byte[] enc
- Base point G (with point compression)
ECEncodingTest
public ECEncodingTest()
getName
public java.lang.String getName()
- Specified by:
getName
in interface Test
- Specified by:
getName
in class SimpleTest
testPointCompression
private void testPointCompression()
throws java.lang.Exception
- Throws:
java.lang.Exception
performTest
public void performTest()
throws java.lang.Exception
- Specified by:
performTest
in class SimpleTest
- Throws:
java.lang.Exception
testParams
private void testParams(byte[] ecParameterEncoded,
boolean compress)
throws java.lang.Exception
- Throws:
java.lang.Exception
generateSelfSignedSoftECCert
private java.security.cert.X509Certificate generateSelfSignedSoftECCert(java.security.KeyPair kp,
boolean compress)
throws java.security.InvalidKeyException,
java.security.SignatureException
- Create a self signed cert for our software emulation
- Parameters:
kp
- is the keypair for our certificate
- Returns:
- a self signed cert for our software emulation
- Throws:
java.security.InvalidKeyException
- on error
java.security.SignatureException
- on error
main
public static void main(java.lang.String[] args)