public class ECUtils extends Object
Constructor and Description |
---|
ECUtils() |
Modifier and Type | Method and Description |
---|---|
static ECPublicKey |
convertKey(byte[] w,
byte[] HEAD) |
static ECPublicKey |
decodeKey(byte[] encoded,
String namedCurve) |
static ECPoint |
fromByteArray(byte[] b,
EllipticCurve curve) |
static int |
getCurveSize(String curve) |
static byte[] |
toByteArray(ECPoint e,
EllipticCurve curve) |
public static byte[] toByteArray(ECPoint e, EllipticCurve curve)
public static ECPoint fromByteArray(byte[] b, EllipticCurve curve)
public static ECPublicKey convertKey(byte[] w, byte[] HEAD) throws InvalidKeySpecException
InvalidKeySpecException
public static int getCurveSize(String curve) throws IOException
IOException
public static ECPublicKey decodeKey(byte[] encoded, String namedCurve) throws IOException, InvalidKeySpecException, NoSuchAlgorithmException, InvalidAlgorithmParameterException
Copyright © 2016. All rights reserved.