Class ECDSAUtils

    • Method Detail

      • convertASN1toXMLDSIG

        public static byte[] convertASN1toXMLDSIG​(byte[] asn1Bytes)
                                           throws IOException
        Deprecated.
        Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value.

        The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value pairs; the XML Signature requires the core BigInteger values.
        Parameters:
        asn1Bytes -
        Returns:
        the decode bytes
        Throws:
        IOException
        See Also:
        6.4.1 DSA, 3.3. ECDSA Signatures
      • convertXMLDSIGtoASN1

        public static byte[] convertXMLDSIGtoASN1​(byte[] xmldsigBytes)
                                           throws IOException
        Deprecated.
        Converts a XML Signature ECDSA Value to an ASN.1 DSA value.

        The JAVA JCE ECDSA Signature algorithm creates ASN.1 encoded (r, s) value pairs; the XML Signature requires the core BigInteger values.
        Parameters:
        xmldsigBytes -
        Returns:
        the encoded ASN.1 bytes
        Throws:
        IOException
        See Also:
        6.4.1 DSA, 3.3. ECDSA Signatures
      • getOIDFromPublicKey

        public static String getOIDFromPublicKey​(ECPublicKey ecPublicKey)
        Deprecated.
      • encodePoint

        public static byte[] encodePoint​(ECPoint ecPoint,
                                         EllipticCurve ellipticCurve)
        Deprecated.
      • decodePoint

        public static ECPoint decodePoint​(byte[] encodedBytes,
                                          EllipticCurve ellipticCurve)
        Deprecated.
      • stripLeadingZeros

        public static byte[] stripLeadingZeros​(byte[] bytes)
        Deprecated.