diff options
| author | J08nY | 2016-11-21 14:25:58 +0100 |
|---|---|---|
| committer | J08nY | 2016-11-21 14:31:37 +0100 |
| commit | f6054733ede030b83b97a0f82f1f437082c2c48b (patch) | |
| tree | 3cdf3d3b090a1bb79848723f00dee35ffa2f808b /src/applets/EC_Consts.java | |
| parent | 7d946796d87638a5f54cc8562c9d3a95309cf3cc (diff) | |
| parent | b1b21aae218bec813a853938563234ad4e2d8668 (diff) | |
| download | ECTester-f6054733ede030b83b97a0f82f1f437082c2c48b.tar.gz ECTester-f6054733ede030b83b97a0f82f1f437082c2c48b.tar.zst ECTester-f6054733ede030b83b97a0f82f1f437082c2c48b.zip | |
Diffstat (limited to 'src/applets/EC_Consts.java')
| -rw-r--r-- | src/applets/EC_Consts.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/applets/EC_Consts.java b/src/applets/EC_Consts.java index d5f23d1..4ecff8a 100644 --- a/src/applets/EC_Consts.java +++ b/src/applets/EC_Consts.java @@ -7,6 +7,7 @@ import javacard.security.KeyPair; import javacard.security.RandomData; public class EC_Consts { + private static byte[] EC_FP_P = null; //p private static byte[] EC_A = null; //a private static byte[] EC_B = null; //b @@ -26,9 +27,12 @@ public class EC_Consts { public static final byte PARAMETER_R = 0x20; public static final byte PARAMETER_K = 0x40; - public static RandomData m_random = null; + public static final byte TAG_ECPUBKEY = (byte) 0x41; + public static final byte TAG_ECPRIVKEY = (byte) 0x42; + + // secp128r1 public static final byte[] EC128_FP_P = new byte[]{ (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFD, |
