I am trying to port wolfCrypt library for STM32G071RB. Purpose of porting is derive key from password and salt using PBKDF2.
After following each step mentioned in https://github.com/wolfSSL/wolfssl/blob … /README.md given link I tried calling
if (wc_PBKDF2(key, (const byte*)password, pLen, (const byte*)salt, sLen, iteration_count, KEY_SIZE, WC_HASH_TYPE_SHA256) != 0) {
printf("Error deriving key\n");
return;
}
But this is returning MEMORY_E error code which is out of memory error.
I just want to know is it due to Microcontroller's insufficient RAM memory or any other reason?
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
ReferencesStable Releases - download stable product releases.
Development Branch - latest development branch on GitHub.
wolfSSL Manual - wolfSSL (formerly CyaSSL) product manual and API reference.