machinefi / psa-crypto-arduino

An Arduino library implementing Arm's Platform Security Architecture (PSA) APIs
Apache License 2.0
3 stars 0 forks source link

[Help]: How to use own private key instead of auto generated key #4

Open 0xSilkRoad opened 2 months ago

0xSilkRoad commented 2 months ago

Hi there, I'm still a newbie with psa-crypto-arduino.

Referring to the example of SignMessage.ino, is there a way I could sign a message using my own private key instead of the auto-generated key from the library?

If so, how would I store it? Thanks.

as-iotex commented 1 month ago

Hi there, You can find examples on how to import a key on the tests: https://github.com/machinefi/psa-crypto-arduino/blob/main/tests/test_psa_import_key.cpp