aboutsummaryrefslogtreecommitdiff
path: root/src/applets/EC_Consts.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/applets/EC_Consts.java')
-rw-r--r--src/applets/EC_Consts.java6
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,