Comments (5)
@ayushev I appreciate if you can check this issue.
from optiga-trust-x.
This is a device error returned from the device, the base for all the device erros is here
https://github.com/Infineon/optiga-trust-x/wiki/Device-Error-Codes
Which parameters are you using for this command, so that the device error is returned? Can you provide a code snippet?
from optiga-trust-x.
It is one of NordicSemi SDK examples. I shared here:
https://gist.github.com/ozanoner/29cdbc72539f0fba39f21dd4fb0e07f0
This function makes a call to optiga_crypt_tls_prf_sha256 at line#43 and in this function, there is a call for CmdLib_DeriveKey. It is the line in which that function returns the value of 0x80010001
optiga-trust-x/optiga/crypt/optiga_crypt.c
Line 449 in 95b37c8
from optiga-trust-x.
I guess you had a look on this example where the shared secret is written directly to the data object.
There are two nuances
- It should be 32 bytes non 0x00 bytes long if you use NISTP256 key (by default) -> try using like in example a smaller array of non zero bytes
- This wiki entry is a short reminder on how to use the function, if you want to see more or less full (and more secure) way to derive a shared secret you can refer to this file
from optiga-trust-x.
Thanks for your reply! I will check those examples.
I double-checked the documentation that you shared above and found that there is a comment for the value of CMD_DEV_ERROR and an example value of 0x80010001.
So I got it now how it works :)
Thanks for your time & the help!
Best regards.
from optiga-trust-x.
Related Issues (20)
- [documentation] optiga_crypt_ecdsa_sign HOT 1
- PAL Linux GPIO buffer max length values HOT 1
- keypair generation at index OPTIGA_KEY_STORE_ID_E0F0 always fails. HOT 3
- Signature verification fails HOT 11
- Public key location for pregenerated private key HOT 1
- Storing data on the GP memory HOT 4
- Wrong oid (object id) used in wiki
- AES using optiga and NRF52840 HOT 8
- On chip encryption - Trust X SLS 32AIA HOT 2
- Multiple definition of mbedtls_hardware_poll() HOT 1
- Warning in example_optiga_util_write_data.c HOT 1
- Using Trust-X for 1-way MQTT Authentication HOT 3
- Unclosed extern "C"
- I2C write bug HOT 1
- Mbed OS PAL outdated HOT 2
- There is a edit error HOT 1
- Cannot verify signature using internal certificate HOT 17
- Power consumption in "Power Profile" HOT 1
- Add Popcorn Computer's PocketP.C. i2c pal file
- Re-accessing locked data slots 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 optiga-trust-x.