Is there any API to convert ECDSA signature to ASN.1 encoding? #63
Answered
by
ayushev
markandpathak
asked this question in
Q&A
-
I am using Optiga Trust M for IoT application and really new to this ASN.1 encoding. Is there any API which can be used to convert obtained r,s component from the chip to ASN.1 encoding? I could not find such API in TRM and Wiki. |
Beta Was this translation helpful? Give feedback.
Answered by
ayushev
Jun 22, 2021
Replies: 1 comment 1 reply
-
Hello @markandpathak |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
markandpathak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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