thesofproject / rimage

DSP firmware image creation and signing tool
Other
7 stars 62 forks source link

rimage: refactor and add openssl 3.0 support #77

Closed juimonen closed 2 years ago

juimonen commented 2 years ago

Refactor the signing and verification functions as they have a lot of duplicated code and adding openssl 3.0 support without refactor would make things even more messy.

1) Add common "rimage_read_key" to read the key from file.

2) Variate most important functionality based on different openssl versions:

Signed-off-by: Jaska Uimonen jaska.uimonen@linux.intel.com

juimonen commented 2 years ago

@lgirdwood yes was testing partially both with openssl < 3 and openssl > 3... but should be tested more thorough...

lgirdwood commented 2 years ago

@lgirdwood yes was testing partially both with openssl < 3 and openssl > 3... but should be tested more thorough...

ok, can you post as PR into SOF repo, lets give CI a chance at it too. (we wont merge in SOF, but will merge here after CI is good).