Topic: [Solved] DSA wolfssl
I try to apply an example from using a DSA to sign a message with wolfssl and i have encountered a few problems
DsaKey key;
byte message[] = { // message data to sign }
byte dsaKeyBuffer[] = { // holds the raw data from the DSA key, maybe from a file like dsa512.der }
=>I have a file with extension .der, How can i fill the dsaKeyBuffer from this file? I'm on FreeRtos. When i call this function below, i get an error. It does not return 0.
int u=wc_DsaPrivateKeyDecode(dsaKeyBuffer, &idx, &key, sizeof(dsaKeyBuffer));
Thank you