Class 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 ECPoint
      private 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 String
      private static byte[] stripLeadingZeroes​(byte[] bytes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SecgUtils

        public SecgUtils()
    • 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)