01: package org.bouncycastle.jce.interfaces;
02:
03: /**
04: * All BC elliptic curve keys implement this interface. You need to
05: * cast the key to get access to it.
06: * <p>
07: * By default BC keys produce encodings without point compression,
08: * to turn this on call setPointFormat() with "COMPRESSED".
09: */
10: public interface ECPointEncoder {
11: /**
12: * Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed
13: * in point compression will not be used. If the String "COMPRESSED" is passed point
14: * compression will be used. The default is "UNCOMPRESSED".
15: *
16: * @param style the style to use.
17: */
18: public void setPointFormat(String style);
19: }
|