wolfSSL / wolfBoot

wolfBoot is a portable, OS-agnostic, secure bootloader for microcontrollers, supporting firmware authentication and firmware update mechanisms.
https://www.wolfssl.com
GNU General Public License v3.0
330 stars 94 forks source link

KeyGenTool Have Some Problem #415

Closed lifeng5478 closed 1 month ago

lifeng5478 commented 4 months ago

key_import does not match RSA file import

and RSA2048 KeySize not 320.its 294

image image and then another thing,,,,uhmmm. maybe not a question。 image because i do not use the special section to set this keystore.

jpbland1 commented 3 months ago

Hey @lifeng5478,

Could you share what version of wolfBoot these screenshots are from? It doesn't match what I'm seeing in our keytools, and I know this has been refactored recently. When that key_import code gets called the public key is already loaded into memory and for RSA is already in the correct format to use so it will be a little different from our normal file import procedure.

I'm not sure what you're asking about the keystore, are you saying you don't use keyimport.c for your keystore and have configured something else?

Best Wishes, John Bland

danielinux commented 3 months ago

Hello @lifeng5478

Did you have time to check @jpbland1 's comments above? Which version of wolfBoot are you running? How are you importing the key from the keystore structure?

danielinux commented 1 month ago

Closing due to lack of detailed information. Feel free to reopen if you see the issue again.