Package com.biglybt.core.security
Class CryptoECCUtils
- java.lang.Object
-
- com.biglybt.core.security.CryptoECCUtils
-
public class CryptoECCUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static ECNamedCurveParameterSpec
ECCparam
-
Constructor Summary
Constructors Constructor Description CryptoECCUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Field Detail
-
ECCparam
private static final ECNamedCurveParameterSpec ECCparam
-
-
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
-
-