org.gudy.bouncycastle.jce.provider
Class ECUtil

java.lang.Object
  extended by org.gudy.bouncycastle.jce.provider.ECUtil

public class ECUtil
extends java.lang.Object

utility class for converting jce/jca ECDSA, ECDH, and ECDHC objects into their org.gudy.bouncycastle.crypto counterparts.


Constructor Summary
ECUtil()
           
 
Method Summary
static AsymmetricKeyParameter generatePrivateKeyParameter(java.security.PrivateKey key)
           
static AsymmetricKeyParameter generatePublicKeyParameter(java.security.PublicKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECUtil

public ECUtil()
Method Detail

generatePublicKeyParameter

public static AsymmetricKeyParameter generatePublicKeyParameter(java.security.PublicKey key)
                                                         throws java.security.InvalidKeyException
Throws:
java.security.InvalidKeyException

generatePrivateKeyParameter

public static AsymmetricKeyParameter generatePrivateKeyParameter(java.security.PrivateKey key)
                                                          throws java.security.InvalidKeyException
Throws:
java.security.InvalidKeyException