Wireshark mailing list archives

Re: How do I expose ECDSA-Sig-Value as a dissect function in pkcs1?


From: Richard Sharpe <realrichardsharpe () gmail com>
Date: Thu, 7 May 2020 09:29:38 -0700

On Thu, May 7, 2020 at 8:04 AM Pascal Quantin <pascal () wireshark org> wrote:

Hi Richard,

Le jeu. 7 mai 2020 à 17:01, Richard Sharpe <realrichardsharpe () gmail com> a écrit :

Hi folks,

I need a dissector for an EDCSA-Sig-Value, and it is nicely defined in
epan/dissectors/asn1/pkcs1/PKIXAlgs-2009.asn as:

-----------------------------
   ECDSA-Sig-Value ::= SEQUENCE {
    r  INTEGER,
    s  INTEGER
   }
-----------------------------

I tried the obvious by adding it as an export to the pkcs1.cnf file by
adding it to the .EXPORTS section but perhaps I forgot to remove it
from the .NO_EMIT section ...


Do you need a dissector registered by name, or a function to call?

Just a function to call.

After sending this message I tried removing it from the .NO_EMIT
section and adding it to the .EXPORTS section and wonder of wonders, I
got a callable function that does what I need :-)

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: