com.aelitis.azureus.core.security
Class CryptoECCUtils

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

public class CryptoECCUtils
extends java.lang.Object


Constructor Summary
CryptoECCUtils()
           
 
Method Summary
static java.security.KeyPair createKeys()
           
static java.security.Signature getSignature(java.security.Key key)
           
static byte[] keyToRawdata(java.security.PrivateKey privkey)
           
static byte[] keyToRawdata(java.security.PublicKey pubkey)
           
static java.security.PrivateKey rawdataToPrivkey(byte[] input)
           
static java.security.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 java.security.KeyPair createKeys()
                                        throws CryptoManagerException
Throws:
CryptoManagerException

getSignature

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

keyToRawdata

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

rawdataToPrivkey

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

keyToRawdata

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

rawdataToPubkey

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