Package com.hierynomus.sshj.secg
Class SecgUtils
- java.lang.Object
-
- com.hierynomus.sshj.secg.SecgUtils
-
public class SecgUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SecgUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.security.spec.ECPoint
getDecoded(byte[] M, java.security.spec.EllipticCurve curve)
SECG 2.3.4 Octet String to ECPointprivate static int
getElementSize(java.security.spec.EllipticCurve curve)
static byte[]
getEncoded(java.security.spec.ECPoint point, java.security.spec.EllipticCurve curve)
SECG 2.3.3 ECPoint to Octet Stringprivate static byte[]
stripLeadingZeroes(byte[] bytes)
-
-
-
Method Detail
-
getDecoded
public static java.security.spec.ECPoint getDecoded(byte[] M, java.security.spec.EllipticCurve curve)
SECG 2.3.4 Octet String to ECPoint
-
getEncoded
public static byte[] getEncoded(java.security.spec.ECPoint point, java.security.spec.EllipticCurve curve)
SECG 2.3.3 ECPoint to Octet String
-
stripLeadingZeroes
private static byte[] stripLeadingZeroes(byte[] bytes)
-
getElementSize
private static int getElementSize(java.security.spec.EllipticCurve curve)
-
-