aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java')
-rw-r--r--libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java b/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java
new file mode 100644
index 000000000..4123d6574
--- /dev/null
+++ b/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java
@@ -0,0 +1,20 @@
+package org.spongycastle.jce.interfaces;
+
+/**
+ * All BC elliptic curve keys implement this interface. You need to
+ * cast the key to get access to it.
+ * <p>
+ * By default BC keys produce encodings without point compression,
+ * to turn this on call setPointFormat() with "COMPRESSED".
+ */
+public interface ECPointEncoder
+{
+ /**
+ * Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed
+ * in point compression will not be used. If the String "COMPRESSED" is passed point
+ * compression will be used. The default is "UNCOMPRESSED".
+ *
+ * @param style the style to use.
+ */
+ public void setPointFormat(String style);
+}