nxp-qoriq / cst Goto Github PK
View Code? Open in Web Editor NEWCode Signing Tool
License: BSD 3-Clause "New" or "Revised" License
Code Signing Tool
License: BSD 3-Clause "New" or "Revised" License
CST tool providing the following tools: 1. Key Generation - gen_keys - gen_drv_drbg - gen_otpmk_drbg 2. Header Creation - create_hdr_pbi - create_hdr_isbc - create_hdr_esbc - create_hdr_cf 3. Signature Geneartion - gen_sign - sign_embed Wrapper scripts for invoking the Header creation tools have also been provided: 1. uni_pbi (create_hdr_pbi) 2. uni_sign (create_hdr_isbc and create_hdr_esbc) 3. uni_cfsign (creat_hdr_cf)
When compiling this tool using the default -Werror flag, the compiler throws deprecated-declarations errors. For example:
common/crypto_utils.c:159:9: error: 'RSA_sign' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
159 | ret = RSA_sign(NID_sha256, img_hash, len,
| ^~~
In file included from /usr/include/openssl/x509.h:36,
from /usr/include/openssl/ssl.h:31,
from common/crypto_utils.c:37:
/usr/include/openssl/rsa.h:353:27: note: declared here
353 | OSSL_DEPRECATEDIN_3_0 int RSA_sign(int type, const unsigned char *m,
| ^~~~~~~~
In downstream uses of CST, such as meta-freescale, those warnings/errors are just suppressed by appending -Wno-deprecated-declarations to the CFLAGS. This is also the proposed solution in #2.
I'm not a huge fan of this as it just puts a Band-Aid over a time bomb. When the deprecated calls finally get removed, there will be pressure to just continue using an insecure, older version of OpenSSL with the deprecated functions. This is a very bad idea considering this is the basis of code signing and secure boot implementations for various critical embedded systems. OpenSSL must stay up to date in these devices to prevent vulnerabilities and hacks.
I'm currently working on updating the crypto_* calls using the updated EVP API and will submit a PR for it when it's ready. I could definitely use some help testing it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.