Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.util
Class ECKeyUtil

java.lang.Object
  |
  +--org.bouncycastle.jcajce.util.ECKeyUtil

public class ECKeyUtil
extends java.lang.Object

Utility class for EC Keys.


Constructor Summary
ECKeyUtil()
           
 
Method Summary
static ECPublicKey createKeyWithCompression(ECPublicKey ecPublicKey)
          Convert an ECPublicKey into an ECPublicKey which always encodes with point compression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECKeyUtil

public ECKeyUtil()
Method Detail

createKeyWithCompression

public static ECPublicKey createKeyWithCompression(ECPublicKey ecPublicKey)
Convert an ECPublicKey into an ECPublicKey which always encodes with point compression.
Parameters:
ecPublicKey - the originating public key.
Returns:
a wrapped version of ecPublicKey which uses point compression.

Bouncy Castle Cryptography Library 1.77.0