Topic: [SOLVED] using rsa, "undefined reference to `wc_GenerateSeed'" error
Hi, I'm trying to test RSA encryption arduino.
Libs have imported correctly, but when I try to run the example I get the error: 
"C: \ Users \ Eugenio \ AppData \ Local \ Temp \ ccDlIFnm.ltrans0.ltrans.o: In function` loop ':
: ( ccDlIFnm.ltrans0.o text + 0xc6c.): undefined reference to `wc_GenerateSeed '
collect2.exe: error: ld returned 1 exit status"
This is my code:
#include <wolfssl.h>
#include <wolfssl/wolfcrypt/rsa.h>
void setup(void){
  while(!Serial);
  Serial.begin(9600);
}
 
void loop(void){
RsaKey rsaPublicKey;
byte publicKeyBuffer[]  = {"MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL+pEyWGAfj8NRW03Ox55IXMCLwCm1EjQ0mwonOjazvAkkwLSthUPmaCq2/A01843K3zqN40dslDUwYlfAg9hC8CAwEAAQ=="}; // holds the raw data from the key, maybe from a file like RsaPublicKey.der 
word32 idx = 0;             //  where to start reading into the buffer
byte in[] = {"hola mundohola mundohola mundoho"};
byte out[128];
RNG rng;
wc_InitRng(&rng);
wc_RsaPublicKeyDecode(publicKeyBuffer, &idx, &rsaPublicKey, sizeof(publicKeyBuffer));
word32 outLen = wc_RsaPublicEncrypt(in, sizeof(in), out, sizeof(out), &rsaPublicKey, &rng);
delay(3000);
}Can you give me a hand?