In particular I want to verify a file which was signed using uni_sign.
We have a device which allows firmware updates using a web interface. For secure boot, the new firmware (which is a Linux FIT image) needs to be signed, of course. To prevent installing an invalid image to flash, the web server shall verify the signature before installation.
For this scenario I need a verification tool running in Linux which can verify uni_sign signatures. Of course, this shall include verification of the public key against the SRK hash in the fuse box.
I managed to extract the pubkey from the CST header (which is easy) and to calculate its hash using "openssl dgst -sha256 srk.pub". I can compare this hash against the SRK hash in the fuse. However, I cannot use it for OpenSSL (the format is not recognized). So I could use a little help, e.g. some OpenSSL example commands or documentation about the exact pubkey and signature formats within the CST headers. Or is it possible to verify signatures using CST?