com.aelitis.azureus.core.security
Class CryptoECCUtils

java.lang.Object
  extended by com.aelitis.azureus.core.security.CryptoECCUtils

public class CryptoECCUtils
extends Object


Constructor Summary
CryptoECCUtils()
           
 
Method Summary
static KeyPair createKeys()
           
static Signature getSignature(Key key)
           
static byte[] keyToRawdata(PrivateKey privkey)
           
static byte[] keyToRawdata(PublicKey pubkey)
           
static PrivateKey rawdataToPrivkey(byte[] input)
           
static PublicKey rawdataToPubkey(byte[] input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptoECCUtils

public CryptoECCUtils()
Method Detail

createKeys

public static KeyPair createKeys()
                          throws CryptoManagerException
Throws:
CryptoManagerException

getSignature

public static Signature getSignature(Key key)
                              throws CryptoManagerException
Throws:
CryptoManagerException

keyToRawdata

public static byte[] keyToRawdata(PrivateKey privkey)
                           throws CryptoManagerException
Throws:
CryptoManagerException

rawdataToPrivkey

public static PrivateKey rawdataToPrivkey(byte[] input)
                                   throws CryptoManagerException
Throws:
CryptoManagerException

keyToRawdata

public static byte[] keyToRawdata(PublicKey pubkey)
                           throws CryptoManagerException
Throws:
CryptoManagerException

rawdataToPubkey

public static PublicKey rawdataToPubkey(byte[] input)
                                 throws CryptoManagerException
Throws:
CryptoManagerException