Class ECDSAUtils
java.lang.Object
org.apache.xml.security.algorithms.implementations.ECDSAUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]convertASN1toXMLDSIG(byte[] asn1Bytes) Converts an ASN.1 ECDSA value to a XML Signature ECDSA Value.static byte[]convertXMLDSIGtoASN1(byte[] xmldsigBytes) Converts a XML Signature ECDSA Value to an ASN.1 DSA value.static ECPointdecodePoint(byte[] encodedBytes, EllipticCurve elliptiCcurve) static byte[]encodePoint(ECPoint ecPoint, EllipticCurve ellipticCurve) static ECDSAUtils.ECCurveDefinitionstatic StringgetOIDFromPublicKey(ECPublicKey ecPublicKey) static byte[]stripLeadingZeros(byte[] bytes)
-
Method Details
-
convertASN1toXMLDSIG
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:
-
convertXMLDSIGtoASN1
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:
-
getOIDFromPublicKey
-
getECCurveDefinition
-
encodePoint
-
decodePoint
-
stripLeadingZeros
public static byte[] stripLeadingZeros(byte[] bytes)
-