Comments (2)
Hi @s00500 , the format signature was intended originally for a different purpose.
The output of the calculateSignature is two DER encoded integers like below
0x000000: 02 20 38 0f 56 c8 90 53 18 9d 8f 58 b4 46 35 a0 . 8.V..S...X.F5.
0x000010: d7 07 63 ef 9f a2 30 64 93 e4 3d bf 7b db 57 a1 ..c...0d..=.{.W.
0x000020: b6 d7 02 20 4f 5e 3a db 6b 1a eb ac 66 9a 15 69 ... O^:.k...f..i
0x000030: 0d 7d 46 5b 44 72 40 06 a5 7b 06 84 0f d7 6e 0f .}F[Dr@..{....n.
0x000040: 4b 45 7f 50 KE.P
In order to let OpenSSL verify it, you need to make it ASN.1. For this as you correctly said adding length and tag should be sufficient.
Meanwhile I treat this issue as a bug in the formatSignature()
function. It should be fixed in the next version.
from arduino-optiga-trust-x.
Great, thanks very much :-)
from arduino-optiga-trust-x.
Related Issues (8)
- Load External ECC public key
- Wire.beginTransmission() should not be used with Wire.requestFrom(). HOT 1
- Verification of requested access condition in the metadata causes array out of bound
- Depending on the signature length return checkChip validation fails
- No example related to DTLS implementation, and dtls source .c files are also missing HOT 1
- IFX_OPTIGA_TrustX::deriveKey always returning error HOT 12
- ECC 192bit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-optiga-trust-x.