aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/prov/src/main/java/org/spongycastle/jce/interfaces/ECPointEncoder.java
blob: 4123d6574c43529a770c915379f5ddaae7c310aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
}