Interface EcDsaSignature

    • Method Detail

      • fromDer

        static EcDsaSignature fromDer​(byte[] bytes)
        Create an EcDsaSignature from a DER encoded byte array signature.
        Parameters:
        bytes - A DER encoded byte array containing a signature.
        Returns:
        An EcDsaSignature.
      • isStrictlyCanonical

        @Check
        default void isStrictlyCanonical()
        Make sure signature is canonical to protect against signature morphing attacks.

        Signature should be: <30> <len> [ <02> <lenR> <R> ] [ <02> <lenS> <S> ] where 6 <= len <= 70 1 <= lenR <= 33 1 <= lenS <= 33