Skip to content

Is there any API to convert ECDSA signature to ASN.1 encoding? #63

Answered by ayushev
markandpathak asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @markandpathak
if you are refereing to the signature you get from the chip, then it is already in the ASN.1 format, some platform though require addtional tags befoer that value:
1 byte - 0x03
2 byte - size of the signature, for the NISTP256 it will be 0x42
3 byte - 0x00

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@markandpathak
Comment options

Answer selected by markandpathak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #62 on June 22, 2021 06:33.